scripts/ext-toolchain: implement external GCC version detection
[openwrt/staging/dangole.git] / toolchain / gcc / Config.version
index ccc7b273facb4c6296c6f450fb68258b84ef061a..a00685ffa3f295fb14003771c92c6da7d1ed6aa2 100644 (file)
@@ -1,28 +1,14 @@
-config GCC_VERSION_5
-       default y if GCC_USE_VERSION_5
+config GCC_VERSION_11
+       default y if GCC_USE_VERSION_11
        bool
 
-config GCC_VERSION_7
-       default y if GCC_USE_VERSION_7
-       bool
-
-config GCC_VERSION_9
-       default y if GCC_USE_VERSION_9
-       bool
-
-config GCC_VERSION_10
-       default y if GCC_USE_VERSION_10
+config GCC_VERSION_13
+       default y if GCC_USE_VERSION_13
        bool
 
 config GCC_VERSION
        string
-       default "5.5.0"         if GCC_VERSION_5
-       default "7.5.0"         if GCC_VERSION_7
-       default "9.3.0"         if GCC_VERSION_9
-       default "10.1.0"        if GCC_VERSION_10
-       default "8.4.0"
-
-config GCC_USE_IREMAP
-       bool
-       default y if ( GCC_USE_VERSION_5 || GCC_USE_VERSION_7 )
-       default n
+       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"