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/gcc.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/gcc.yml')
-rw-r--r-- | examples/gcc.yml | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/examples/gcc.yml b/examples/gcc.yml index fd62466..8dac894 100644 --- a/examples/gcc.yml +++ b/examples/gcc.yml @@ -4,7 +4,7 @@ tasks: - name: 'gcc-11.2.0.tar.xz' sha256: 'd08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b' run: | - tar xf "${DLDIR}/gcc-11.2.0.tar.xz" + tar xf {{dldir}}/gcc-11.2.0.tar.xz sed -i -e 's@^MULTILIB_OSDIRNAMES@# &@' gcc-11.2.0/gcc/config/*/t-* @@ -12,8 +12,8 @@ tasks: output: default: {} run: | - mkdir -p "${DESTDIR}${PREFIX}/include" - touch "${DESTDIR}${PREFIX}/include/limits.h" + mkdir -p {{destdir}}{{target.prefix}}/include + touch {{destdir}}{{target.prefix}}/include/limits.h configure: inherit: @@ -23,22 +23,18 @@ tasks: depends: - task: 'gcc:header-stubs' run: | - BUILD=x86_64-linux-gnu - HOST=x86_64-linux-gnu - TARGET=aarch64-linux-gnu - mkdir gcc-build cd gcc-build ../gcc-11.2.0/configure \ - --build="${BUILD}" \ - --host="${HOST}" \ - --target=${TARGET} \ - --prefix="${BUILD_PREFIX}" \ - --libdir=${BUILD_PREFIX}/lib \ - --libexecdir=${BUILD_PREFIX}/lib \ - --with-sysroot="${SYSROOT}" \ - --with-native-system-header-dir=${PREFIX}/include \ - --with-build-time-tools="${BUILD_PREFIX}/${TARGET}/bin" \ + --build={{build.target_triple}} \ + --host={{host.target_triple}} \ + --target={{target.target_triple}} \ + --prefix={{host.prefix}} \ + --libdir={{host.prefix}}/lib \ + --libexecdir={{host.prefix}}/lib \ + --with-sysroot={{sysroot}} \ + --with-native-system-header-dir={{target.prefix}}/include \ + --with-build-time-tools={{host.prefix}}/{{target.target_triple}}/bin \ --with-gnu-ld \ --enable-shared \ --enable-languages=c,c++ \ @@ -88,5 +84,5 @@ tasks: - task: 'binutils:install' run: | cd gcc-build - make DESTDIR="$DESTDIR" install-host + make DESTDIR={{destdir}} install-host |