summaryrefslogtreecommitdiff
path: root/elements/gnu-toolchain/linux-api-headers.bst
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-06-14 22:58:52 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 11:44:36 +0000
commit23a3a3c746261c3ecb2aa961d91f988f0602a032 (patch)
treea98e6f2d5451025f6ebd0c660c03db1bf306d19e /elements/gnu-toolchain/linux-api-headers.bst
parentaaefeb1e22579deef6a7829d055eee70c8a7a4f0 (diff)
downloaddefinitions-23a3a3c746261c3ecb2aa961d91f988f0602a032.tar.gz
Support cross-building the stage1 and stage2 components
This requires a feature recently added to BuildStream (in commit 03906221) that adds a framework for elements to support being cross-compiled. To build an armv8l64 native toolchain and sysroot on an x86_64 build machine, for example, you can do this: bst build --target-arch=armv8l64 gnu-toolchain/stage2.bst You can then run `bst checkout` to get at the resulting binaries and copy them onto an armv8l64 machine where they can be executed.
Diffstat (limited to 'elements/gnu-toolchain/linux-api-headers.bst')
-rw-r--r--elements/gnu-toolchain/linux-api-headers.bst4
1 files changed, 2 insertions, 2 deletions
diff --git a/elements/gnu-toolchain/linux-api-headers.bst b/elements/gnu-toolchain/linux-api-headers.bst
index 0020d2ae..db89f18d 100644
--- a/elements/gnu-toolchain/linux-api-headers.bst
+++ b/elements/gnu-toolchain/linux-api-headers.bst
@@ -17,7 +17,7 @@ environment:
config:
install-commands:
- |
- case "%{bst-arch}" in
+ case "%{bst-target-arch}" in
armv5l)
ARCH="arm" ;;
armv7b|armv7l|armv7lhf)
@@ -31,7 +31,7 @@ config:
ppc64)
ARCH="powerpc" ;;
*)
- echo "Error: unsupported Morph architecture: %{bst-arch}" >&2
+ echo "Error: unsupported architecture: %{bst-target-arch}" >&2
exit 1
esac
ARCH=$ARCH make INSTALL_HDR_PATH=dest headers_install