summaryrefslogtreecommitdiffstats
path: root/examples/recipes/binutils
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/binutils
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/binutils')
-rw-r--r--examples/recipes/binutils/build.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/recipes/binutils/build.yml b/examples/recipes/binutils/build.yml
index fb69750..a82723f 100644
--- a/examples/recipes/binutils/build.yml
+++ b/examples/recipes/binutils/build.yml
@@ -3,10 +3,10 @@ meta:
tasks:
unpack:
fetch:
- - name: '{{basename}}-{{version}}.tar.xz'
+ - name: '{{name}}-{{version}}.tar.xz'
sha256: 'ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450'
run: |
- tar xf {{dldir}}/{{basename}}-{{version}}.tar.xz
+ tar xf {{dldir}}/{{name}}-{{version}}.tar.xz
configure:
args:
@@ -21,9 +21,9 @@ tasks:
- recipe: 'toolchain'
task: 'depends'
run: |
- 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}} \
--target={{target.gnu_triplet}} \
@@ -47,7 +47,7 @@ tasks:
inherit:
task: 'configure'
run: |
- cd {{basename}}-build
+ cd {{name}}-build
make
find -name config.log -delete
@@ -63,5 +63,5 @@ tasks:
- recipe: 'toolchain'
task: 'depends'
run: |
- cd {{basename}}-build
+ cd {{name}}-build
make DESTDIR={{destdir}} install