summaryrefslogtreecommitdiffstats
path: root/examples/binutils.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-09-19 20:11:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-09-19 20:11:31 +0200
commitd644ecdcec86b6898ef6d9d8805652f204c63df1 (patch)
treef0ff36c5c4a89960afcaa08c008418afa966e124 /examples/binutils.yml
parentfc4b06f1eac4c5e8ba1b7ebddc02a2c49e5220fb (diff)
downloadrebel-d644ecdcec86b6898ef6d9d8805652f204c63df1.tar
rebel-d644ecdcec86b6898ef6d9d8805652f204c63df1.zip
Use template variables instead of environment, parametrize all examples
This implements passing of various pieces of information through task arguments, as well as argument inheritance through different kinds of dependencies.
Diffstat (limited to 'examples/binutils.yml')
-rw-r--r--examples/binutils.yml17
1 files changed, 7 insertions, 10 deletions
diff --git a/examples/binutils.yml b/examples/binutils.yml
index c05d965..422a108 100644
--- a/examples/binutils.yml
+++ b/examples/binutils.yml
@@ -4,23 +4,20 @@ tasks:
- name: 'binutils-2.37.tar.xz'
sha256: '820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c'
run: |
- tar xf "${DLDIR}/binutils-2.37.tar.xz"
+ tar xf {{dldir}}/binutils-2.37.tar.xz
configure:
inherit:
task: 'binutils:unpack'
run: |
- BUILD=x86_64-linux-gnu
- HOST=x86_64-linux-gnu
- TARGET=aarch64-linux-gnu
mkdir binutils-build
cd binutils-build
../binutils-2.37/configure \
- --build="${BUILD}" \
- --host="${HOST}" \
- --target="${TARGET}" \
- --prefix="${BUILD_PREFIX}" \
- --with-sysroot="${SYSROOT}" \
+ --build={{build.target_triple}} \
+ --host={{host.target_triple}} \
+ --target={{target.target_triple}} \
+ --prefix={{host.prefix}} \
+ --with-sysroot={{sysroot}} \
--enable-libssp \
--enable-deterministic-archives \
--enable-plugins \
@@ -45,4 +42,4 @@ tasks:
default: {}
run: |
cd binutils-build
- make DESTDIR="$DESTDIR" install
+ make DESTDIR={{destdir}} install