Skip to content

Commit 656883f

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
arch/toochain: Add toochain to gcc
1. Modify the select the gcc compiler Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
1 parent 85eed31 commit 656883f

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

arch/Kconfig

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ endif #ARCH_CHIP_CUSTOM
278278

279279
source "$BINDIR/arch/dummy/Kconfig"
280280

281-
config ARCH_TOOLCHAIN_IAR
282-
bool
283-
default n
284-
285281
config ARCH_TOOLCHAIN_GNU
286282
bool
287283
default n
@@ -291,15 +287,24 @@ config ARCH_TOOLCHAIN_CLANG
291287
select ARCH_TOOLCHAIN_GNU
292288
default n
293289

294-
config ARCH_TOOLCHAIN_TASKING
290+
config ARCH_TOOLCHAIN_GCC
295291
bool
292+
select ARCH_TOOLCHAIN_GNU
296293
default n
297294

298295
config ARCH_TOOLCHAIN_GHS
299296
bool
300297
select ARCH_TOOLCHAIN_GNU
301298
default n
302299

300+
config ARCH_TOOLCHAIN_IAR
301+
bool
302+
default n
303+
304+
config ARCH_TOOLCHAIN_TASKING
305+
bool
306+
default n
307+
303308
config ARCH_GNU_NO_WEAKFUNCTIONS
304309
bool
305310
depends on ARCH_TOOLCHAIN_GNU

arch/arm/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ config ARM_TOOLCHAIN_IAR
1717
config ARM_TOOLCHAIN_BUILDROOT
1818
bool "Buildroot (Cygwin or Linux)"
1919
depends on !WINDOWS_NATIVE
20-
select ARCH_TOOLCHAIN_GNU
20+
select ARCH_TOOLCHAIN_GCC
2121

2222
config ARM_TOOLCHAIN_BUILDROOT_OABI
2323
bool "OABI (vs EABI)"
2424
depends on !WINDOWS_NATIVE
25-
select ARCH_TOOLCHAIN_GNU
25+
select ARCH_TOOLCHAIN_GCC
2626
---help---
2727
Most of the older buildroot toolchains are OABI
2828

2929
config ARM_TOOLCHAIN_GNU_EABI
3030
bool "Generic GNU EABI toolchain"
31-
select ARCH_TOOLCHAIN_GNU
31+
select ARCH_TOOLCHAIN_GCC
3232
---help---
3333
This option should work for any modern GNU toolchain (GCC 4.5 or newer)
3434

3535
config ARM_TOOLCHAIN_GNU_OABI
3636
bool "Generic GNU OABI toolchain"
37-
select ARCH_TOOLCHAIN_GNU
37+
select ARCH_TOOLCHAIN_GCC
3838
---help---
3939
This option should work for any GNU toolchain.
4040

arch/arm64/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ choice
1212

1313
config ARM64_TOOLCHAIN_GNU_EABI
1414
bool "Generic GNU EABI toolchain"
15-
select ARCH_TOOLCHAIN_GNU
15+
select ARCH_TOOLCHAIN_GCC
1616
---help---
1717
This option should work for any modern GNU toolchain (GCC 4.5 or newer)
1818

arch/xtensa/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ choice
302302

303303
config XTENSA_TOOLCHAIN_XCC
304304
bool "Xtensa Toolchain use GCC as front end"
305-
select ARCH_TOOLCHAIN_GNU
305+
select ARCH_TOOLCHAIN_GCC
306306

307307
config XTENSA_TOOLCHAIN_XCLANG
308308
bool "Xtensa Toolchain use CLANG as front end"

0 commit comments

Comments
 (0)