scripts/ext-toolchain: implement external GCC version detection
[openwrt/staging/dangole.git] / toolchain / gcc / Config.version
index 52f241996d049bf4b5db230e305e880f9088f747..a00685ffa3f295fb14003771c92c6da7d1ed6aa2 100644 (file)
@@ -1,13 +1,14 @@
-config GCC_VERSION_10
-       default y if GCC_USE_VERSION_10
+config GCC_VERSION_11
+       default y if GCC_USE_VERSION_11
        bool
 
-config GCC_VERSION_12
-       default y if GCC_USE_VERSION_12
+config GCC_VERSION_13
+       default y if GCC_USE_VERSION_13
        bool
 
 config GCC_VERSION
        string
-       default "10.3.0"        if GCC_VERSION_10
-       default "12.2.0"        if GCC_VERSION_12
-       default "11.3.0"
+       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"