From e9f0d3363e7db645e84a979542cc96b487d05f01 Mon Sep 17 00:00:00 2001 From: Molly Sophia Date: Tue, 7 Nov 2023 01:52:58 +0000 Subject: [PATCH] build.sh: Do not use cross_compile on aarch64 system Signed-off-by: Molly Sophia --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ba8d87eb5..882e04660 100755 --- a/build.sh +++ b/build.sh @@ -189,7 +189,9 @@ done [ -n "${_SIMPLE_INIT}" ]||[ ${BUILD_GUI} == false ]||error "SimpleInit not found, please see README.md" [ -f "configs/${DEVICE}.conf" ]||[ "${DEVICE}" == "all" ]||_error "Device configuration not found" -export CROSS_COMPILE="${CROSS_COMPILE:-aarch64-linux-gnu-}" +if [ ${MACHINE_TYPE} != 'aarch64' ]; then + export CROSS_COMPILE="${CROSS_COMPILE:-aarch64-linux-gnu-}" +fi export GCC_AARCH64_PREFIX="${CROSS_COMPILE}" export CLANG38_AARCH64_PREFIX="${CROSS_COMPILE}" # export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$_SIMPLE_INIT:$PWD"