adjust depends
[buildroot.git] / toolchain / gcc / Config.in
blob1a772d88121356a01134981b1a86dff0e0a27711
1 # Choose gcc version.
3 comment "GCC Options"
5 choice
6         prompt "GCC compiler Version"
7         default BR2_GCC_VERSION_4_3_2
8         help
9           Select the version of gcc you wish to use.
11         config BR2_GCC_VERSION_3_4_6
12                 depends on !BR2_avr32
13                 bool "gcc 3.4.6"
15         config BR2_GCC_VERSION_4_0_4
16                 depends on !BR2_avr32 && !BR2_nios2
17                 depends on BR2_DEPRECATED
18                 bool "gcc 4.0.4"
20         config BR2_GCC_VERSION_4_1_2
21                 depends on !BR2_nios2
22                 bool "gcc 4.1.2"
24         config BR2_GCC_VERSION_4_2_0
25                 depends on !BR2_avr32 && !BR2_nios2
26                 depends on BR2_DEPRECATED
27                 bool "gcc 4.2.0"
29         config BR2_GCC_VERSION_4_2_1
30                 depends on !BR2_avr32 && !BR2_nios2
31                 depends on BR2_DEPRECATED
32                 bool "gcc 4.2.1"
34         config BR2_GCC_VERSION_4_2_2
35                 depends on !BR2_avr32 && !BR2_nios2
36                 depends on BR2_DEPRECATED
37                 bool "gcc 4.2.2"
39         config BR2_GCC_VERSION_4_2_3
40                 depends on !BR2_avr32 && !BR2_nios2
41                 depends on BR2_DEPRECATED
42                 bool "gcc 4.2.3"
44         config BR2_GCC_VERSION_4_3_0
45                 depends on !BR2_avr32 && !BR2_nios2
46                 depends on BR2_DEPRECATED
47                 bool "gcc 4.3.0"
49         config BR2_GCC_VERSION_4_3_1
50                 depends on !BR2_avr32 && !BR2_nios2
51                 depends on BR2_DEPRECATED
52                 bool "gcc 4.3.1"
54         config BR2_GCC_VERSION_4_3_2
55                 depends on !BR2_avr32 && !BR2_nios2
56                 bool "gcc 4.3.2"
58         config BR2_GCC_VERSION_4_4_0
59                 depends on !BR2_avr32 && !BR2_nios2
60                 bool "gcc 4.4.0 (local trunk checkout)"
62         config BR2_GCC_VERSION_4_4
63                 depends on !BR2_avr32 && !BR2_nios2
64                 select BR2_GCC_IS_SNAP
65                 bool "gcc 4.4 (snapshot)"
66 endchoice
68 config BR2_GCC_IS_SNAP
69         depends on !BR2_avr32
70         bool
71         default n
73 config BR2_GCC_SUPPORTS_SYSROOT
74         bool
75         default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2
76         default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2
78 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
79         bool
80         default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2 || BR2_GCC_VERSION_4_2_0 || BR2_GCC_VERSION_4_2_1 || BR2_GCC_VERSION_4_2_2 || BR2_GCC_VERSION_4_2_3
81         default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2 && !BR2_GCC_VERSION_4_2_0 && !BR2_GCC_VERSION_4_2_1 && !BR2_GCC_VERSION_4_2_2 && !BR2_GCC_VERSION_4_2_3
83 config BR2_GCC_SNAP_DATE
84         string "GCC snapshot date"
85         default "20081010"
86         depends on BR2_GCC_IS_SNAP
87         help
88           Enter snapshot date to use for gcc.  Format is:
89           YYYYMMDD
91 config BR2_GCC_VERSION
92         string
93         default "3.4.6"     if BR2_GCC_VERSION_3_4_6
94         default "4.0.4"     if BR2_GCC_VERSION_4_0_4
95         default "4.1.2"     if BR2_GCC_VERSION_4_1_2
96         default "4.2.0"     if BR2_GCC_VERSION_4_2_0
97         default "4.2.1"     if BR2_GCC_VERSION_4_2_1
98         default "4.2.2"     if BR2_GCC_VERSION_4_2_2
99         default "4.2.3"     if BR2_GCC_VERSION_4_2_3
100         default "4.3.0"     if BR2_GCC_VERSION_4_3_0
101         default "4.3.1"     if BR2_GCC_VERSION_4_3_1
102         default "4.3.2"     if BR2_GCC_VERSION_4_3_2
103         default "4.4.0"     if BR2_GCC_VERSION_4_4_0
104         default "4.4"       if BR2_GCC_VERSION_4_4
106 config BR2_TOOLCHAIN_SYSROOT
107         bool "Enable toolchain with --sysroot support"
108         depends on BR2_GCC_SUPPORTS_SYSROOT
109         default y
110         help
111           Enables --sysroot=dir for binutils and gcc.
112           Use dir as the logical root directory for headers and libraries.
113           For example, if the compiler would normally search for headers in
114           /usr/include and libraries in /usr/lib, it will instead search
115           dir/usr/include and dir/usr/lib.
117           This does not work with gcc < 4.2.0 (4.1.2 gets
118           ORIGINAL_AS_FOR_TARGET wrong)
120           Say Y here.
122 config BR2_GCC_USE_SJLJ_EXCEPTIONS
123         bool "Enable setjmp/longjmp exceptions?"
124         default n
125         help
126           For some platforms, proper stack unwinding works perfectly,
127           while other platforms must use setjmp/longjmp exceptions for
128           proper stack unwinding during exception handling.  Most people
129           can leave this set to n.
131 choice
132         prompt "GCC decimal floating types"
133         default BR2_GCC_DECNUMBER_no
134         help
135           As an extension, the GNU C Compiler supports decimal float types
136           as defined in the N1176 draft ISO/IEC WDTR24732.
138 config BR2_GCC_DECNUMBER_no
139         bool "no"
140 config BR2_GCC_DECNUMBER_yes
141         bool "yes"
142 config BR2_GCC_DECNUMBER_bid
143         bool "bid"
144 config BR2_GCC_DECNUMBER_dpd
145         bool "dpd"
146 endchoice
148 config BR2_GCC_DECNUMBER
149         string
150         default "no"  if BR2_GCC_DECNUMBER_no
151         default "yes" if BR2_GCC_DECNUMBER_yes
152         default "bid" if BR2_GCC_DECNUMBER_bid
153         default "dpd" if BR2_GCC_DECNUMBER_dpd
155 config BR2_GCC_USE_INTERWORKING
156         bool "Enable interworking support"
157         default n
158         depends on BR2_arm || BR2_armeb
159         depends on !BR2_generic_arm && !BR2_arm610 && !BR2_arm710
160         help
161           Interworking allows Thumb userspace binaries to be linked
162           against the C standard library compiled in ARM mode.
164           This is only possible on Thumb-aware architectures, i.e not
165           Generic ARM, ARM610 or ARM710.
167 config BR2_THUMB_BINARIES
168         bool "Generate Thumb binaries"
169         default n
170         depends on BR2_GCC_USE_INTERWORKING
171         help
172           Compile binaries in Thumb mode.
174 config BR2_EXTRA_GCC_CONFIG_OPTIONS
175         string "Additional cross-gcc configure options"
176         default ""
177         help
178           Any additional gcc configure options you may want to use to
179           build your cross-compiler.
181 config BR2_GCC_CROSS_CXX
182         bool "C++ cross-compiler support"
183         default n
184         help
185           Build a C++ cross-compiler
187 config BR2_GCC_CROSS_FORTRAN
188         bool "Fortran cross-compiler support"
189         default n
190         depends on !BR2_avr32
191         help
192           Build a Fortran cross-compiler
194 config BR2_INSTALL_LIBSTDCPP
195         bool "Build/install c++ compiler and libstdc++?"
196         default n
197         # >= 4.2.0 work fine without LARGEFILE
198         select BR2_LARGEFILE if !BR2_GCC_SUPPORTS_SYSROOT
199         select BR2_GCC_CROSS_CXX
200         depends on !BR2_GCC_VERSION_4_3_0 && !BR2_GCC_VERSION_4_3
201         # simply not yet implemented.
202         help
203           Build/install c++ compiler and libstdc++?
205 config BR2_INSTALL_LIBGCJ
206         bool "Build/install java compiler and libgcj?"
207         default n
208         depends on !BR2_avr32 && BR2_INSTALL_LIBSTDCPP
209         help
210           Build/install java compiler and libgcj?
212 config BR2_INSTALL_OBJC
213         bool "Build/install Objective-C compiler and runtime?"
214         default n
215         depends on !BR2_avr32
216         help
217           Build/install Objective-C compiler and runtime?
219 config BR2_INSTALL_FORTRAN
220         bool "Build/install Fortran compiler and runtime?"
221         default n
222         depends on BR2_GCC_CROSS_FORTRAN && !BR2_avr32
223         select BR2_PACKAGE_LIBMPFR
224         help
225           Build/install Fortran compiler and runtime?
226           Note that it is highly recommended NOT to use gfortran
227           from gcc older than 4.2.0
229 config BR2_GCC_SHARED_LIBGCC
230         bool "Build/install a shared libgcc?"
231         default y
232         # uClibc for alpha currently does not support shared libs
233         depends on BR2_ENABLE_SHARED && !BR2_alpha
234         help
235           Build/install a shared libgcc library