diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-01-15 20:58:32 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-01-15 21:01:54 +0000 |
commit | 1e57dd9ebe5a90bc24830d6b07e10aa61e99ecd5 (patch) | |
tree | 420abee7b0749370c67e489e130f5590955f6fd2 /strata/build-essential/linux-api-headers.morph | |
parent | f125f46535729b6d439478d1317b6192d570bc3f (diff) | |
download | definitions-1e57dd9ebe5a90bc24830d6b07e10aa61e99ecd5.tar.gz |
Move morph-arch and morph-arch-config into definitionsbaserock/ps/morph-arch-to-definitions
Now that morph files are in definitions, these two scripts can
go into definitions too, so it will be easier advance refs later
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" |