summaryrefslogtreecommitdiffstats
path: root/examples/recipes/gcc/build.yml
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/gcc/build.yml
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/gcc/build.yml')
-rw-r--r--examples/recipes/gcc/build.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/recipes/gcc/build.yml b/examples/recipes/gcc/build.yml
index 4931052..cd4166e 100644
--- a/examples/recipes/gcc/build.yml
+++ b/examples/recipes/gcc/build.yml
@@ -3,12 +3,12 @@ meta:
tasks:
unpack:
fetch:
- - name: '{{basename}}-{{version}}.tar.xz'
+ - name: '{{name}}-{{version}}.tar.xz'
sha256: 'e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da'
run: |
- tar xf {{dldir}}/{{basename}}-{{version}}.tar.xz
+ tar xf {{dldir}}/{{name}}-{{version}}.tar.xz
- sed -i -e 's@^MULTILIB_OSDIRNAMES@# &@' {{basename}}-{{version}}/gcc/config/*/t-*
+ sed -i -e 's@^MULTILIB_OSDIRNAMES@# &@' {{name}}-{{version}}/gcc/config/*/t-*
header-stubs:
args:
@@ -47,9 +47,9 @@ tasks:
run: |
export CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++"
- 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}} \
@@ -60,7 +60,7 @@ tasks:
--with-build-sysroot={{sysroot}} \
--with-native-system-header-dir={{target.prefix}}/include \
--with-toolexeclibdir={{host_to_target.sysroot}}{{target.prefix}}/lib \
- --with-gxx-include-dir={{host_to_target.sysroot}}{{target.prefix}}/include/c++/"$(cat ../{{basename}}-{{version}}/gcc/BASE-VER)" \
+ --with-gxx-include-dir={{host_to_target.sysroot}}{{target.prefix}}/include/c++/"$(cat ../{{name}}-{{version}}/gcc/BASE-VER)" \
--with-gnu-ld \
--enable-shared \
--enable-languages=c,c++ \
@@ -101,7 +101,7 @@ tasks:
- task: 'header-stubs'
noinherit: true
run: |
- cd {{basename}}-build
+ cd {{name}}-build
make all-host
find -name config.log -delete
@@ -121,6 +121,6 @@ tasks:
- recipe: 'zlib'
task: 'install'
run: |
- cd {{basename}}-build
+ cd {{name}}-build
make DESTDIR={{destdir}} install-host