diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-05-23 14:59:24 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-05-23 14:59:24 +0100 |
commit | 9b874110e45b9af3a3bb0a7481bec8918a1c3adb (patch) | |
tree | a619d13d5c3e0913a41c54d352049d7d2efa1385 /old/strata/build-essential/stage2-linux-api-headers.morph | |
parent | 63224e2233280204626b58fcbe5224d3582c8627 (diff) | |
download | definitions-9b874110e45b9af3a3bb0a7481bec8918a1c3adb.tar.gz |
Move existing Baserock definitions into old/ subdirectory
This will be removed in due course.
Diffstat (limited to 'old/strata/build-essential/stage2-linux-api-headers.morph')
-rw-r--r-- | old/strata/build-essential/stage2-linux-api-headers.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/old/strata/build-essential/stage2-linux-api-headers.morph b/old/strata/build-essential/stage2-linux-api-headers.morph new file mode 100644 index 00000000..1da94ee9 --- /dev/null +++ b/old/strata/build-essential/stage2-linux-api-headers.morph @@ -0,0 +1,24 @@ +name: stage2-linux-api-headers +kind: chunk +install-commands: +- | + case "$MORPH_ARCH" in + armv5l) + ARCH="arm" ;; + armv7b|armv7l|armv7lhf) + ARCH="arm" ;; + armv8l64|armv8b64) + ARCH="arm64" ;; + 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" |