diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-19 20:11:31 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-19 20:11:31 +0200 |
commit | d644ecdcec86b6898ef6d9d8805652f204c63df1 (patch) | |
tree | f0ff36c5c4a89960afcaa08c008418afa966e124 /examples/glibc.yml | |
parent | fc4b06f1eac4c5e8ba1b7ebddc02a2c49e5220fb (diff) | |
download | rebel-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/glibc.yml')
-rw-r--r-- | examples/glibc.yml | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/examples/glibc.yml b/examples/glibc.yml index 8e1cf5a..6c2ca8d 100644 --- a/examples/glibc.yml +++ b/examples/glibc.yml @@ -4,7 +4,7 @@ tasks: - name: 'glibc-2.34.tar.xz' sha256: '44d26a1fe20b8853a48f470ead01e4279e869ac149b195dda4e44a195d981ab2' run: | - tar xf "${DLDIR}/glibc-2.34.tar.xz" + tar xf {{dldir}}/glibc-2.34.tar.xz configure: inherit: @@ -15,10 +15,7 @@ tasks: depends: - task: 'linux-uapi-headers:install' run: | - BUILD=x86_64-linux-gnu - HOST=aarch64-linux-gnu - - CROSS_COMPILE=${BUILD_PREFIX}/bin/${HOST}- + CROSS_COMPILE={{build.prefix}}/bin/{{host.target_triple}}- export BUILD_CC=gcc export CC=${CROSS_COMPILE}gcc @@ -31,12 +28,12 @@ tasks: mkdir glibc-build cd glibc-build ../glibc-2.34/configure \ - --build="${BUILD}" \ - --host=${HOST} \ - --prefix="${PREFIX}" \ - --includedir="${PREFIX}/include" \ - --libdir="${PREFIX}/lib" \ - --libexecdir="${PREFIX}/lib" \ + --build={{build.target_triple}} \ + --host={{host.target_triple}} \ + --prefix={{host.prefix}} \ + --includedir={{host.prefix}}/include \ + --libdir={{host.prefix}}/lib \ + --libexecdir={{host.prefix}}/lib \ --enable-add-ons \ --enable-obsolete-rpc \ --enable-kernel=2.6.32 \ @@ -46,9 +43,9 @@ tasks: --enable-lock-elision \ --disable-werror - echo 'slibdir=/usr/lib' >> configparms - echo 'sbindir=/usr/bin' >> configparms - echo 'rootsbindir=/usr/bin' >> configparms + echo slibdir={{host.prefix}}/lib >> configparms + echo sbindir={{host.prefix}}/bin >> configparms + echo rootsbindir={{host.prefix}}/bin >> configparms compile: inherit: @@ -76,4 +73,4 @@ tasks: - task: 'linux-uapi-headers:install' run: | cd glibc-build - make install_root="${DESTDIR}" install + make install_root={{destdir}} install |