toolchain/external: newer Linaro toolchains do not provide source code
[buildroot-gz.git] / toolchain / toolchain-common.in
blob8408852fdaca7affa3791fa62e00b0985ee8741e
1 # Generic toolchain options
3 # we want gdb config in the middle of both source and external
4 # toolchains, but mconf won't let us source the same file twice,
5 # so put it here instead
6 source "package/gdb/Config.in.host"
8 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
9         bool
11 config BR2_USE_WCHAR
12         bool
14 config BR2_ENABLE_LOCALE
15         bool
17 config BR2_INSTALL_LIBSTDCPP
18         bool
20 config BR2_TOOLCHAIN_HAS_THREADS
21         bool
23 config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
24         bool
26 config BR2_TOOLCHAIN_HAS_THREADS_NPTL
27         bool
29 config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
30         bool
32 config BR2_TOOLCHAIN_HAS_SSP
33         bool
35 config BR2_ENABLE_LOCALE_PURGE
36         bool "Purge unwanted locales"
37         help
38           Explicitly specify what locales to install on target. If N
39           then all locales supported by packages are installed.
41 config BR2_ENABLE_LOCALE_WHITELIST
42         string "Locales to keep"
43         default "C en_US de fr"
44         depends on BR2_ENABLE_LOCALE_PURGE
45         help
46           Whitespace seperated list of locales to allow on target.
47           Locales not listed here will be removed from the target.
48           See 'locale -a' on your host for a list of locales available
49           on your build host, or have a look in /usr/share/locale in
50           the target file system for available locales.
52           Notice that listing a locale here doesn't guarantee that it
53           will be available on the target - That purely depends on the
54           support for that locale in the selected packages.
56 config BR2_GENERATE_LOCALE
57         string "Generate locale data"
58         default ""
59         depends on \
60                 (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
61                 BR2_TOOLCHAIN_USES_GLIBC
62         help
63           Generate support for a list of locales. Locales can be
64           specified with or without encoding, when no encoding is
65           specified, UTF-8 is assumed. Examples of locales: en_US,
66           fr_FR.UTF-8.
68 config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
69         bool "Copy gconv libraries"
70         depends on BR2_TOOLCHAIN_USES_GLIBC
71         help
72           The gconv libraries are used to convert between different
73           character sets (charsets).
75           Say 'y' if you need to store and/or display different charsets.
77 config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST
78         string "Gconv libraries to copy"
79         depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
80         help
81           Set to the list of gconv libraries to copy.
82           Leave empty to copy all gconv libraries.
84           Specify only the basename of the libraries, leave
85           out the .so extension. Eg.:
86             IBM850 ISO8859-15 UNICODE
88           Note: the full set of gconv libs are ~8MiB (on ARM).
90 # glibc and eglibc directly include gettext, so a separatly compiled
91 # gettext isn't needed and shouldn't be built to avoid conflicts. Some
92 # packages always need gettext, other packages only need gettext when
93 # locale support is enabled. See the documentation for how packages
94 # should rely on the following two options.
96 config BR2_NEEDS_GETTEXT
97         bool
98         default y if BR2_TOOLCHAIN_USES_UCLIBC
100 config BR2_NEEDS_GETTEXT_IF_LOCALE
101         bool
102         default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
104 config BR2_USE_MMU
105         bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL
106         default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY
107         help
108           If your target has a MMU, you should say Y here.  If you
109           are unsure, just say Y.
111 config BR2_TARGET_OPTIMIZATION
112         string "Target Optimizations"
113         default ""
114         help
115           Optimizations to use when building for the target host.
116           NOTE: gcc optimization level is defined in build options.
118 config BR2_TARGET_LDFLAGS
119         string "Target linker options"
120         help
121           Extra options to pass to the linker when building for the target.
123           Note that options with a '$' sign (eg. -Wl,-rpath='$ORIGIN/../lib')
124           are not supported.
126 config BR2_ECLIPSE_REGISTER
127         bool "Register toolchain within Eclipse Buildroot plug-in"
128         help
129           This options tells Buildroot to generate the necessary
130           configuration files to make your toolchain appear within
131           Eclipse, through the Eclipse Buildroot plugin.
133 # Options for packages to depend on, if they require at least a
134 # specific version of the kernel headers.
135 # Toolchains should choose the adequate option (ie. the highest
136 # version, not all of them).
137 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
138         bool
140 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
141         bool
142         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
144 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
145         bool
146         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
148 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
149         bool
150         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
152 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
153         bool
154         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
156 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
157         bool
158         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
160 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
161         bool
162         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
164 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
165         bool
166         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
168 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
169         bool
170         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
172 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
173         bool
174         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
176 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
177         bool
178         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
180 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
181         bool
182         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
184 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
185         bool
186         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
188 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
189         bool
190         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
192 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
193         bool
194         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
196 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
197         bool
198         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
200 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
201         bool
202         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
204 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
205         bool
206         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
208 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
209         bool
210         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
212 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
213         bool
214         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
216 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
217         bool
218         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
220 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
221         bool
222         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
224 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
225         bool
226         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
228 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
229         bool
230         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
232 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
233         bool
234         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
236 # This order guarantees that the highest version is set, as kconfig
237 # stops affecting a value on the first matching default.
238 config BR2_TOOLCHAIN_HEADERS_AT_LEAST
239         string
240         default "4.4"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
241         default "4.3"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
242         default "4.2"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
243         default "4.1"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
244         default "4.0"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
245         default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
246         default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
247         default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
248         default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
249         default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
250         default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
251         default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
252         default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
253         default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
254         default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
255         default "3.9"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
256         default "3.8"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
257         default "3.7"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
258         default "3.6"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
259         default "3.5"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
260         default "3.4"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
261         default "3.3"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
262         default "3.2"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
263         default "3.1"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
264         default "3.0"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
265         default "2.6"
267 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
268         bool
270 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
271         bool
272         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
274 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
275         bool
276         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
278 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
279         bool
280         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
282 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
283         bool
284         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
286 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
287         bool
288         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
290 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
291         bool
292         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
294 config BR2_TOOLCHAIN_GCC_AT_LEAST_5
295         bool
296         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
298 # This order guarantees that the highest version is set, as kconfig
299 # stops affecting a value on the first matching default.
300 config BR2_TOOLCHAIN_GCC_AT_LEAST
301         string
302         default "5"     if BR2_TOOLCHAIN_GCC_AT_LEAST_5
303         default "4.9"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
304         default "4.8"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
305         default "4.7"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
306         default "4.6"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
307         default "4.5"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
308         default "4.4"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
309         default "4.3"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3