Skip to content

Commit

Permalink
arch/toochain: Add toochain to gcc
Browse files Browse the repository at this point in the history
1. Modify the select the gcc compiler

Signed-off-by: wangmingrong1 <[email protected]>
  • Loading branch information
W-M-R authored and xiaoxiang781216 committed Nov 14, 2024
1 parent 85eed31 commit 656883f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
15 changes: 10 additions & 5 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -291,15 +287,24 @@ 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
bool
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
Expand Down
8 changes: 4 additions & 4 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 656883f

Please sign in to comment.