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