[toolchain/binutils]: enable 2.22 for unsupported archs if BROKEN is enabled
[openwrt.git] / toolchain / binutils / Config.in
1 # Choose binutils version.
2
3 choice
4         prompt "Binutils Version" if TOOLCHAINOPTS
5         default BINUTILS_VERSION_2_19_1 if ubicom32
6         default BINUTILS_VERSION_2_20_1 if avr32
7         default BINUTILS_VERSION_2_22
8         help
9           Select the version of binutils you wish to use.
10
11         config BINUTILS_VERSION_2_19_1
12                 depends ubicom32
13                 bool "binutils 2.19.1"
14
15         config BINUTILS_VERSION_2_20_1
16                 depends avr32
17                 bool "binutils 2.20.1"
18
19         config BINUTILS_VERSION_2_21
20                 depends !ubicom32
21                 depends !avr32 || (avr32 && BROKEN)
22                 bool "binutils 2.21"
23
24         config BINUTILS_VERSION_2_21_1
25                 depends !ubicom32
26                 depends !avr32 || (avr32 && BROKEN)
27                 bool "binutils 2.21.1"
28
29         config BINUTILS_VERSION_2_22
30                 depends !ubicom32 || (ubicom32 && BROKEN)
31                 depends !avr32 || (avr32 && BROKEN)
32                 bool "binutils 2.22"
33
34 endchoice
35
36 config EXTRA_BINUTILS_CONFIG_OPTIONS
37         string
38         prompt "Additional binutils configure options" if TOOLCHAINOPTS
39         default ""
40         help
41             Any additional binutils options you may want to include....
42
43 config BINUTILS_VERSION
44         string
45         prompt "Binutils Version" if (TOOLCHAINOPTS && NULL)
46         default "2.19.1"          if BINUTILS_VERSION_2_19_1
47         default "2.20.1"          if BINUTILS_VERSION_2_20_1
48         default "2.21"            if BINUTILS_VERSION_2_21
49         default "2.21.1"          if BINUTILS_VERSION_2_21_1
50         default "2.22"            if BINUTILS_VERSION_2_22
51         default "2.19.1"          if ubicom32
52         default "2.20.1"          if avr32
53         default "2.22"