summaryrefslogtreecommitdiffstats
path: root/examples/recipes/libgcc@11.2.0.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/libgcc@11.2.0.yml')
-rw-r--r--examples/recipes/libgcc@11.2.0.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/recipes/libgcc@11.2.0.yml b/examples/recipes/libgcc@11.2.0.yml
new file mode 100644
index 0000000..96a2ce8
--- /dev/null
+++ b/examples/recipes/libgcc@11.2.0.yml
@@ -0,0 +1,32 @@
+meta:
+ name: 'gcc'
+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 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