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/glibc.yml | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 examples/recipes/glibc.yml (limited to 'examples/recipes/glibc.yml') diff --git a/examples/recipes/glibc.yml b/examples/recipes/glibc.yml new file mode 100644 index 0000000..e9fa405 --- /dev/null +++ b/examples/recipes/glibc.yml @@ -0,0 +1,70 @@ +meta: + version: '2.34' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '44d26a1fe20b8853a48f470ead01e4279e869ac149b195dda4e44a195d981ab2' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'gcc' + task: 'install' + - recipe: 'libgcc-initial' + task: 'install' + depends: + - recipe: 'linux-uapi-headers' + task: 'install' + run: | + export BUILD_CC="$CC_FOR_BUILD" + + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} \ + --includedir={{host.prefix}}/include \ + --libdir={{host.prefix}}/lib \ + --libexecdir={{host.prefix}}/lib \ + --enable-add-ons \ + --enable-obsolete-rpc \ + --enable-kernel=2.6.32 \ + --enable-bind-now \ + --disable-profile \ + --enable-stackguard-randomization \ + --enable-lock-elision \ + --disable-werror + + echo slibdir={{host.prefix}}/lib >> configparms + echo sbindir={{host.prefix}}/bin >> configparms + echo rootsbindir={{host.prefix}}/bin >> configparms + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'linux-uapi-headers' + task: 'install' + run: | + cd {{pn}}-build + make install_root={{destdir}} install -- cgit v1.2.3