add preliminary support for the latest CodeSourcery toolchain
[openwrt.git] / toolchain / gcc / Config.version
1 config GCC_VERSION
2         string
3         default "3.4.6"     if GCC_VERSION_3_4_6
4         default "4.1.2"     if GCC_VERSION_4_1_2
5         default "4.2.4"     if GCC_VERSION_4_2_4
6         default "4.3.3"     if GCC_VERSION_4_3_3
7         default "4.3.3+cs"  if GCC_VERSION_4_3_3_CS
8         default "4.3.4"     if GCC_VERSION_4_3_4
9         default "4.4.1"     if GCC_VERSION_4_4_1
10         default "4.4.1+cs"  if GCC_VERSION_4_4_1_CS
11         default "4.4.2"     if GCC_VERSION_4_4_2
12         default "4.4.3"     if GCC_VERSION_4_4_3
13         default "llvm"      if GCC_VERSION_LLVM
14         default "4.1.2"
15
16 config GCC_VERSION_3
17         bool
18         default y       if GCC_VERSION_3_4_6
19
20 config GCC_VERSION_3_4
21         bool
22         default y       if GCC_VERSION_3_4_6
23
24 if !LINUX_2_4
25
26 config GCC_VERSION_4
27         bool
28         default y       if GCC_VERSION_4_1
29         default y       if GCC_VERSION_4_2
30         default y       if GCC_VERSION_4_3
31         default y       if GCC_VERSION_4_4
32
33 config GCC_VERSION_4_1
34         bool
35         default y       if GCC_VERSION_4_1_2
36
37 config GCC_VERSION_4_2
38         bool
39         default y       if GCC_VERSION_4_2_4
40         default y       if GCC_VERSION_LLVM
41
42 config GCC_VERSION_4_3
43         bool
44         default y       if GCC_VERSION_4_3_3
45         default y       if GCC_VERSION_4_3_3_CS
46         default y       if GCC_VERSION_4_3_4
47
48 config GCC_VERSION_4_4
49         bool
50         default y       if GCC_VERSION_4_4_1
51         default y       if GCC_VERSION_4_4_1_CS
52         default y       if GCC_VERSION_4_4_2
53         default y       if GCC_VERSION_4_4_3
54
55 endif
56
57 if !TOOLCHAINOPTS
58         config GCC_VERSION_3_4_6
59                 default y if LINUX_2_4
60
61 if !LINUX_2_4
62         config GCC_VERSION_4_2_4
63                 default y if avr32
64                 default y if TARGET_ppc40x
65                 default y if TARGET_ppc44x
66
67         config GCC_VERSION_4_3_3
68                 default y if powerpc64
69                 default y if TARGET_etrax
70                 default y if TARGET_coldfire
71
72         config GCC_VERSION_4_3_3_CS
73                 default y if (mips || mipsel) && !TARGET_octeon
74                 default y if arm || armeb
75
76         config GCC_VERSION_4_4_1
77                 default y if ubicom32
78                 default y if TARGET_octeon
79 endif
80 endif