diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-06-14 22:58:52 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 11:44:36 +0000 |
commit | 23a3a3c746261c3ecb2aa961d91f988f0602a032 (patch) | |
tree | a98e6f2d5451025f6ebd0c660c03db1bf306d19e /elements/gnu-toolchain/stage2-glibc.bst | |
parent | aaefeb1e22579deef6a7829d055eee70c8a7a4f0 (diff) | |
download | definitions-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/stage2-glibc.bst')
-rw-r--r-- | elements/gnu-toolchain/stage2-glibc.bst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elements/gnu-toolchain/stage2-glibc.bst b/elements/gnu-toolchain/stage2-glibc.bst index 63740088..a5153c5b 100644 --- a/elements/gnu-toolchain/stage2-glibc.bst +++ b/elements/gnu-toolchain/stage2-glibc.bst @@ -31,7 +31,7 @@ config: # 4. Force configuration values of certain things that can't be detected # in a cross-compile. - | - case "%{bst-arch}" in + case "%{bst-target-arch}" in armv7*) ARCH_FLAGS="--without-fp" ;; esac @@ -105,12 +105,12 @@ config: # sysdeps/unix/sysv/linux/configure. - install -d %{install-root}/lib - | - case "%{bst-arch}" in + case "%{bst-target-arch}" in x86_64) install -d "%{install-root}/lib64" ln -s "%{prefix}/lib/ld-linux-x86-64.so.2" \ "%{install-root}/lib64/ld-linux-x86-64.so.2" ;; - ppc64) + ppc64l|ppc64b) install -d "%{install-root}/lib64" ln -s "%{prefix}/lib/ld64.so.1" \ "%{install-root}/lib64/ld64.so.1" ;; |