summaryrefslogtreecommitdiffstats
path: root/examples/recipes/binutils/build.yml
blob: dd82d2e7cd0c7fbdc7cd60dc63ebe8161e1e5ad7 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
meta:
  version: '2.41'
tasks:
  unpack:
    fetch:
      - name: '{{name}}-{{version}}.tar.xz'
        sha256: 'ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450'
    run: |
      tar xf {{dldir}}/{{name}}-{{version}}.tar.xz

  configure:
    args:
      host: 'platform'
      target: 'platform'
    parent:
      task: 'unpack'
    build_depends:
      - recipe: 'toolchain'
        task: 'build_depends'
    depends:
      - recipe: 'toolchain'
        task: 'depends'
    run: |
      mkdir {{name}}-build
      cd {{name}}-build
      ../{{name}}-{{version}}/configure \
        --build={{build.gnu_triplet}} \
        --host={{host.gnu_triplet}} \
        --target={{target.gnu_triplet}} \
        --prefix={{host.prefix}} \
        --with-sysroot={{host_to_target.sysroot}} \
        --enable-libssp \
        --enable-deterministic-archives \
        --enable-plugins \
        --disable-bootstrap \
        --disable-multilib \
        --disable-werror \
        --disable-nls \
        --disable-sim \
        --disable-gdb
      find -name config.log -delete

  compile:
    args:
      host: 'platform'
      target: 'platform'
    parent:
      task: 'configure'
    run: |
      cd {{name}}-build
      make
      find -name config.log -delete

  install:
    args:
      host: 'platform'
      target: 'platform'
    parent:
      task: 'compile'
    output:
      default:
        runtime_depends:
          - recipe: 'toolchain'
            task: 'depends'
    run: |
      cd {{name}}-build
      make DESTDIR={{destdir}} install