diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2016-12-01 09:43:28 +0000 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2016-12-06 11:02:37 +0000 |
commit | 703caf3affdab8f223ccdd0ba5d64cf758c83059 (patch) | |
tree | ac77d0e3f5801b0476874e1c8113aa243b3df2d6 | |
parent | ec826d1304fdc896fbd522b1c0c171d23830fab6 (diff) |
build-busybox: use CROSS_COMPILE_32 for arm buildsarmlt-20161206-001
When ARCH=arm, build-busybox was still using the default CROSS_COMPILE
to build, meaning that on aarch64 platforms, it was built with the wrong
compiler.
Whilst this worked on aarch64 platforms, packaging for an aarch32
platform without rebuilding busybox left the aarch32 system unbootable.
Conversely, an aarch64 system will boot with an ARCH=arm busybox built
using the aarch32 compiler.
Change-Id: I74269d8bd2662165155681ecf20588412bfb7b07
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rwxr-xr-x | build-busybox.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build-busybox.sh b/build-busybox.sh index 96f4340..de1e0d9 100755 --- a/build-busybox.sh +++ b/build-busybox.sh @@ -50,6 +50,9 @@ do_build () { if [ "$BUSYBOX_BUILD_ENABLED" == "1" ]; then export ARCH=$BUSYBOX_ARCH + if [ "$ARCH" == "arm" ]; then + CROSS_COMPILE=$CROSS_COMPILE_32 + fi pushd $TOP_DIR/$BUSYBOX_PATH make defconfig |