diff options
Diffstat (limited to 'chunks/stage2-linux-api-headers.morph')
-rw-r--r-- | chunks/stage2-linux-api-headers.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chunks/stage2-linux-api-headers.morph b/chunks/stage2-linux-api-headers.morph new file mode 100644 index 00000000..68492674 --- /dev/null +++ b/chunks/stage2-linux-api-headers.morph @@ -0,0 +1,24 @@ +name: stage2-linux-api-headers +kind: chunk + +install-commands: +- make mrproper + +- | + 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 + export ARCH + make INSTALL_HDR_PATH=dest headers_install +- install -d "$DESTDIR$PREFIX/include" +- cp -r dest/include/* "$DESTDIR/$PREFIX/include" |