From c40a4dcdcf46a0c01c97cf294384088b761d1ddf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 3 Nov 2021 17:15:36 +0100 Subject: examples: move version number to filename --- examples/recipes/binutils@2.37.yml | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 examples/recipes/binutils@2.37.yml (limited to 'examples/recipes/binutils@2.37.yml') diff --git a/examples/recipes/binutils@2.37.yml b/examples/recipes/binutils@2.37.yml new file mode 100644 index 0000000..b3afa92 --- /dev/null +++ b/examples/recipes/binutils@2.37.yml @@ -0,0 +1,65 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/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' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + find -name config.log -delete + + install: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install -- cgit v1.2.3