From 23a3a3c746261c3ecb2aa961d91f988f0602a032 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 14 Jun 2017 22:58:52 +0100 Subject: 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. --- project.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'project.conf') diff --git a/project.conf b/project.conf index fcbcbd78..2e5dbebe 100644 --- a/project.conf +++ b/project.conf @@ -12,7 +12,7 @@ aliases: element-path: elements variables: - cpu: "%{bst-arch}" + cpu: "%{bst-target-arch}" abi: gnu target-stage1: "%{cpu}-bootstrap-linux-%{abi}" target: "%{cpu}-baserock-linux-%{abi}" -- cgit v1.2.1