config: arch: amd64: always use x86_64-linux-gnu- for x86 stuff

- it doesn't matter on what it is running, it's always the same compiler
This commit is contained in:
Ricardo Pardini 2026-01-15 13:14:21 +01:00 committed by Igor
parent e01008b607
commit dde721c3ea

View File

@ -27,10 +27,7 @@ declare -g KERNEL_BUILD_DTBS="no" # amd64 has no DTBs. that I know of.
declare -g KERNEL_IMAGE_TYPE="${KERNEL_IMAGE_TYPE:-"bzImage"}"
declare -g KERNEL_INSTALL_TYPE="${KERNEL_INSTALL_TYPE:-"install"}"
if [[ "$(uname -m)" == "aarch64" ]]; then
# Allow building amd64 on aarch64, but using system toolchain only
declare -g KERNEL_COMPILER="x86_64-linux-gnu-"
declare -g UBOOT_COMPILER='x86_64-linux-gnu-'
fi
declare -g KERNEL_COMPILER="x86_64-linux-gnu-"
declare -g UBOOT_COMPILER='x86_64-linux-gnu-'
true # make sure to exit with 0 status; this protects against shortcircuits etc above.