summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-10-19 14:19:09 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-10-20 16:13:31 +0200
commit28420cd67bc4c0fe5974ac0336528aea3a443b98 (patch)
tree85b10fe3d9ba60e6070a87e83bf83a6a7e4f7f9a /toolchain/gcc
parentc0e30b17eb609cb37dc90abfee4ae008ec444ed4 (diff)
downloadopenwrt-28420cd67bc4c0fe5974ac0336528aea3a443b98.tar.gz
openwrt-28420cd67bc4c0fe5974ac0336528aea3a443b98.tar.bz2
openwrt-28420cd67bc4c0fe5974ac0336528aea3a443b98.zip
scripts/ext-toolchain: implement external GCC version detection
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>
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Config.version1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version
index a7e55eb5ca..a00685ffa3 100644
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -8,6 +8,7 @@ config GCC_VERSION_13
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"