toolchain: add support of ARC architecture
[openwrt/svn-archive/archive.git] / toolchain / gcc / Config.version
index ac4ed7da1b42c3c53628511a48da0096beddb686..8fd658e35745a8b7f1254ea9c7256ee79bb9e488 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 || arc))
+       bool
 
-if !TOOLCHAINOPTS
-       config GCC_VERSION_3_4_6
-               default y if LINUX_2_4
+config GCC_VERSION_4_8_ARC
+       default y if (!TOOLCHAINOPTS && arc)
+       bool
 
-       config GCC_VERSION_4_2_0
-               default y if TARGET_magicbox
+config GCC_VERSION
+       string
+       default "5.2.0"     if GCC_VERSION_5
+       default "4.6-linaro"    if GCC_VERSION_4_6_LINARO
+       default "4.8-linaro"    if GCC_VERSION_4_8_LINARO
+       default "arc-2015.06"   if GCC_VERSION_4_8_ARC
+       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 || GCC_VERSION_4_8_ARC)
 
+config GCC_VERSION_5
+       bool