package/libdcadec: enable shared build
[buildroot-gz.git] / toolchain / toolchain-common.in
blob6871d8b4b398db0c3e4b554026f95001edd0263c
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_GCC_BUG_58595
9         bool
11 config BR2_TOOLCHAIN_HAS_GCC_BUG_58854
12         bool
14 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
15         bool
17 config BR2_USE_WCHAR
18         bool
20 config BR2_ENABLE_LOCALE
21         bool
23 config BR2_INSTALL_LIBSTDCPP
24         bool
26 config BR2_TOOLCHAIN_HAS_THREADS
27         bool
29 config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
30         bool
32 config BR2_TOOLCHAIN_HAS_THREADS_NPTL
33         bool
35 config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
36         bool
38 config BR2_TOOLCHAIN_HAS_SSP
39         bool
41 config BR2_ENABLE_LOCALE_PURGE
42         bool "Purge unwanted locales"
43         help
44           Explicitly specify what locales to install on target. If N
45           then all locales supported by packages are installed.
47 config BR2_ENABLE_LOCALE_WHITELIST
48         string "Locales to keep"
49         default "C en_US de fr"
50         depends on BR2_ENABLE_LOCALE_PURGE
51         help
52           Whitespace seperated list of locales to allow on target.
53           Locales not listed here will be removed from the target.
54           See 'locale -a' on your host for a list of locales available
55           on your build host, or have a look in /usr/share/locale in
56           the target file system for available locales.
58           Notice that listing a locale here doesn't guarantee that it
59           will be available on the target - That purely depends on the
60           support for that locale in the selected packages.
62 config BR2_GENERATE_LOCALE
63         string "Generate locale data"
64         default ""
65         depends on \
66                 (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
67                 BR2_TOOLCHAIN_USES_GLIBC
68         help
69           Generate support for a list of locales. Locales can be
70           specified with or without encoding, when no encoding is
71           specified, UTF-8 is assumed. Examples of locales: en_US,
72           fr_FR.UTF-8.
74 config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
75         bool "Copy gconv libraries"
76         depends on BR2_TOOLCHAIN_USES_GLIBC
77         help
78           The gconv libraries are used to convert between different
79           character sets (charsets).
81           Say 'y' if you need to store and/or display different charsets.
83 config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST
84         string "Gconv libraries to copy"
85         depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
86         help
87           Set to the list of gconv libraries to copy.
88           Leave empty to copy all gconv libraries.
90           Specify only the basename of the libraries, leave
91           out the .so extension. Eg.:
92             IBM850 ISO8859-15 UNICODE
94           Note: the full set of gconv libs are ~8MiB (on ARM).
96 # glibc and eglibc directly include gettext, so a separatly compiled
97 # gettext isn't needed and shouldn't be built to avoid conflicts. Some
98 # packages always need gettext, other packages only need gettext when
99 # locale support is enabled. See the documentation for how packages
100 # should rely on the following two options.
102 config BR2_NEEDS_GETTEXT
103         bool
104         default y if BR2_TOOLCHAIN_USES_UCLIBC
106 config BR2_NEEDS_GETTEXT_IF_LOCALE
107         bool
108         default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
110 config BR2_USE_MMU
111         bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL
112         default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY
113         help
114           If your target has a MMU, you should say Y here.  If you
115           are unsure, just say Y.
117 config BR2_TARGET_OPTIMIZATION
118         string "Target Optimizations"
119         default ""
120         help
121           Optimizations to use when building for the target host.
122           NOTE: gcc optimization level is defined in build options.
124 config BR2_TARGET_LDFLAGS
125         string "Target linker options"
126         help
127           Extra options to pass to the linker when building for the target.
129           Note that options with a '$' sign (eg. -Wl,-rpath='$ORIGIN/../lib')
130           are not supported.
132 config BR2_ECLIPSE_REGISTER
133         bool "Register toolchain within Eclipse Buildroot plug-in"
134         help
135           This options tells Buildroot to generate the necessary
136           configuration files to make your toolchain appear within
137           Eclipse, through the Eclipse Buildroot plugin.
139 # Options for packages to depend on, if they require at least a
140 # specific version of the kernel headers.
141 # Toolchains should choose the adequate option (ie. the highest
142 # version, not all of them).
143 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
144         bool
146 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
147         bool
148         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
150 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
151         bool
152         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
154 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
155         bool
156         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
158 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
159         bool
160         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
162 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
163         bool
164         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
166 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
167         bool
168         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
170 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
171         bool
172         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
174 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
175         bool
176         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
178 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
179         bool
180         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
182 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
183         bool
184         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
186 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
187         bool
188         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
190 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
191         bool
192         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
194 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
195         bool
196         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
198 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
199         bool
200         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
202 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
203         bool
204         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
206 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
207         bool
208         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
210 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
211         bool
212         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
214 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
215         bool
216         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
218 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
219         bool
220         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
222 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
223         bool
224         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
226 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
227         bool
228         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
230 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
231         bool
232         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
234 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
235         bool
236         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
238 # This order guarantees that the highest version is set, as kconfig
239 # stops affecting a value on the first matching default.
240 config BR2_TOOLCHAIN_HEADERS_AT_LEAST
241         string
242         default "4.3"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
243         default "4.2"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
244         default "4.1"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
245         default "4.0"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
246         default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
247         default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
248         default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
249         default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
250         default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
251         default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
252         default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
253         default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
254         default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
255         default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
256         default "3.9"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
257         default "3.8"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
258         default "3.7"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
259         default "3.6"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
260         default "3.5"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
261         default "3.4"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
262         default "3.3"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
263         default "3.2"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
264         default "3.1"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
265         default "3.0"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
266         default "2.6"
268 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
269         bool
271 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
272         bool
273         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
275 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
276         bool
277         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
279 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
280         bool
281         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
283 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
284         bool
285         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
287 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
288         bool
289         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
291 config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
292         bool
293         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
295 config BR2_TOOLCHAIN_GCC_AT_LEAST_5
296         bool
297         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
299 # This order guarantees that the highest version is set, as kconfig
300 # stops affecting a value on the first matching default.
301 config BR2_TOOLCHAIN_GCC_AT_LEAST
302         string
303         default "5"     if BR2_TOOLCHAIN_GCC_AT_LEAST_5
304         default "4.9"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
305         default "4.8"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
306         default "4.7"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
307         default "4.6"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
308         default "4.5"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
309         default "4.4"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
310         default "4.3"   if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3