d50c908959d85feced0ac22e49e94b165abed308
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / toolchain / toolchain-common.in
1 # Generic toolchain options
2
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"
7
8 config BR2_TOOLCHAIN_HAS_GCC_BUG_58595
9         bool
10
11 config BR2_TOOLCHAIN_HAS_GCC_BUG_58854
12         bool
13
14 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
15         bool
16
17 config BR2_USE_WCHAR
18         bool
19
20 config BR2_ENABLE_LOCALE
21         bool
22
23 config BR2_INSTALL_LIBSTDCPP
24         bool
25
26 config BR2_TOOLCHAIN_HAS_THREADS
27         bool
28
29 config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
30         bool
31
32 config BR2_TOOLCHAIN_HAS_THREADS_NPTL
33         bool
34
35 config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
36         bool
37
38 config BR2_TOOLCHAIN_HAS_SSP
39         bool
40
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.
46
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.
57
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.
61
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.
73
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).
80
81           Say 'y' if you need to store and/or display different charsets.
82
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.
89
90           Specify only the basename of the libraries, leave
91           out the .so extension. Eg.:
92             IBM850 ISO8859-15 UNICODE
93
94           Note: the full set of gconv libs are ~8MiB (on ARM).
95
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.
101
102 config BR2_NEEDS_GETTEXT
103         bool
104         default y if BR2_TOOLCHAIN_USES_UCLIBC
105
106 config BR2_NEEDS_GETTEXT_IF_LOCALE
107         bool
108         default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
109
110 config BR2_USE_MMU
111         bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_sh || BR2_xtensa
112         default y if !BR2_bfin
113         help
114           If your target has a MMU, you should say Y here.  If you
115           are unsure, just say Y.
116
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.
123
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.
128
129           Note that options with a '$' sign (eg. -Wl,-rpath='$ORIGIN/../lib')
130           are not supported.
131
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.
138
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
145
146 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
147         bool
148         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
149
150 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
151         bool
152         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
153
154 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
155         bool
156         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
157
158 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
159         bool
160         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
161
162 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
163         bool
164         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
165
166 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
167         bool
168         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
169
170 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
171         bool
172         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
173
174 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
175         bool
176         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
177
178 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
179         bool
180         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
181
182 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
183         bool
184         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
185
186 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
187         bool
188         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
189
190 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
191         bool
192         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
193
194 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
195         bool
196         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
197
198 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
199         bool
200         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
201
202 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
203         bool
204         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
205
206 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
207         bool
208         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
209
210 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
211         bool
212         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
213
214 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
215         bool
216         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
217
218 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
219         bool
220         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
221
222 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
223         bool
224         select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
225
226 # This order guarantees that the highest version is set, as kconfig
227 # stops affecting a value on the first matching default.
228 config BR2_TOOLCHAIN_HEADERS_AT_LEAST
229         string
230         default "4.0"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
231         default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
232         default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
233         default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
234         default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
235         default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
236         default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
237         default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
238         default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
239         default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
240         default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
241         default "3.9"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
242         default "3.8"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
243         default "3.7"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
244         default "3.6"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
245         default "3.5"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
246         default "3.4"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
247         default "3.3"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
248         default "3.2"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
249         default "3.1"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
250         default "3.0"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
251         default "2.6"