From 656883fec5561ca91502a26bf018473ca0229aa4 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Thu, 14 Nov 2024 13:50:19 +0800 Subject: [PATCH] arch/toochain: Add toochain to gcc 1. Modify the select the gcc compiler Signed-off-by: wangmingrong1 --- arch/Kconfig | 15 ++++++++++----- arch/arm/Kconfig | 8 ++++---- arch/arm64/Kconfig | 2 +- arch/xtensa/Kconfig | 2 +- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 0394cb9cd393a..3f805ab1ddaca 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -278,10 +278,6 @@ endif #ARCH_CHIP_CUSTOM source "$BINDIR/arch/dummy/Kconfig" -config ARCH_TOOLCHAIN_IAR - bool - default n - config ARCH_TOOLCHAIN_GNU bool default n @@ -291,8 +287,9 @@ config ARCH_TOOLCHAIN_CLANG select ARCH_TOOLCHAIN_GNU default n -config ARCH_TOOLCHAIN_TASKING +config ARCH_TOOLCHAIN_GCC bool + select ARCH_TOOLCHAIN_GNU default n config ARCH_TOOLCHAIN_GHS @@ -300,6 +297,14 @@ config ARCH_TOOLCHAIN_GHS select ARCH_TOOLCHAIN_GNU default n +config ARCH_TOOLCHAIN_IAR + bool + default n + +config ARCH_TOOLCHAIN_TASKING + bool + default n + config ARCH_GNU_NO_WEAKFUNCTIONS bool depends on ARCH_TOOLCHAIN_GNU diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 44f55bffe82ac..75ac4aabc6dd3 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -17,24 +17,24 @@ config ARM_TOOLCHAIN_IAR config ARM_TOOLCHAIN_BUILDROOT bool "Buildroot (Cygwin or Linux)" depends on !WINDOWS_NATIVE - select ARCH_TOOLCHAIN_GNU + select ARCH_TOOLCHAIN_GCC config ARM_TOOLCHAIN_BUILDROOT_OABI bool "OABI (vs EABI)" depends on !WINDOWS_NATIVE - select ARCH_TOOLCHAIN_GNU + select ARCH_TOOLCHAIN_GCC ---help--- Most of the older buildroot toolchains are OABI config ARM_TOOLCHAIN_GNU_EABI bool "Generic GNU EABI toolchain" - select ARCH_TOOLCHAIN_GNU + select ARCH_TOOLCHAIN_GCC ---help--- This option should work for any modern GNU toolchain (GCC 4.5 or newer) config ARM_TOOLCHAIN_GNU_OABI bool "Generic GNU OABI toolchain" - select ARCH_TOOLCHAIN_GNU + select ARCH_TOOLCHAIN_GCC ---help--- This option should work for any GNU toolchain. diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index fc30a757dc1e6..805e9b58d7cb3 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -12,7 +12,7 @@ choice config ARM64_TOOLCHAIN_GNU_EABI bool "Generic GNU EABI toolchain" - select ARCH_TOOLCHAIN_GNU + select ARCH_TOOLCHAIN_GCC ---help--- This option should work for any modern GNU toolchain (GCC 4.5 or newer) diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index e4f6ee28dad5d..38f5427bab6aa 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -302,7 +302,7 @@ choice config XTENSA_TOOLCHAIN_XCC bool "Xtensa Toolchain use GCC as front end" - select ARCH_TOOLCHAIN_GNU + select ARCH_TOOLCHAIN_GCC config XTENSA_TOOLCHAIN_XCLANG bool "Xtensa Toolchain use CLANG as front end"