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