summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2019-07-11 13:32:43 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2019-07-11 15:00:22 +0000
commitf051b7e7555755dfae357c80326a5da42aa17c0c (patch)
tree2aa8dd0555a527a59a517485a28b337d47ce8fcb
parent25b4906fef41a80d1d364347527c10d2be78daa9 (diff)
edk2-build.sh: set ${PLATFORM_TOOLCHAIN}_BIN
BaseTools IA32/X64 toolchain prefixes are currently created from ${PLATFORM_TOOLCHAIN}_BIN variables (i.e. GCC5_BIN). Set this variable *too* before building, in order to make the scripts "just work" when cross-compiling for x86. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rwxr-xr-xedk2-build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/edk2-build.sh b/edk2-build.sh
index 6a7768a..468138e 100755
--- a/edk2-build.sh
+++ b/edk2-build.sh
@@ -99,6 +99,7 @@ function do_build
echo "PLATFORM_TOOLCHAIN is ${PLATFORM_TOOLCHAIN}"
export ${PLATFORM_TOOLCHAIN}_${PLATFORM_ARCH}_PREFIX=$CROSS_COMPILE
+ export ${PLATFORM_TOOLCHAIN}_BIN=$CROSS_COMPILE
echo "Toolchain prefix: ${PLATFORM_TOOLCHAIN}_${PLATFORM_ARCH}_PREFIX=$CROSS_COMPILE"
export PACKAGES_PATH="$PLATFORM_PACKAGES_PATH"