diff options
Diffstat (limited to 'examples/recipes/binutils/build.yml')
-rw-r--r-- | examples/recipes/binutils/build.yml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/examples/recipes/binutils/build.yml b/examples/recipes/binutils/build.yml new file mode 100644 index 0000000..dd82d2e --- /dev/null +++ b/examples/recipes/binutils/build.yml @@ -0,0 +1,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 |