scripts/ext-toolchain: implement external GCC version detection
[openwrt/staging/dangole.git] / toolchain / gcc / Config.version
index 53caa24577b37701c0599b937a8d1cbdd295be45..a00685ffa3f295fb14003771c92c6da7d1ed6aa2 100644 (file)
@@ -1,13 +1,14 @@
-config GCC_VERSION_4_8_ARC
-       default y if (!TOOLCHAINOPTS && arc)
+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 "arc-2016.03"   if GCC_VERSION_4_8_ARC
-       default "6.1.0"         if GCC_USE_VERSION_6
-       default "5.4.0"
-
-config GCC_VERSION_4_8
-       bool
-       default y       if GCC_VERSION_4_8_ARC
+       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"