diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2023-10-02 01:11:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2023-10-02 01:11:29 +0200 |
commit | e739a7e89a6282f735d91daeb0c213efe9c0b077 (patch) | |
tree | c752019620f1454883dd1c2f7f464f1bf0b4d7f4 /examples/recipes/binutils@2.41.yml | |
parent | 2c21f689fc372aaf54601c041cd3e15f625093d6 (diff) | |
download | rebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.tar rebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.zip |
examples: update toolchain
Diffstat (limited to 'examples/recipes/binutils@2.41.yml')
-rw-r--r-- | examples/recipes/binutils@2.41.yml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/examples/recipes/binutils@2.41.yml b/examples/recipes/binutils@2.41.yml new file mode 100644 index 0000000..d6271a9 --- /dev/null +++ b/examples/recipes/binutils@2.41.yml @@ -0,0 +1,65 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: 'ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450' + 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 |