mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
12b2cb2ec3
I noticed that CONFIG_GDB was suddenly appearing in the main menuconfig
menu despite the fact that it should be visible only when TOOLCHAINOPTS
is selected and under a dedicated menu.
After some trial and error, it seems that this was caused by the recent
addition of GCC_USE_DEFAULT_VERSION, and after even more trial and error
it gets fixed as soon GCC_USE_DEFAULT_VERSION is placed after GCC_VERSION.
So, lets simply put GCC_USE_DEFAULT_VERSION after GCC_VERSION.
Fixes: 501ef81040
("config: select KERNEL_WERROR if building with default GCC version")
Signed-off-by: Robert Marko <robimarko@gmail.com>
20 lines
424 B
Plaintext
20 lines
424 B
Plaintext
config GCC_VERSION_11
|
|
default y if GCC_USE_VERSION_11
|
|
bool
|
|
|
|
config GCC_VERSION_12
|
|
default y if GCC_USE_VERSION_12
|
|
bool
|
|
|
|
config GCC_VERSION
|
|
string
|
|
default EXTERNAL_GCC_VERSION if EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
|
default "11.3.0" if GCC_VERSION_11
|
|
default "12.3.0" if GCC_VERSION_12
|
|
default "13.2.0"
|
|
|
|
config GCC_USE_DEFAULT_VERSION
|
|
bool
|
|
default y if !TOOLCHAINOPTS || GCC_USE_VERSION_13
|
|
imply KERNEL_WERROR
|