diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-25 21:44:42 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-26 15:51:00 +0200 |
commit | 83fd44af9b8c0b1e81b46d97a406f542481a7f00 (patch) | |
tree | 1dd90feb1d427d0c0538c9638a2b9a8862302aff /examples/glibc.yml | |
parent | 8564c639f382b46382cfb1a01af70f2202fe168f (diff) | |
download | rebel-83fd44af9b8c0b1e81b46d97a406f542481a7f00.tar rebel-83fd44af9b8c0b1e81b46d97a406f542481a7f00.zip |
Add "cross compile" prefix to platform arguments
Allow getting the right path for the host==build toolchain.
There are still a few unsolved questions, in particular how to deal with
host depends of host==build tasks.
Diffstat (limited to 'examples/glibc.yml')
-rw-r--r-- | examples/glibc.yml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/glibc.yml b/examples/glibc.yml index 0c5235a..13f1206 100644 --- a/examples/glibc.yml +++ b/examples/glibc.yml @@ -20,15 +20,13 @@ tasks: - recipe: 'linux-uapi-headers' task: 'install' run: | - CROSS_COMPILE={{build.prefix}}/bin/{{host.gnu_triplet}}- - export BUILD_CC=gcc - export CC=${CROSS_COMPILE}gcc - export CXX=${CROSS_COMPILE}g++ - export AR=${CROSS_COMPILE}ar - export NM=${CROSS_COMPILE}nm - export RANLIB=${CROSS_COMPILE}ranlib - export READELF=${CROSS_COMPILE}readelf + export CC={{host.cross_compile}}gcc + export CXX={{host.cross_compile}}g++ + export AR={{host.cross_compile}}ar + export NM={{host.cross_compile}}nm + export RANLIB={{host.cross_compile}}ranlib + export READELF={{host.cross_compile}}readelf mkdir glibc-build cd glibc-build |