scripts/ext-toolchain: implement external GCC version detection
[openwrt/staging/dangole.git] / toolchain / gcc / Config.version
index 167da76166304faf7eef212b15dd2f980e0a0f86..a00685ffa3f295fb14003771c92c6da7d1ed6aa2 100644 (file)
@@ -1,38 +1,14 @@
-config GCC_VERSION_4_4_7
-       default y if (!TOOLCHAINOPTS && avr32)
+config GCC_VERSION_11
+       default y if GCC_USE_VERSION_11
        bool
 
-config GCC_VERSION_4_6_3
-       bool
-
-config GCC_VERSION_4_6_LINARO
-       default y if (!TOOLCHAINOPTS && !avr32)
-       bool
-
-config GCC_VERSION_4_8_LINARO
-       bool
-
-config GCC_VERSION_4_8_0
+config GCC_VERSION_13
+       default y if GCC_USE_VERSION_13
        bool
 
 config GCC_VERSION
        string
-       default "4.4.7"     if GCC_VERSION_4_4_7
-       default "4.6.3"     if GCC_VERSION_4_6_3
-       default "4.8.0"     if GCC_VERSION_4_8_0
-       default "4.6-linaro"    if GCC_VERSION_4_6_LINARO
-       default "4.8-linaro"    if GCC_VERSION_4_8_LINARO
-       default "4.6-linaro"
-
-config GCC_VERSION_4_4
-       bool
-       default y       if GCC_VERSION_4_4_7
-
-config GCC_VERSION_4_6
-       bool
-       default y       if (GCC_VERSION_4_6_3 || GCC_VERSION_4_6_LINARO)
-
-config GCC_VERSION_4_8
-       bool
-       default y       if (GCC_VERSION_4_8_0 || GCC_VERSION_4_8_LINARO)
-
+       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"