diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-26 16:22:47 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-26 16:22:47 +0000 |
commit | 40cff71921b8e20e6fdefd41560e89067ba21483 (patch) | |
tree | e27a743c39a22b9ef0e76824c4a2c008d25c33d1 /strata/build-essential/linux-api-headers.morph | |
parent | eaf31937a6c16adac30e5c8ba71d457336b5df0d (diff) | |
parent | 941c6a9653c784962aab1579ff066d7a274e8d84 (diff) | |
download | definitions-40cff71921b8e20e6fdefd41560e89067ba21483.tar.gz |
Merge branch 'baserock/tiagogomes/update-toolchain-v2'
Reviewed by:
* Sam Thursfield
* Paul Sherwood
* Josh Malkinson
Diffstat (limited to 'strata/build-essential/linux-api-headers.morph')
-rw-r--r-- | strata/build-essential/linux-api-headers.morph | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/strata/build-essential/linux-api-headers.morph b/strata/build-essential/linux-api-headers.morph index e1ff2638..0f7ce171 100644 --- a/strata/build-essential/linux-api-headers.morph +++ b/strata/build-essential/linux-api-headers.morph @@ -1,6 +1,20 @@ name: linux-api-headers kind: chunk install-commands: -- ARCH=$(./morph-arch) make INSTALL_HDR_PATH=dest headers_install +- | + case "$MORPH_ARCH" in + armv7b|armv7l|armv7lhf) + ARCH="arm" ;; + x86_32) + ARCH="i386" ;; + x86_64) + ARCH="x86_64" ;; + ppc64) + ARCH="powerpc" ;; + *) + echo "Error: unsupported Morph architecture: $MORPH_ARCH" >&2 + exit 1 + esac + ARCH=$ARCH make INSTALL_HDR_PATH=dest headers_install - install -d "$DESTDIR${PREFIX-/usr}/include" - cp -r dest/include/* "$DESTDIR/${PREFIX-/usr}/include" |