]> Git Repo - buildroot-mgba.git/blame - Config.in
toolchain: invert glibc <-> !static dependency
[buildroot-mgba.git] / Config.in
CommitLineData
2d523c23
EA
1#
2
6a53b729 3mainmenu "Buildroot $BR2_VERSION Configuration"
2d523c23
EA
4
5config BR2_HAVE_DOT_CONFIG
6 bool
7 default y
8
f5b8cd4a
BRF
9config BR2_VERSION
10 string
56c68bcd 11 option env="BR2_VERSION_FULL"
f5b8cd4a 12
1d4104f0
FP
13config BR2_HOSTARCH
14 string
15 option env="HOSTARCH"
16
54af0551 17config BR2_BASE_DIR
4802db3d 18 string
54af0551 19 option env="BASE_DIR"
4802db3d 20
edf32b02
YM
21# br2-external paths definitions
22source "$BR2_BASE_DIR/.br2-external.in.paths"
23
12825f7a
AV
24# Hidden config symbols for packages to check system gcc version
25config BR2_HOST_GCC_VERSION
26 string
27 option env="HOST_GCC_VERSION"
28
12825f7a
AV
29config BR2_HOST_GCC_AT_LEAST_4_9
30 bool
31 default y if BR2_HOST_GCC_VERSION = "4 9"
12825f7a
AV
32
33config BR2_HOST_GCC_AT_LEAST_5
34 bool
35 default y if BR2_HOST_GCC_VERSION = "5"
36 select BR2_HOST_GCC_AT_LEAST_4_9
37
3d217578
MB
38config BR2_HOST_GCC_AT_LEAST_6
39 bool
40 default y if BR2_HOST_GCC_VERSION = "6"
41 select BR2_HOST_GCC_AT_LEAST_5
42
435b4cce
APC
43config BR2_HOST_GCC_AT_LEAST_7
44 bool
45 default y if BR2_HOST_GCC_VERSION = "7"
46 select BR2_HOST_GCC_AT_LEAST_6
47
e13ab2e0
SB
48config BR2_HOST_GCC_AT_LEAST_8
49 bool
50 default y if BR2_HOST_GCC_VERSION = "8"
51 select BR2_HOST_GCC_AT_LEAST_7
52
1776190f
RN
53config BR2_HOST_GCC_AT_LEAST_9
54 bool
55 default y if BR2_HOST_GCC_VERSION = "9"
56 select BR2_HOST_GCC_AT_LEAST_8
57
3950e69d
YM
58# When adding new entries above, be sure to update
59# the HOSTCC_MAX_VERSION variable in the Makefile.
60
aac3d2b4 61# Hidden boolean selected by packages in need of Java in order to build
4f3fdf15 62# (example: kodi)
0721c713 63config BR2_NEEDS_HOST_JAVA
aac3d2b4
MH
64 bool
65
70d6037e
TP
66# Hidden boolean selected by pre-built packages for x86, when they
67# need to run on x86-64 machines (example: pre-built external
68# toolchains, binary tools like SAM-BA, etc.).
69config BR2_HOSTARCH_NEEDS_IA32_LIBS
70 bool
71
0e4bc502
TP
72# Hidden boolean selected by packages that need to build 32 bits
73# binaries with the host compiler, even on 64 bits build machines (e.g
74# bootloaders).
75config BR2_HOSTARCH_NEEDS_IA32_COMPILER
76 bool
77
de0df997
YM
78# Hidden boolean selected by packages that need the host to have an
79# UTF8 locale.
80config BR2_NEEDS_HOST_UTF8_LOCALE
81 bool
82
e068f337
KB
83# Hidden boolean selected by packages that need the host to have
84# support for building gcc plugins
85config BR2_NEEDS_HOST_GCC_PLUGIN_SUPPORT
86 bool
87
79ee3c1f 88source "arch/Config.in"
7d8a59b4 89
8e5fb3fb
EA
90menu "Build options"
91
15929265
TP
92menu "Commands"
93
2d523c23 94config BR2_WGET
8e5fb3fb 95 string "Wget command"
6871b165 96 default "wget --passive-ftp -nd -t 3"
2d523c23 97
cf71111b
MP
98config BR2_SVN
99 string "Subversion (svn) command"
ad477b08 100 default "svn --non-interactive"
e30cf26c 101
cf71111b
MP
102config BR2_BZR
103 string "Bazaar (bzr) command"
104 default "bzr"
df03cdaf 105
85f54fbe 106config BR2_GIT
cf71111b
MP
107 string "Git command"
108 default "git"
85f54fbe 109
15eb1faf
GZ
110config BR2_CVS
111 string "CVS command"
112 default "cvs"
113
2690e76a
DW
114config BR2_LOCALFILES
115 string "Local files retrieval command"
116 default "cp"
117
c61788f0
TDS
118config BR2_SCP
119 string "Secure copy (scp) command"
120 default "scp"
121
16f660f8
TP
122config BR2_SFTP
123 string "Secure file transfer (sftp) command"
124 default "sftp"
125
f694c076
TDS
126config BR2_HG
127 string "Mercurial (hg) command"
128 default "hg"
129
859b9137
BRF
130config BR2_ZCAT
131 string "zcat command"
a9612bfd 132 default "gzip -d -c"
859b9137 133 help
65f9b937
MK
134 Command to be used to extract a gzip'ed file to stdout. zcat
135 is identical to gunzip -c except that the former may not be
136 available on your system.
a9612bfd
BRF
137 Default is "gzip -d -c"
138 Other possible values include "gunzip -c" or "zcat".
6e2823c1
BRF
139
140config BR2_BZCAT
141 string "bzcat command"
142 default "bzcat"
143 help
144 Command to be used to extract a bzip2'ed file to stdout.
145 bzcat is identical to bunzip2 -c except that the former may
146 not be available on your system.
147 Default is "bzcat"
148 Other possible values include "bunzip2 -c" or "bzip2 -d -c".
859b9137 149
177b4b4a
AN
150config BR2_XZCAT
151 string "xzcat command"
152 default "xzcat"
153 help
154 Command to be used to extract a xz'ed file to stdout.
155 Default is "xzcat"
156
f165032e
BS
157config BR2_LZCAT
158 string "lzcat command"
159 default "lzip -d -c"
160 help
161 Command to be used to extract a lzip'ed file to stdout.
162 Default is "lzip -d -c"
163
ce90aae1
BRF
164config BR2_TAR_OPTIONS
165 string "Tar options"
7df4de6c
BRF
166 default ""
167 help
168 Options to pass to tar when extracting the sources.
d6109172
RM
169 E.g. " -v --exclude='*.svn*'" to exclude all .svn internal
170 files and to be verbose.
ce90aae1 171
15929265
TP
172endmenu
173
4e0170d6
AVEM
174config BR2_DEFCONFIG_FROM_ENV
175 string
176 option env="BR2_DEFCONFIG"
177
178config BR2_DEFCONFIG
179 string "Location to save buildroot config"
180 default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
181 default "$(CONFIG_DIR)/defconfig"
182 help
65f9b937
MK
183 When running 'make savedefconfig', the defconfig file will be
184 saved in this location.
4e0170d6 185
59a63a91
MF
186config BR2_DL_DIR
187 string "Download dir"
be695dcc 188 default "$(TOPDIR)/dl"
59a63a91
MF
189 help
190 Directory to store all the source files that we need to fetch.
6768021c 191 If the Linux shell environment has defined the BR2_DL_DIR
65f9b937
MK
192 environment variable, then this overrides this configuration
193 item.
7e58fdc5
TP
194 The directory is organized with a subdirectory for each
195 package. Each package has its own $(LIBFOO_DL_DIR) variable
196 that can be used to find the correct path.
59a63a91 197
be695dcc 198 The default is $(TOPDIR)/dl
4b0d5a80 199
a2b4f7fb
GZ
200config BR2_HOST_DIR
201 string "Host dir"
202 default "$(BASE_DIR)/host"
203 help
65f9b937
MK
204 Directory to store all the binary files that are built for the
205 host. This includes the cross compilation toolchain when
206 building the internal buildroot toolchain.
a2b4f7fb
GZ
207
208 The default is $(BASE_DIR)/host
209
8008007c
TP
210menu "Mirrors and Download locations"
211
212config BR2_PRIMARY_SITE
213 string "Primary download site"
214 default ""
215 help
65f9b937
MK
216 Primary site to download from. If this option is set then
217 buildroot will try to download package source first from this
218 site and try the default if the file is not found.
4a9d9807
JP
219 Valid URIs are:
220 - URIs recognized by $(WGET)
221 - local URIs of the form file://absolutepath
222 - scp URIs of the form scp://[user@]host:path.
8008007c 223
5a83e084
TDS
224config BR2_PRIMARY_SITE_ONLY
225 bool "Only allow downloads from primary download site"
226 depends on BR2_PRIMARY_SITE != ""
227 help
228 If this option is enabled, downloads will only be attempted
229 from the primary download site. Other locations, like the
230 package's official download location or the backup download
65f9b937
MK
231 site, will not be considered. Therefore, if the package is not
232 present on the primary site, the download fails.
5a83e084 233
65f9b937
MK
234 This is useful for project developers who want to ensure that
235 the project can be built even if the upstream tarball
5a83e084
TDS
236 locations disappear.
237
238if !BR2_PRIMARY_SITE_ONLY
239
8008007c
TP
240config BR2_BACKUP_SITE
241 string "Backup download site"
4a9eb20d 242 default "http://sources.buildroot.net"
8008007c 243 help
65f9b937
MK
244 Backup site to download from. If this option is set then
245 buildroot will fall back to download package sources from here
246 if the normal location fails.
8008007c
TP
247
248config BR2_KERNEL_MIRROR
249 string "Kernel.org mirror"
de76cb7d 250 default "https://cdn.kernel.org/pub"
8008007c 251 help
de76cb7d 252 kernel.org is mirrored on a number of servers around the
65f9b937 253 world. The following allows you to select your preferred
de76cb7d
AB
254 mirror. By default, a CDN is used, which automatically
255 redirects to a mirror geographically close to you.
8008007c 256
65f9b937
MK
257 Have a look on the kernel.org site for a list of mirrors, then
258 enter the URL to the base directory. Examples:
8008007c
TP
259
260 http://www.XX.kernel.org/pub (XX = country code)
261 http://mirror.aarnet.edu.au/pub/ftp.kernel.org
262
263config BR2_GNU_MIRROR
264 string "GNU Software mirror"
3999f0ad 265 default "http://ftpmirror.gnu.org"
8008007c 266 help
3999f0ad 267 GNU has multiple software mirrors scattered around the
65f9b937 268 world. The following allows you to select your preferred
3999f0ad
TP
269 mirror. By default, a generic address is used, which
270 automatically selects an up-to-date and local mirror.
8008007c 271
65f9b937
MK
272 Have a look on the gnu.org site for a list of mirrors, then
273 enter the URL to the base directory. Examples:
8008007c
TP
274
275 http://ftp.gnu.org/pub/gnu
276 http://mirror.aarnet.edu.au/pub/gnu
277
72afb294
FP
278config BR2_LUAROCKS_MIRROR
279 string "LuaRocks mirror"
0b8411af 280 default "http://rocks.moonscript.org"
72afb294
FP
281 help
282 LuaRocks repository.
283
284 See http://luarocks.org
285
9fbb1699
FP
286config BR2_CPAN_MIRROR
287 string "CPAN mirror (Perl packages)"
32567d12 288 default "http://cpan.metacpan.org"
9fbb1699 289 help
65f9b937
MK
290 CPAN (Comprehensive Perl Archive Network) is a repository of
291 Perl packages. It has multiple software mirrors scattered
9fbb1699
FP
292 around the world. This option allows you to select a mirror.
293
294 The list of mirrors is available at:
295 http://search.cpan.org/mirror
296
3318a5a7
YM
297endif
298
8008007c 299endmenu
aa41d377 300
8e5fb3fb 301config BR2_JLEVEL
5016aa02
NL
302 int "Number of jobs to run simultaneously (0 for auto)"
303 default "0"
8e5fb3fb 304 help
65f9b937
MK
305 Number of jobs to run simultaneously. If 0, determine
306 automatically according to number of CPUs on the host system.
93ab6d30 307
17b66aff
TP
308config BR2_CCACHE
309 bool "Enable compiler cache"
310 help
65f9b937
MK
311 This option will enable the use of ccache, a compiler cache.
312 It will cache the result of previous builds to speed up future
313 builds. By default, the cache is stored in
17b66aff
TP
314 $HOME/.buildroot-ccache.
315
f044e037 316 Note that Buildroot does not try to invalidate the cache
65f9b937
MK
317 contents when the compiler changes in an incompatible way.
318 Therefore, if you make a change to the compiler version and/or
319 configuration, you are responsible for purging the ccache
320 cache by removing the $HOME/.buildroot-ccache directory.
f044e037 321
dd79f2df
DM
322if BR2_CCACHE
323
43329076
TDS
324config BR2_CCACHE_DIR
325 string "Compiler cache location"
43329076
TDS
326 default "$(HOME)/.buildroot-ccache"
327 help
328 Where ccache should store cached files.
ad980ccc
TP
329 If the Linux shell environment has defined the BR2_CCACHE_DIR
330 environment variable, then this overrides this configuration
331 item.
43329076 332
dd79f2df
DM
333config BR2_CCACHE_INITIAL_SETUP
334 string "Compiler cache initial setup"
335 help
65f9b937
MK
336 Initial ccache settings to apply, such as --max-files or
337 --max-size.
dd79f2df 338
65f9b937
MK
339 For example, if your project is known to require more space
340 than the default max cache size, then you might want to
341 increase the cache size to a suitable amount using the -M
342 (--max-size) option.
dd79f2df 343
65f9b937
MK
344 The string you specify here is passed verbatim to ccache.
345 Refer to ccache documentation for more details.
dd79f2df 346
65f9b937
MK
347 These initial settings are applied after ccache has been
348 compiled.
dd79f2df 349
1e97b278
AV
350config BR2_CCACHE_USE_BASEDIR
351 bool "Use relative paths"
352 default y
353 help
354 Allow ccache to convert absolute paths within the output
355 directory into relative paths.
356
65f9b937
MK
357 During the build, many -I include directives are given with an
358 absolute path. These absolute paths end up in the hashes that
359 are computed by ccache. Therefore, when you build from a
360 different directory, the hash will be different and the cached
361 object will not be used.
1e97b278
AV
362
363 To improve cache performance, set this option to y. This
364 allows ccache to rewrite absolute paths within the output
65f9b937
MK
365 directory into relative paths. Note that only paths within the
366 output directory will be rewritten; therefore, if you change
367 BR2_HOST_DIR to point outside the output directory and
1e97b278
AV
368 subsequently move it to a different location, this will lead
369 to cache misses.
370
371 This option has as a result that the debug information in the
372 object files also has only relative paths. Therefore, make
373 sure you cd to the build directory before starting gdb. See
65f9b937
MK
374 the section "COMPILING IN DIFFERENT DIRECTORIES" in the ccache
375 manual for more information.
1e97b278 376
dd79f2df
DM
377endif
378
41f6b79f
JV
379config BR2_ENABLE_DEBUG
380 bool "build packages with debugging symbols"
41f6b79f 381 help
a9a34676
TP
382 Build packages with debugging symbols enabled. All libraries
383 and binaries in the 'staging' directory will have debugging
384 symbols, which allows remote debugging even if libraries and
385 binaries are stripped on the target. Whether libraries and
386 binaries are stripped on the target is controlled by the
387 BR2_STRIP_* options below.
41f6b79f
JV
388
389if BR2_ENABLE_DEBUG
390choice
391 prompt "gcc debug level"
392 default BR2_DEBUG_2
393 help
394 Set the debug level for gcc
395
396config BR2_DEBUG_1
397 bool "debug level 1"
398 help
65f9b937
MK
399 Debug level 1 produces minimal information, enough for making
400 backtraces in parts of the program that you don't plan to
401 debug. This includes descriptions of functions and external
402 variables, but no information about local variables and no
403 line numbers.
41f6b79f
JV
404
405config BR2_DEBUG_2
406 bool "debug level 2"
407 help
408 The default gcc debug level is 2
409
410config BR2_DEBUG_3
411 bool "debug level 3"
412 help
65f9b937
MK
413 Level 3 includes extra information, such as all the macro
414 definitions present in the program. Some debuggers support
415 macro expansion when you use -g3.
41f6b79f
JV
416endchoice
417endif
418
b7939fe2
TDS
419config BR2_ENABLE_RUNTIME_DEBUG
420 bool "build packages with runtime debugging info"
421 help
422 Some packages may have runtime assertions, extra traces, and
423 similar runtime elements that can help debugging. However,
424 these elements may negatively influence performance so should
425 normally not be enabled on production systems.
426
427 Enable this option to enable such runtime debugging.
428
429 Note: disabling this option is not a guarantee that all
430 packages effectively removed these runtime debugging elements.
431
bbd251a0 432config BR2_STRIP_strip
0d643fd3 433 bool "strip target binaries"
0d643fd3 434 default y
9db5eb25 435 depends on BR2_BINFMT_ELF
bbd251a0 436 help
a9a34676 437 Binaries and libraries in the target filesystem will be
65f9b937
MK
438 stripped using the normal 'strip' command. This allows to save
439 space, mainly by removing debugging symbols. Debugging symbols
440 on the target are needed for native debugging, but not when
441 remote debugging is used.
85f54fbe 442
2a97045d
TDS
443config BR2_STRIP_EXCLUDE_FILES
444 string "executables that should not be stripped"
2a97045d 445 default ""
a1264445 446 depends on BR2_STRIP_strip
2a97045d 447 help
65f9b937
MK
448 You may specify a space-separated list of binaries and
449 libraries here that should not be stripped on the target.
2a97045d
TDS
450
451config BR2_STRIP_EXCLUDE_DIRS
452 string "directories that should be skipped when stripping"
2a97045d 453 default ""
a1264445 454 depends on BR2_STRIP_strip
2a97045d 455 help
65f9b937
MK
456 You may specify a space-separated list of directories that
457 should be skipped when stripping. Binaries and libraries in
458 these directories will not be touched. The directories should
459 be specified relative to the target directory, without leading
460 slash.
2a97045d 461
41f6b79f
JV
462choice
463 prompt "gcc optimization level"
7eb796ba 464 default BR2_OPTIMIZE_S
923f42a3 465 help
41f6b79f
JV
466 Set the optimization level for gcc
467
468config BR2_OPTIMIZE_0
469 bool "optimization level 0"
470 help
4e09fd8b 471 Do not optimize.
41f6b79f
JV
472
473config BR2_OPTIMIZE_1
474 bool "optimization level 1"
475 help
65f9b937
MK
476 Optimize. Optimizing compilation takes somewhat more time, and
477 a lot more memory for a large function. With -O, the compiler
478 tries to reduce code size and execution time, without
479 performing any optimizations that take a great deal of
480 compilation time. -O turns on the following optimization
02a623dd
PK
481 flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
482 -fcprop-registers -floop-optimize -fif-conversion
483 -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
484 -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
65f9b937
MK
485 -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants. -O
486 also turns on -fomit-frame-pointer on machines where doing so
487 does not interfere with debugging.
41f6b79f
JV
488
489config BR2_OPTIMIZE_2
490 bool "optimization level 2"
491 help
65f9b937
MK
492 Optimize even more. GCC performs nearly all supported
493 optimizations that do not involve a space-speed tradeoff. The
494 compiler does not perform loop unrolling or function inlining
495 when you specify -O2. As compared to -O, this option increases
496 both compilation time and the performance of the generated
497 code. -O2 turns on all optimization flags specified by -O. It
498 also turns on the following optimization flags:
499 -fthread-jumps -fcrossjumping -foptimize-sibling-calls
02a623dd 500 -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
65f9b937
MK
501 -fexpensive-optimizations -fstrength-reduce
502 -frerun-cse-after-loop -frerun-loop-opt -fcaller-saves
503 -fpeephole2 -fschedule-insns -fschedule-insns2
504 -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing
505 -fdelete-null-pointer-checks -freorder-blocks
506 -freorder-functions -falign-functions -falign-jumps
507 -falign-loops -falign-labels -ftree-vrp -ftree-pre. Please
508 note the warning under -fgcse about invoking -O2 on programs
41f6b79f
JV
509 that use computed gotos.
510
511config BR2_OPTIMIZE_3
512 bool "optimization level 3"
513 help
65f9b937
MK
514 Optimize yet more. -O3 turns on all optimizations specified by
515 -O2 and also turns on the -finline-functions, -funswitch-loops
516 and -fgcse-after-reload options.
41f6b79f 517
5ff84592
MK
518config BR2_OPTIMIZE_G
519 bool "optimize for debugging"
520 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
521 help
522 Optimize for debugging. This enables optimizations that do not
65f9b937
MK
523 interfere with debugging. It should be the optimization level
524 of choice for the standard edit-compile-debug cycle, offering
525 a reasonable level of optimization while maintaining fast
526 compilation and a good debugging experience.
41f6b79f
JV
527
528config BR2_OPTIMIZE_S
529 bool "optimize for size"
530 help
65f9b937
MK
531 Optimize for size. -Os enables all -O2 optimizations that do
532 not typically increase code size. It also performs further
533 optimizations designed to reduce code size. -Os disables the
534 following optimization flags: -falign-functions -falign-jumps
535 -falign-loops -falign-labels -freorder-blocks
536 -freorder-blocks-and-partition -fprefetch-loop-arrays
41f6b79f 537 -ftree-vect-loop-version
4e09fd8b 538 This is the default.
02a623dd 539
ed6a7e18 540config BR2_OPTIMIZE_FAST
3e186cee 541 bool "optimize for fast (may break packages!)"
ed6a7e18
JH
542 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
543 help
544 Optimize for fast. Disregard strict standards
545 compliance. -Ofast enables all -O3 optimizations. It also
546 enables optimizations that are not valid for all
3e186cee
FF
547 standard-compliant programs, so be careful, as it may break
548 some packages. It turns on -ffast-math and the
ed6a7e18
JH
549 Fortran-specific -fstack-arrays, unless -fmax-stack-var-size
550 is specified, and -fno-protect-parens.
551
41f6b79f 552endchoice
923f42a3 553
fb514227
AVEM
554config BR2_ENABLE_LTO
555 bool "build packages with link-time optimisation"
556 help
557 Enable the link-time optimisation (LTO) option when building
558 packages. Link-time optimisation re-runs optimisations at
559 link time, which allows the compiler to do interprocedural
560 analysis across compilation units and thus come with better
561 results: smaller size and better performance.
562
563 Note that this analysis is limited to statically linked
564 object files and libraries.
565
566 This option may significantly increase build times,
567 sometimes 5 times longer, with only limited gains.
568
569 At this time, this option only enables LTO in packages that
570 have an explicit configuration option for it. Other packages
571 always enable LTO, but most packages never enable LTO.
572
09a1a10f
PH
573config BR2_GOOGLE_BREAKPAD_ENABLE
574 bool "Enable google-breakpad support"
09a1a10f 575 depends on BR2_INSTALL_LIBSTDCPP
282ffecb 576 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
e9ffb3b8 577 depends on BR2_USE_WCHAR
0bb3983c 578 depends on BR2_TOOLCHAIN_HAS_THREADS
e9ffb3b8 579 depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
09a1a10f 580 depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
fadc4383 581 depends on BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
a1264445 582 select BR2_PACKAGE_GOOGLE_BREAKPAD
09a1a10f 583 help
65f9b937
MK
584 This option will enable the use of google breakpad, a library
585 and tool suite that allows you to distribute an application to
586 users with compiler-provided debugging information removed,
587 record crashes in compact "minidump" files, send them back to
588 your server and produce C and C++ stack traces from these
589 minidumps. Breakpad can also write minidumps on request for
590 programs that have not crashed.
09a1a10f
PH
591
592if BR2_GOOGLE_BREAKPAD_ENABLE
593
594config BR2_GOOGLE_BREAKPAD_INCLUDE_FILES
595 string "List of executables and libraries to extract symbols from"
596 default ""
597 help
598 You may specify a space-separated list of binaries and
599 libraries with full paths relative to $(TARGET_DIR) of which
600 debug symbols will be dumped for further use with google
601 breakpad.
602
603 A directory structure that can be used by minidump-stackwalk
604 will be created at:
605
606 $(STAGING_DIR)/usr/share/google-breakpad-symbols
607
608endif
609
158001f5
TP
610choice
611 bool "libraries"
f1d3e098 612 default BR2_SHARED_LIBS if BR2_BINFMT_SUPPORTS_SHARED
158001f5
TP
613 default BR2_STATIC_LIBS if !BR2_BINFMT_SUPPORTS_SHARED
614 help
615 Select the type of libraries you want to use on the target.
616
65f9b937
MK
617 The default is to build dynamic libraries and use those on the
618 target filesystem, except when the architecture and/or the
619 selected binary format does not support shared libraries.
158001f5 620
665e13c8 621config BR2_STATIC_LIBS
158001f5 622 bool "static only"
90932b40 623 depends on !BR2_TOOLCHAIN_USES_GLIBC
3096f34d 624 help
65f9b937 625 Build and use only static libraries. No shared libraries will
d9312d63 626 be installed on the target. This potentially increases your
65f9b937
MK
627 code size and should only be used if you know what you are
628 doing. Note that some packages may not be available when this
629 option is enabled, due to their need for dynamic library
630 support.
3096f34d 631
90932b40
AVEM
632comment "static only needs a toolchain w/ uclibc or musl"
633 depends on BR2_TOOLCHAIN_USES_GLIBC
634
158001f5
TP
635config BR2_SHARED_LIBS
636 bool "shared only"
637 depends on BR2_BINFMT_SUPPORTS_SHARED
638 help
639 Build and use only shared libraries. This is the recommended
640 solution as it saves space and build time.
641
642config BR2_SHARED_STATIC_LIBS
643 bool "both static and shared"
644 depends on BR2_BINFMT_SUPPORTS_SHARED
645 help
646 Build both shared and static libraries, but link executables
647 dynamically. While building both shared and static libraries
648 take more time and more disk space, having static libraries
649 may be useful to link some of the applications statically.
7d9c0df0 650
158001f5 651endchoice
7d9c0df0 652
ee0246e1
TP
653config BR2_PACKAGE_OVERRIDE_FILE
654 string "location of a package override file"
eda3d0e1 655 default "$(CONFIG_DIR)/local.mk"
ee0246e1
TP
656 help
657 A package override file is a short makefile that contains
65f9b937
MK
658 variable definitions of the form <pkg>_OVERRIDE_SRCDIR, which
659 allows to tell Buildroot to use an existing directory as the
660 source directory for a particular package. See the Buildroot
661 documentation for more details on this feature.
ee0246e1 662
5538e476 663config BR2_GLOBAL_PATCH_DIR
bc4f79d6 664 string "global patch directories"
5538e476 665 help
65f9b937
MK
666 You may specify a space separated list of one or more
667 directories containing global package patches. For a specific
668 version <packageversion> of a specific package <packagename>,
669 patches are applied as follows:
5538e476 670
65f9b937
MK
671 First, the default Buildroot patch set for the package is
672 applied from the package's directory in Buildroot.
5538e476 673
bc4f79d6
RB
674 Then for every directory - <global-patch-dir> - that exists in
675 BR2_GLOBAL_PATCH_DIR, if the directory
65f9b937
MK
676 <global-patch-dir>/<packagename>/<packageversion>/ exists,
677 then all *.patch files in this directory will be applied.
5538e476 678
65f9b937
MK
679 Otherwise, if the directory <global-patch-dir>/<packagename>
680 exists, then all *.patch files in the directory will be
681 applied.
5538e476 682
4ac8f78d
TP
683menu "Advanced"
684
685config BR2_COMPILER_PARANOID_UNSAFE_PATH
686 bool "paranoid check of library/header paths"
61c8854c 687 default y
4ac8f78d
TP
688 help
689 By default, when this option is disabled, when the Buildroot
65f9b937
MK
690 cross-compiler will encounter an unsafe library or header path
691 (such as /usr/include, or /usr/lib), the compiler will display
692 a warning.
4ac8f78d 693
65f9b937
MK
694 By enabling this option, this warning is turned into an error,
695 which will completely abort the build when such unsafe paths
696 are encountered.
4ac8f78d
TP
697
698 Note that this mechanism is available for both the internal
f9d311ed 699 toolchain (through the toolchain wrapper and binutils patches)
d6109172
RM
700 and external toolchain backends (through the toolchain
701 wrapper).
4ac8f78d 702
3f1b965b
BF
703config BR2_FORCE_HOST_BUILD
704 bool "Force the building of host dependencies"
705 help
706 Build all available host dependencies, even if they are
707 already installed on the system.
708
709 This option can be used to ensure that the download cache of
710 source archives for packages remain consistent between
711 different build hosts.
712
713 This option will increase build time.
714
71574a65
GC
715config BR2_REPRODUCIBLE
716 bool "Make the build reproducible (experimental)"
6393b690
YM
717 # SOURCE_DATE_EPOCH support in toolchain-wrapper requires GCC 4.4
718 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
a446ab74
JG
719 help
720 This option will remove all sources of non-reproducibility
721 from the build process. For a given Buildroot configuration,
722 this allows to generate exactly identical binaries from one
723 build to the other, including on different machines.
724
bedb1610
JP
725 The current implementation is restricted to builds with the
726 same output directory. Many (absolute) paths are recorded in
727 intermediary files, and it is very likely that some of these
728 paths leak into the target rootfs. If you build with the
729 same O=... path, however, the result is identical.
730
a446ab74
JG
731 This is labeled as an experimental feature, as not all
732 packages behave properly to ensure reproducibility.
71574a65 733
c4e6d5c8
TP
734config BR2_PER_PACKAGE_DIRECTORIES
735 bool "Use per-package directories (experimental)"
736 help
737 This option will change the build process of Buildroot
738 package to use per-package target and host directories.
739
740 This is useful for two related purposes:
741
742 - Cleanly isolate the build of each package, so that a
743 given package only "sees" the dependencies it has
744 explicitly expressed, and not other packages that may
745 have by chance been built before.
746
747 - Enable top-level parallel build.
748
749 This is labeled as an experimental feature, as not all
750 packages behave properly with per-package directories.
751
8e5fb3fb 752endmenu
2d523c23 753
d3732cf4
MW
754comment "Security Hardening Options"
755
70dd4bd1
TP
756config BR2_PIC_PIE_ARCH_SUPPORTS
757 bool
810ba387 758 default y
d120f844
RN
759 # Microblaze glibc toolchains don't work with PIC/PIE enabled
760 depends on !BR2_microblaze
6b4b63a5
RN
761 # Nios2 toolchains produce non working binaries with -fPIC
762 depends on !BR2_nios2
70dd4bd1
TP
763
764config BR2_PIC_PIE
765 bool "Build code with PIC/PIE"
766 default y
767 depends on BR2_PIC_PIE_ARCH_SUPPORTS
814f6e19 768 depends on BR2_SHARED_LIBS
de3fa438 769 depends on BR2_TOOLCHAIN_SUPPORTS_PIE
814f6e19
YM
770 help
771 Generate Position-Independent Code (PIC) and link
772 Position-Independent Executables (PIE).
773
de3fa438 774comment "PIC/PIE needs a toolchain w/ PIE"
70dd4bd1 775 depends on BR2_PIC_PIE_ARCH_SUPPORTS
de3fa438
FF
776 depends on BR2_SHARED_LIBS
777 depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
778
d3732cf4
MW
779choice
780 bool "Stack Smashing Protection"
50739073 781 default BR2_SSP_ALL if BR2_ENABLE_SSP # legacy
810ba387
FF
782 default BR2_SSP_STRONG if BR2_TOOLCHAIN_HAS_SSP_STRONG
783 default BR2_SSP_REGULAR
d3732cf4
MW
784 depends on BR2_TOOLCHAIN_HAS_SSP
785 help
786 Enable stack smashing protection support using GCC's
787 -fstack-protector option family.
788
789 See
790 http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
791 for details.
792
793 Note that this requires the toolchain to have SSP support.
794 This is always the case for glibc and eglibc toolchain, but is
795 optional in uClibc toolchains.
796
797config BR2_SSP_NONE
798 bool "None"
799 help
800 Disable stack-smashing protection.
801
802config BR2_SSP_REGULAR
803 bool "-fstack-protector"
804 help
805 Emit extra code to check for buffer overflows, such as stack
806 smashing attacks. This is done by adding a guard variable to
807 functions with vulnerable objects. This includes functions
808 that call alloca, and functions with buffers larger than 8
809 bytes. The guards are initialized when a function is entered
810 and then checked when the function exits. If a guard check
811 fails, an error message is printed and the program exits.
812
813config BR2_SSP_STRONG
814 bool "-fstack-protector-strong"
058dc9aa 815 depends on BR2_TOOLCHAIN_HAS_SSP_STRONG
d3732cf4
MW
816 help
817 Like -fstack-protector but includes additional functions to be
818 protected - those that have local array definitions, or have
819 references to local frame addresses.
820
51db8974
YM
821 -fstack-protector-strong officially appeared in gcc 4.9, but
822 some vendors have backported -fstack-protector-strong to older
823 versions of gcc.
d3732cf4
MW
824
825config BR2_SSP_ALL
826 bool "-fstack-protector-all"
827 help
828 Like -fstack-protector except that all functions are
829 protected. This option might have a significant performance
830 impact on the compiled binaries.
831
832endchoice
833
b8ec113e
YM
834config BR2_SSP_OPTION
835 string
836 default "-fstack-protector" if BR2_SSP_REGULAR
837 default "-fstack-protector-strong" if BR2_SSP_STRONG
838 default "-fstack-protector-all" if BR2_SSP_ALL
839
d3732cf4
MW
840comment "Stack Smashing Protection needs a toolchain w/ SSP"
841 depends on !BR2_TOOLCHAIN_HAS_SSP
842
20a4583e
MW
843choice
844 bool "RELRO Protection"
810ba387
FF
845 default BR2_RELRO_FULL if BR2_TOOLCHAIN_SUPPORTS_PIE
846 default BR2_RELRO_PARTIAL
20a4583e
MW
847 depends on BR2_SHARED_LIBS
848 help
d6109172
RM
849 Enable a link-time protection know as RELRO (RELocation Read
850 Only) which helps to protect from certain type of exploitation
851 techniques altering the content of some ELF sections.
20a4583e
MW
852
853config BR2_RELRO_NONE
854 bool "None"
855 help
856 Disables Relocation link-time protections.
857
858config BR2_RELRO_PARTIAL
859 bool "Partial"
860 help
861 This option makes the dynamic section not writeable after
862 initialization (with almost no performance penalty).
863
864config BR2_RELRO_FULL
865 bool "Full"
70dd4bd1 866 depends on BR2_PIC_PIE_ARCH_SUPPORTS
de3fa438 867 depends on BR2_TOOLCHAIN_SUPPORTS_PIE
814f6e19 868 select BR2_PIC_PIE
20a4583e 869 help
d6109172
RM
870 This option includes the partial configuration, but also marks
871 the GOT as read-only at the cost of initialization time during
872 program loading, i.e every time an executable is started.
20a4583e 873
de3fa438 874comment "RELRO Full needs a toolchain w/ PIE"
70dd4bd1 875 depends on BR2_PIC_PIE_ARCH_SUPPORTS
de3fa438
FF
876 depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
877
20a4583e
MW
878endchoice
879
880comment "RELocation Read Only (RELRO) needs shared libraries"
881 depends on !BR2_SHARED_LIBS
882
2e94aeed
RN
883config BR2_FORTIFY_SOURCE_ARCH_SUPPORTS
884 bool
885 default y
886 # Microblaze glibc toolchains don't work with Fortify Source enabled
887 depends on !BR2_microblaze
888
20a4583e
MW
889choice
890 bool "Buffer-overflow Detection (FORTIFY_SOURCE)"
810ba387 891 default BR2_FORTIFY_SOURCE_1
2e94aeed 892 depends on BR2_FORTIFY_SOURCE_ARCH_SUPPORTS
20a4583e
MW
893 depends on BR2_TOOLCHAIN_USES_GLIBC
894 depends on !BR2_OPTIMIZE_0
895 help
896 Enable the _FORTIFY_SOURCE macro which introduces additional
d6109172
RM
897 checks to detect buffer-overflows in the following standard
898 library functions: memcpy, mempcpy, memmove, memset, strcpy,
899 stpcpy, strncpy, strcat, strncat, sprintf, vsprintf, snprintf,
900 vsnprintf, gets.
20a4583e
MW
901
902 NOTE: This feature requires an optimization level of s/1/2/3/g
903
904 Support for this feature has been present since GCC 4.x.
905
906config BR2_FORTIFY_SOURCE_NONE
907 bool "None"
908 help
909 Disables additional checks to detect buffer-overflows.
910
911config BR2_FORTIFY_SOURCE_1
912 bool "Conservative"
a75ee0e8
RN
913 # gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164
914 depends on !BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_GCC_AT_LEAST_6
20a4583e
MW
915 help
916 This option sets _FORTIFY_SOURCE to 1 and only introduces
917 checks that shouldn't change the behavior of conforming
918 programs. Adds checks at compile-time only.
919
920config BR2_FORTIFY_SOURCE_2
921 bool "Aggressive"
a75ee0e8
RN
922 # gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164
923 depends on !BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_GCC_AT_LEAST_6
20a4583e
MW
924 help
925 This option sets _FORTIFY_SOURCES to 2 and some more
926 checking is added, but some conforming programs might fail.
927 Also adds checks at run-time (detected buffer overflow
928 terminates the program)
929
930endchoice
931
932comment "Fortify Source needs a glibc toolchain and optimization"
2e94aeed 933 depends on BR2_FORTIFY_SOURCE_ARCH_SUPPORTS
20a4583e 934 depends on (!BR2_TOOLCHAIN_USES_GLIBC || BR2_OPTIMIZE_0)
1ac2cdd7
YM
935endmenu
936
50100394
BRF
937source "toolchain/Config.in"
938
6c3e3ad4 939source "system/Config.in"
beb43c7d 940
24403857 941source "linux/Config.in"
50100394 942
24403857 943source "package/Config.in"
d06e8022 944
05852415
TP
945source "fs/Config.in"
946
649b5b92
TP
947source "boot/Config.in"
948
24403857 949source "package/Config.in.host"
ebcfa987
AVEM
950
951source "Config.in.legacy"
8eb8aaf9 952
edf32b02
YM
953# br2-external menus definitions
954source "$BR2_BASE_DIR/.br2-external.in.menus"
This page took 1.076505 seconds and 4 git commands to generate.