summaryrefslogtreecommitdiffstats
path: root/examples/recipes/glibc/build.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:13:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:16:43 +0200
commit1896ea04204b8086a4f25e257dc5605e5505d768 (patch)
tree694b5298958c0152ce4fe58c42f864980fd6b9df /examples/recipes/glibc/build.yml
parentaa914e75251af3f9691be621a8c266320158bace (diff)
downloadrebel-1896ea04204b8086a4f25e257dc5605e5505d768.tar
rebel-1896ea04204b8086a4f25e257dc5605e5505d768.zip
driver: recipe: move each recipe into a separate directory
Diffstat (limited to 'examples/recipes/glibc/build.yml')
-rw-r--r--examples/recipes/glibc/build.yml68
1 files changed, 68 insertions, 0 deletions
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