summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--armv7lhf-cross-linux-api-headers.morph11
1 files changed, 11 insertions, 0 deletions
diff --git a/armv7lhf-cross-linux-api-headers.morph b/armv7lhf-cross-linux-api-headers.morph
new file mode 100644
index 000000000000..351134b72806
--- /dev/null
+++ b/armv7lhf-cross-linux-api-headers.morph
@@ -0,0 +1,11 @@
+name: armv7lhf-cross-linux-api-headers
+kind: chunk
+install-commands:
+- make mrproper
+- ARCH=arm make INSTALL_HDR_PATH=dest headers_install
+- |
+ # Copy headers to the sysroot where the eglibc build will find them,
+ # and install its own headers and libraries.
+ export TARGET=armv7lhf-baserock-linux-gnueabi
+ install -d "$DESTDIR$PREFIX/$TARGET/sys-root/$PREFIX/include"
+ cp -r dest/include/* "$DESTDIR/$PREFIX/$TARGET/sys-root/$PREFIX/include"