From 3fbe53aec0f340a90858265ca8f890314fa5d523 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Oct 2021 00:21:04 +0200 Subject: examples: move recipes to subdirectory --- examples/recipes/libgcc.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 examples/recipes/libgcc.yml (limited to 'examples/recipes/libgcc.yml') diff --git a/examples/recipes/libgcc.yml b/examples/recipes/libgcc.yml new file mode 100644 index 0000000..9d5eb3f --- /dev/null +++ b/examples/recipes/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 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 -- cgit v1.2.3