summaryrefslogtreecommitdiffstats
path: root/examples/binutils.yml
blob: c05d9658517f73209af3cbee1cba5b82df4000f3 (plain)
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
tasks:
  unpack:
    fetch:
      - name: 'binutils-2.37.tar.xz'
        sha256: '820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c'
    run: |
      tar xf "${DLDIR}/binutils-2.37.tar.xz"

  configure:
    inherit:
      task: 'binutils:unpack'
    run: |
      BUILD=x86_64-linux-gnu
      HOST=x86_64-linux-gnu
      TARGET=aarch64-linux-gnu
      mkdir binutils-build
      cd binutils-build
      ../binutils-2.37/configure \
        --build="${BUILD}" \
        --host="${HOST}" \
        --target="${TARGET}" \
        --prefix="${BUILD_PREFIX}" \
        --with-sysroot="${SYSROOT}" \
        --enable-libssp \
        --enable-deterministic-archives \
        --enable-plugins \
        --disable-bootstrap \
        --disable-multilib \
        --disable-werror \
        --disable-nls \
        --disable-sim \
        --disable-gdb

  compile:
    inherit:
      task: 'binutils:configure'
    run: |
      cd binutils-build
      make -j8

  install:
    inherit:
      task: 'binutils:compile'
    output:
      default: {}
    run: |
      cd binutils-build
      make DESTDIR="$DESTDIR" install