[toolchain/gcc] add support for gcc 4.7.0 - thanks to acoul!
[openwrt.git] / toolchain / gcc / Config.version
1 config GCC_DEFAULT_VERSION
2         bool
3
4 config GCC_DEFAULT_VERSION_4_4_6
5         select GCC_DEFAULT_VERSION
6         default y if (avr32 || ubicom32)
7         bool
8
9 config GCC_DEFAULT_VERSION_4_6_LINARO
10         default y if !(GCC_DEFAULT_VERSION)
11         bool
12
13
14 config GCC_VERSION
15         string
16         default "4.4.6"     if GCC_VERSION_4_4_6
17         default "4.6.2"     if GCC_VERSION_4_6_2
18         default "4.7.0"     if GCC_VERSION_4_7_0
19         default "4.5-linaro"    if GCC_VERSION_4_5_LINARO
20         default "4.6-linaro"    if GCC_VERSION_4_6_LINARO
21         default "llvm"      if GCC_VERSION_LLVM
22         default "4.6-linaro"
23
24 config GCC_VERSION_4_4
25         bool
26         default y       if GCC_VERSION_4_4_6
27
28 config GCC_VERSION_4_5
29         bool
30         default y       if GCC_VERSION_4_5_LINARO
31
32 config GCC_VERSION_4_6
33         bool
34         default y       if (GCC_VERSION_4_6_2 || GCC_VERSION_4_6_LINARO)
35
36 config GCC_VERSION_4_7
37         bool
38         default y       if GCC_VERSION_4_7_0
39
40 if !TOOLCHAINOPTS
41
42         config GCC_VERSION_4_4_6
43                 default y if GCC_DEFAULT_VERSION_4_4_6
44                 bool
45
46         config GCC_VERSION_4_6_LINARO
47                 default y if GCC_DEFAULT_VERSION_4_6_LINARO
48                 bool
49
50 endif