From 1896ea04204b8086a4f25e257dc5605e5505d768 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 4 Apr 2024 01:13:09 +0200 Subject: driver: recipe: move each recipe into a separate directory --- examples/recipes/glibc/build.yml | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 examples/recipes/glibc/build.yml (limited to 'examples/recipes/glibc') diff --git a/examples/recipes/glibc/build.yml b/examples/recipes/glibc/build.yml new file mode 100644 index 0000000..20e2363 --- /dev/null +++ b/examples/recipes/glibc/build.yml @@ -0,0 +1,68 @@ +meta: + version: '2.38-25-gf6445dc94da1' +tasks: + unpack: + fetch: + - name: '{{basename}}-{{version}}.tar.xz' + sha256: '92594ade540761f70d57de4f3a150128e7b7f7ed653a59d1acc23468ab70fae9' + run: | + tar xf {{dldir}}/{{basename}}-{{version}}.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 {{basename}}-build + cd {{basename}}-build + ../{{basename}}-{{version}}/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-bind-now \ + --enable-fortify-source \ + --enable-kernel=4.4 \ + --disable-nscd \ + --disable-profile \ + --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 {{basename}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'linux-uapi-headers' + task: 'install' + run: | + cd {{basename}}-build + make install_root={{destdir}} install -- cgit v1.2.3