From b989e4f3a6b332a940b26150ae338bb95f7dd549 Mon Sep 17 00:00:00 2001 From: qinwei1 Date: Thu, 5 Jan 2023 19:28:47 +0800 Subject: [PATCH] arch:arm64: add support for nuttx arm64 Toolchain Selection Summary: 1. to enable Toolchain select Kconfig option, making something depend on the opton to be configured with menuconfig Signed-off-by: qinwei1 --- arch/arm64/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 25dbe31ea86..4136e5a09df 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -6,6 +6,22 @@ if ARCH_ARM64 comment "ARM64 Options" +choice + prompt "ARM64 Toolchain Selection" + default ARM64_TOOLCHAIN_GNU_EABI + +config ARM64_TOOLCHAIN_GNU_EABI + bool "Generic GNU EABI toolchain" + select ARCH_TOOLCHAIN_GNU + ---help--- + This option should work for any modern GNU toolchain (GCC 4.5 or newer) + +config ARM64_TOOLCHAIN_CLANG + bool "LLVM Clang toolchain" + select ARCH_TOOLCHAIN_CLANG + +endchoice + choice prompt "ARM64 chip selection" default ARCH_CHIP_QEMU