summaryrefslogtreecommitdiff
path: root/chunks/linux-api-headers.morph
diff options
context:
space:
mode:
Diffstat (limited to 'chunks/linux-api-headers.morph')
-rw-r--r--chunks/linux-api-headers.morph24
1 files changed, 24 insertions, 0 deletions
diff --git a/chunks/linux-api-headers.morph b/chunks/linux-api-headers.morph
new file mode 100644
index 00000000..f5e1f5f5
--- /dev/null
+++ b/chunks/linux-api-headers.morph
@@ -0,0 +1,24 @@
+name: 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"