From 5a91b1b0ee891f44f95fc1df84e5b010bbe0052b Mon Sep 17 00:00:00 2001 From: Shanmin Zhang Date: Tue, 29 Jul 2025 12:36:10 +0800 Subject: [PATCH] x86_64: allow specifying alternative compilers via CROSSDEV, rather than restricting to specific compiler Test: git clone -b dev -depth 1 https://github.com/open-vela/prebuilts_gcc_windows-x86_64_x86_64-none-elf.git ${HOME}/x86_64-none-elf export CROSSDEV=${HOME}/x86_64-none-elf/bin/x86_64-none-elf- ./tools/configure.sh -l qemu-intel64:nsh make Output: Create version.h LN: platform/board to /home/shanmin/git/nuttx-apps/platform/dummy Register: hello Register: dd Register: nsh Register: sh Register: ostest LD: nuttx Signed-off-by: Shanmin Zhang --- arch/x86_64/src/common/Toolchain.defs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86_64/src/common/Toolchain.defs b/arch/x86_64/src/common/Toolchain.defs index 2aa5d89fc91..e8f7a595548 100644 --- a/arch/x86_64/src/common/Toolchain.defs +++ b/arch/x86_64/src/common/Toolchain.defs @@ -79,11 +79,11 @@ LLVM_ABITYPE := sysv # Cygwin toolchains don't generate ELF binaries. ifeq ($(CONFIG_WINDOWS_CYGWIN),y) -CROSSDEV = i486-nuttx-elf- +CROSSDEV ?= i486-nuttx-elf- endif ifeq ($(CONFIG_HOST_MACOS),y) -CROSSDEV = x86_64-elf- +CROSSDEV ?= x86_64-elf- endif ifneq ($(CONFIG_CXX_STANDARD),)