summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-linux-api-headers.morph
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-01-26 16:22:47 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-01-26 16:22:47 +0000
commit40cff71921b8e20e6fdefd41560e89067ba21483 (patch)
treee27a743c39a22b9ef0e76824c4a2c008d25c33d1 /strata/build-essential/stage2-linux-api-headers.morph
parenteaf31937a6c16adac30e5c8ba71d457336b5df0d (diff)
parent941c6a9653c784962aab1579ff066d7a274e8d84 (diff)
downloaddefinitions-40cff71921b8e20e6fdefd41560e89067ba21483.tar.gz
Merge branch 'baserock/tiagogomes/update-toolchain-v2'
Reviewed by: * Sam Thursfield * Paul Sherwood * Josh Malkinson
Diffstat (limited to 'strata/build-essential/stage2-linux-api-headers.morph')
-rw-r--r--strata/build-essential/stage2-linux-api-headers.morph16
1 files changed, 14 insertions, 2 deletions
diff --git a/strata/build-essential/stage2-linux-api-headers.morph b/strata/build-essential/stage2-linux-api-headers.morph
index 5cbf2f05..50e1aaa5 100644
--- a/strata/build-essential/stage2-linux-api-headers.morph
+++ b/strata/build-essential/stage2-linux-api-headers.morph
@@ -2,7 +2,19 @@ name: stage2-linux-api-headers
kind: chunk
install-commands:
- |
- export 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"