summaryrefslogtreecommitdiffstats
path: root/examples/recipes/glibc
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-06 00:19:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-06 00:24:45 +0200
commita488b37a22b72bdcd7b58102387fea98b82918e1 (patch)
treed1925f43070f25eb49b0181fd123b8f950a2f4b2 /examples/recipes/glibc
parent631b45f565bf6160734941e0b7ad69e68a520b0e (diff)
downloadrebel-a488b37a22b72bdcd7b58102387fea98b82918e1.tar
rebel-a488b37a22b72bdcd7b58102387fea98b82918e1.zip
examples: use {{name}} instead of {{basename}}
{{name}} is usually the better choice for references in the scripts, as it can be overridden.
Diffstat (limited to 'examples/recipes/glibc')
-rw-r--r--examples/recipes/glibc/build.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/recipes/glibc/build.yml b/examples/recipes/glibc/build.yml
index 16f2706..3538d90 100644
--- a/examples/recipes/glibc/build.yml
+++ b/examples/recipes/glibc/build.yml
@@ -3,10 +3,10 @@ meta:
tasks:
unpack:
fetch:
- - name: '{{basename}}-{{version}}.tar.xz'
+ - name: '{{name}}-{{version}}.tar.xz'
sha256: '92594ade540761f70d57de4f3a150128e7b7f7ed653a59d1acc23468ab70fae9'
run: |
- tar xf {{dldir}}/{{basename}}-{{version}}.tar.xz
+ tar xf {{dldir}}/{{name}}-{{version}}.tar.xz
configure:
args:
@@ -24,9 +24,9 @@ tasks:
run: |
export BUILD_CC="$CC_FOR_BUILD"
- mkdir {{basename}}-build
- cd {{basename}}-build
- ../{{basename}}-{{version}}/configure \
+ mkdir {{name}}-build
+ cd {{name}}-build
+ ../{{name}}-{{version}}/configure \
--build={{build.gnu_triplet}} \
--host={{host.gnu_triplet}} \
--prefix={{host.prefix}} \
@@ -50,7 +50,7 @@ tasks:
inherit:
task: 'configure'
run: |
- cd {{basename}}-build
+ cd {{name}}-build
make
install:
@@ -64,5 +64,5 @@ tasks:
- recipe: 'linux/uapi-headers'
task: 'install'
run: |
- cd {{basename}}-build
+ cd {{name}}-build
make install_root={{destdir}} install