aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2016-03-02 12:00:14 +0000
committerRyan Harkin <ryan.harkin@linaro.org>2016-03-02 12:00:14 +0000
commit4a13849fc9f3af42178d51a564059ba295161d03 (patch)
tree564ddbfb56e66daa3ef04e2575e99379de152b99
parentc1bab3400494955da130e24679103d3193d44d96 (diff)
Fix CROSS_COMPILE handling with uefi-build.sh callsarmlt-16.02-00116.02
The build scripts will fail to build UEFI if the user does not have the compiler on their path. Normally a user will over-ride the compiler by setting CROSS_COMPILE to the compiler prefix including path. However uefi-tools/uefi-build.sh does not use CROSS_COMPILE, it uses CROSS_COMPILE_32/64. In our case, we can set both to CROSS_COMPILE_32 and _64 to CROSS_COMPILE because we only build one variant at a time. Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rwxr-xr-xbuild-uefi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-uefi.sh b/build-uefi.sh
index 24fefb2..8933ad6 100755
--- a/build-uefi.sh
+++ b/build-uefi.sh
@@ -47,7 +47,7 @@ do_build ()
if [ "$UEFI_BUILD_ENABLED" == "1" ]; then
pushd $TOP_DIR/$UEFI_PATH
for item in $UEFI_PLATFORMS; do
- ${TOP_DIR}/${UEFI_TOOLS_PATH}/uefi-build.sh -b $UEFI_BUILD_MODE -D EDK_OUT_DIR=$UEFI_OUTPUT_PLATFORMS $item
+ CROSS_COMPILE_64=$CROSS_COMPILE CROSS_COMPILE_32=$CROSS_COMPILE ${TOP_DIR}/${UEFI_TOOLS_PATH}/uefi-build.sh -b $UEFI_BUILD_MODE -D EDK_OUT_DIR=$UEFI_OUTPUT_PLATFORMS $item
done
popd
fi