toolchain: get rid of eglibc version kconfig symbol overloading
[openwrt/openwrt.git] / toolchain / gcc / Config.version
index ac4ed7da1b42c3c53628511a48da0096beddb686..bf8b3e441ed774f007fd03c4e1fbc6c6a3ae738d 100644 (file)
@@ -1,23 +1,46 @@
+config GCC_VERSION_4_4_7
+       default y if (!TOOLCHAINOPTS && avr32)
+       bool
+
+config GCC_VERSION_4_6_3
+       bool
+
+config GCC_VERSION_4_7_2
+       bool
+
+config GCC_VERSION_4_6_LINARO
+       default y if (!TOOLCHAINOPTS && !avr32)
+       bool
+
+config GCC_VERSION_4_7_LINARO
+       bool
+
+config GCC_VERSION_4_8_0
+       bool
+
 config GCC_VERSION
        string
-       default "3.4.6"     if GCC_VERSION_3_4_6
-       default "4.1.2"     if GCC_VERSION_4_1_2
-       default "4.2.0"     if GCC_VERSION_4_2_0
-       default "4.2.1"     if GCC_VERSION_4_2_1
-       default "4.2.2"     if GCC_VERSION_4_2_2
-       default "4.2.3"     if GCC_VERSION_4_2_3
-       default "4.2.4"     if GCC_VERSION_4_2_4
-       default "4.1.2"
-
-if !TOOLCHAINOPTS
-       config GCC_VERSION_3_4_6
-               default y if LINUX_2_4
-
-       config GCC_VERSION_4_2_0
-               default y if TARGET_magicbox
-
-       config GCC_VERSION_4_2_4
-               default y if TARGET_avr32
-endif
+       default "4.4.7"     if GCC_VERSION_4_4_7
+       default "4.6.3"     if GCC_VERSION_4_6_3
+       default "4.7.2"     if GCC_VERSION_4_7_2
+       default "4.6-linaro"    if GCC_VERSION_4_6_LINARO
+       default "4.7-linaro"    if GCC_VERSION_4_7_LINARO
+       default "4.8.0"     if GCC_VERSION_4_8_0
+       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_7
+       bool
+       default y       if (GCC_VERSION_4_7_2 || GCC_VERSION_4_7_LINARO)
 
+config GCC_VERSION_4_8
+       bool
+       default y       if GCC_VERSION_4_8_0