summaryrefslogtreecommitdiffstats
path: root/examples/glibc.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-09-29 00:23:22 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-09-29 20:52:52 +0200
commiteb3e8d97181b3efc5559b42dc13841ba6215f150 (patch)
tree2dfa368fcbd38d41b4199b971d23029d41a729a6 /examples/glibc.yml
parentbbc122d8b9b0d77fafaab1bc286cd42cdda0be5f (diff)
downloadrebel-eb3e8d97181b3efc5559b42dc13841ba6215f150.tar
rebel-eb3e8d97181b3efc5559b42dc13841ba6215f150.zip
examples: use {{pn}} and {{pv}} throughout recipes
Diffstat (limited to 'examples/glibc.yml')
-rw-r--r--examples/glibc.yml16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/glibc.yml b/examples/glibc.yml
index 337ae2f..ad189b3 100644
--- a/examples/glibc.yml
+++ b/examples/glibc.yml
@@ -1,10 +1,12 @@
+meta:
+ version: '2.34'
tasks:
unpack:
fetch:
- - name: 'glibc-2.34.tar.xz'
+ - name: '{{pn}}-{{pv}}.tar.xz'
sha256: '44d26a1fe20b8853a48f470ead01e4279e869ac149b195dda4e44a195d981ab2'
run: |
- tar xf {{dldir}}/glibc-2.34.tar.xz
+ tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz
configure:
args:
@@ -28,9 +30,9 @@ tasks:
export RANLIB={{cross_compile}}ranlib
export READELF={{cross_compile}}readelf
- mkdir glibc-build
- cd glibc-build
- ../glibc-2.34/configure \
+ mkdir {{pn}}-build
+ cd {{pn}}-build
+ ../{{pn}}-{{pv}}/configure \
--build={{build.gnu_triplet}} \
--host={{host.gnu_triplet}} \
--prefix={{host.prefix}} \
@@ -56,7 +58,7 @@ tasks:
inherit:
task: 'configure'
run: |
- cd glibc-build
+ cd {{pn}}-build
make -j8
install:
@@ -70,5 +72,5 @@ tasks:
- recipe: 'linux-uapi-headers'
task: 'install'
run: |
- cd glibc-build
+ cd {{pn}}-build
make install_root={{destdir}} install