From 941c6a9653c784962aab1579ff066d7a274e8d84 Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Thu, 15 Jan 2015 20:58:32 +0000 Subject: Embed morph-arch and morph-arch-config This will make it easier to advance refs later. --- strata/build-essential/linux-api-headers.morph | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'strata/build-essential/linux-api-headers.morph') 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" -- cgit v1.2.1