diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-03 12:23:28 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-03 12:23:28 +0200 |
commit | 2a244b90e7305ca8c1b38c4fe207298dc7433b03 (patch) | |
tree | ce28043f863abb3c56c0a31cdcfc0dafb655fd9d /examples/libgcc.yml | |
parent | 9b5218edb966aa705bff99b57574abea098dceab (diff) | |
download | rebel-2a244b90e7305ca8c1b38c4fe207298dc7433b03.tar rebel-2a244b90e7305ca8c1b38c4fe207298dc7433b03.zip |
examples: split libgcc from gcc-libs package
Avoid building gcc-libs twice for cross-native toolchains.
libgcc_s.so is still installed as part of gcc-libs.
Diffstat (limited to 'examples/libgcc.yml')
-rw-r--r-- | examples/libgcc.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/libgcc.yml b/examples/libgcc.yml new file mode 100644 index 0000000..fd39413 --- /dev/null +++ b/examples/libgcc.yml @@ -0,0 +1,33 @@ +meta: + name: 'gcc' + version: '11.2.0' +tasks: + compile: + args: + host: 'platform' + target: 'platform' + inherit: + recipe: 'gcc' + task: 'compile' + depends: + - recipe: 'glibc' + task: 'install' + args: + host: 'target' + run: | + cd {{pn}}-build + make -j8 all-target-libgcc + + install: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'compile' + output: + default: {} + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install-target-libgcc + rm {{destdir}}{{host_to_target.sysroot}}{{target.prefix}}/lib/libgcc_s.so* + rmdir -p --ignore-fail-on-non-empty {{destdir}}{{host_to_target.sysroot}}{{target.prefix}}/lib |