summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xedk2-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/edk2-build.sh b/edk2-build.sh
index 468138e..bd06a52 100755
--- a/edk2-build.sh
+++ b/edk2-build.sh
@@ -99,7 +99,9 @@ function do_build
echo "PLATFORM_TOOLCHAIN is ${PLATFORM_TOOLCHAIN}"
export ${PLATFORM_TOOLCHAIN}_${PLATFORM_ARCH}_PREFIX=$CROSS_COMPILE
- export ${PLATFORM_TOOLCHAIN}_BIN=$CROSS_COMPILE
+ if [ $TOOLCHAIN != "clang" ]; then
+ export ${PLATFORM_TOOLCHAIN}_BIN=$CROSS_COMPILE
+ fi
echo "Toolchain prefix: ${PLATFORM_TOOLCHAIN}_${PLATFORM_ARCH}_PREFIX=$CROSS_COMPILE"
export PACKAGES_PATH="$PLATFORM_PACKAGES_PATH"