This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
cross-binutils.yaml
60 lines (57 loc) · 1.61 KB
/
cross-binutils.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package:
name: cross-binutils-stage1
version: 2.39
epoch: 0
description: "the GNU binary utilities (cross compilation)"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: GPL-3.0-or-later
dependencies:
runtime:
environment:
contents:
repositories:
- https://mirrors.edge.kernel.org/alpine/edge/main
packages:
- alpine-baselayout-data
- busybox
- build-base
- scanelf
- ssl_client
- ca-certificates-bundle
- texinfo
- isl-dev
pipeline:
- uses: fetch
with:
uri: https://ftp.gnu.org/gnu/binutils/binutils-${{package.version}}.tar.gz
expected-sha256: d12ea6f239f1ffe3533ea11ad6e224ffcb89eb5d01bbea589e9158780fa11f10
- name: 'Configure binutils'
runs: |
./configure \
--prefix=/usr \
--target=${{cross.triplet.gnu.glibc}} \
--disable-nls \
--disable-werror \
--disable-multilib \
--disable-gprofng \
--with-sysroot=/usr/${{cross.triplet.gnu.glibc}}
- uses: autoconf/make
- uses: autoconf/make-install
- name: 'Add target aliases'
runs: |
BASE="${{targets.destdir}}"/usr/libexec/gcc/${{cross.triplet.gnu.glibc}}
mkdir -p $BASE
ln -f ${{targets.destdir}}/usr/bin/${{cross.triplet.gnu.glibc}}-as $BASE/as
ln -f ${{targets.destdir}}/usr/bin/${{cross.triplet.gnu.glibc}}-ld $BASE/ld
- name: 'Clean up BFD plugins'
runs: |
rm -rf ${{targets.destdir}}/usr/lib/bfd-plugins
- name: 'Clean up documentation'
runs: |
rm -rf ${{targets.destdir}}/usr/share/info
- uses: strip