From f501976babcc283c7d2ae4bea25e5feefc4b98c2 Mon Sep 17 00:00:00 2001
From: Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Date: Wed, 22 Mar 2017 09:47:09 +0000
Subject: Moved all elements under the elements directory

---
 elements/gnu-toolchain/linux-api-headers.bst | 39 ++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 elements/gnu-toolchain/linux-api-headers.bst

(limited to 'elements/gnu-toolchain/linux-api-headers.bst')

diff --git a/elements/gnu-toolchain/linux-api-headers.bst b/elements/gnu-toolchain/linux-api-headers.bst
new file mode 100644
index 00000000..0020d2ae
--- /dev/null
+++ b/elements/gnu-toolchain/linux-api-headers.bst
@@ -0,0 +1,39 @@
+kind: manual
+
+sources:
+- kind: git
+  url: upstream:linux
+  track: v4.0
+  ref: 39a8804455fb23f09157341d3ba7db6d7ae6ee76
+
+depends:
+- filename: gnu-toolchain/stage2.bst
+  type: build
+- gnu-toolchain/fhs-dirs.bst
+
+environment:
+  PATH: /usr/bin:/bin:/usr/sbin:/sbin:/tools/bin:/tools/sbin
+
+config:
+  install-commands:
+  - |
+    case "%{bst-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: %{bst-arch}" >&2
+            exit 1
+    esac
+    ARCH=$ARCH make INSTALL_HDR_PATH=dest headers_install
+  - install -d "%{install-root}%{includedir}"
+  - cp -r dest/include/* "%{install-root}%{includedir}"
-- 
cgit v1.2.1

