gcc: remove arch default duplication, fix version selection for !TOOLCHAINOPTS
[openwrt.git] / toolchain / gcc / Config.version
1 config GCC_DEFAULT_VERSION
2 bool
3
4 config GCC_DEFAULT_VERSION_4_3_3_CS
5 default y if (arm || armeb) && !(TARGET_gemini || TARGET_cns21xx || TARGET_omap35xx)
6 default y if (mips || mipsel) && !(TARGET_octeon || TARGET_sibyte)
7 select GCC_DEFAULT_VERSION
8 bool
9
10 config GCC_DEFAULT_VERSION_4_3_5
11 select GCC_DEFAULT_VERSION
12 default y if (avr32 || powerpc64 || TARGET_coldfire || TARGET_etrax || TARGET_gemini || TARGET_cns21xx)
13 bool
14
15 config GCC_DEFAULT_VERSION_4_4_5
16 select GCC_DEFAULT_VERSION
17 default y if (powerpc || ubicom32 || TARGET_omap35xx || TARGET_octeon || TARGET_sibyte)
18 bool
19
20 config GCC_DEFAULT_VERSION_LINARO
21 default y if !(GCC_DEFAULT_VERSION)
22 bool
23
24
25 config GCC_VERSION
26 string
27 default "4.3.3+cs" if GCC_VERSION_4_3_3_CS
28 default "4.3.5" if GCC_VERSION_4_3_5
29 default "4.4.1+cs" if GCC_VERSION_4_4_1_CS
30 default "4.4.5" if GCC_VERSION_4_4_5
31 default "4.5.2" if GCC_VERSION_4_5_2
32 default "linaro" if GCC_VERSION_LINARO
33 default "llvm" if GCC_VERSION_LLVM
34 default "linaro"
35
36 config GCC_VERSION_4_3
37 bool
38 default y if GCC_VERSION_4_3_3_CS
39 default y if GCC_VERSION_4_3_5
40
41 config GCC_VERSION_4_4
42 bool
43 default y if GCC_VERSION_4_4_1_CS
44 default y if GCC_VERSION_4_4_5
45
46 config GCC_VERSION_4_5
47 bool
48 default y if GCC_VERSION_4_5_2
49 default y if GCC_VERSION_LINARO
50
51 if !TOOLCHAINOPTS
52
53 config GCC_VERSION_4_3_3_CS
54 default y if GCC_DEFAULT_VERSION_4_3_3_CS
55 bool
56
57 config GCC_VERSION_4_3_5
58 default y if GCC_DEFAULT_VERSION_4_3_5
59 bool
60
61 config GCC_VERSION_4_4_5
62 default y if GCC_DEFAULT_VERSION_4_4_5
63 bool
64
65 config GCC_VERSION_LINARO
66 default y if GCC_DEFAULT_VERSION_LINARO
67 bool
68
69
70 endif
This page took 0.053474 seconds and 5 git commands to generate.