mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 01:44:54 +00:00
28420cd67b
Some package may needs to enable compatibility option based on the GCC version. Currently the GCC version is set based on the default value and doesn't actually reflect the real value provided by the external toolchain if used. Fix this by correctly detecting the GCC version in the external toolchain and set the correct value in CONFIG_GCC_VERSION. A new option is added in menuconfig to manually set the GCC version if needed. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
15 lines
314 B
Plaintext
15 lines
314 B
Plaintext
config GCC_VERSION_11
|
|
default y if GCC_USE_VERSION_11
|
|
bool
|
|
|
|
config GCC_VERSION_13
|
|
default y if GCC_USE_VERSION_13
|
|
bool
|
|
|
|
config GCC_VERSION
|
|
string
|
|
default EXTERNAL_GCC_VERSION if EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
|
default "11.3.0" if GCC_VERSION_11
|
|
default "13.2.0" if GCC_VERSION_13
|
|
default "12.3.0"
|