toolchain: fix gcc 4.6 build with gcc5
[openwrt/staging/wigyori.git] / toolchain / gcc / Config.version
index ac4ed7da1b42c3c53628511a48da0096beddb686..56de0d7bd46e2aa1e4ae7f0b74e59d6f3b3d28cf 100644 (file)
@@ -1,23 +1,30 @@
-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"
+config GCC_VERSION_4_6_LINARO
+       default y if (!TOOLCHAINOPTS && TARGET_octeon)
+       bool
+
+config GCC_VERSION_4_8_LINARO
+       default y if (!TOOLCHAINOPTS && !TARGET_octeon)
+       bool
 
-if !TOOLCHAINOPTS
-       config GCC_VERSION_3_4_6
-               default y if LINUX_2_4
+config GCC_VERSION_4_9_LINARO
+       bool
 
-       config GCC_VERSION_4_2_0
-               default y if TARGET_magicbox
+config GCC_VERSION
+       string
+       default "4.6.3"     if GCC_VERSION_4_6_3
+       default "4.6-linaro"    if GCC_VERSION_4_6_LINARO
+       default "4.8-linaro"    if GCC_VERSION_4_8_LINARO
+       default "4.9-linaro"    if GCC_VERSION_4_9_LINARO
+       default "4.6-linaro"
 
-       config GCC_VERSION_4_2_4
-               default y if TARGET_avr32
-endif
+config GCC_VERSION_4_6
+       bool
+       default y       if GCC_VERSION_4_6_LINARO
 
+config GCC_VERSION_4_8
+       bool
+       default y       if GCC_VERSION_4_8_LINARO
 
+config GCC_VERSION_4_9
+       bool
+       default y       if GCC_VERSION_4_9_LINARO