legal-info: allow to declare the actual sources for binary packages
[buildroot-gz.git] / Config.in
blob74aeb465ee81c15f19a008152a5ca54d4f83052a
3 mainmenu "Buildroot $BR2_VERSION Configuration"
5 config BR2_HAVE_DOT_CONFIG
6         bool
7         default y
9 config BR2_VERSION
10         string
11         option env="BR2_VERSION_FULL"
13 config BR2_HOSTARCH
14         string
15         option env="HOSTARCH"
17 config BR2_EXTERNAL
18         string
19         option env="BR2_EXTERNAL"
21 # Hidden boolean selected by packages in need of Java in order to build
22 # (example: xbmc)
23 config BR2_NEEDS_HOST_JAVA
24         bool
26 # Hidden boolean selected by packages in need of javac in order to build
27 # (example: classpath)
28 config BR2_NEEDS_HOST_JAVAC
29         bool
31 # Hidden boolean selected by packages in need of jar in order to build
32 # (example: classpath)
33 config BR2_NEEDS_HOST_JAR
34         bool
36 # Hidden boolean selected by pre-built packages for x86, when they
37 # need to run on x86-64 machines (example: pre-built external
38 # toolchains, binary tools like SAM-BA, etc.).
39 config BR2_HOSTARCH_NEEDS_IA32_LIBS
40         bool
42 # Hidden boolean selected by packages that need to build 32 bits
43 # binaries with the host compiler, even on 64 bits build machines (e.g
44 # bootloaders).
45 config BR2_HOSTARCH_NEEDS_IA32_COMPILER
46         bool
48 source "arch/Config.in"
50 menu "Build options"
52 menu "Commands"
54 config BR2_WGET
55         string "Wget command"
56         default "wget --passive-ftp -nd -t 3"
58 config BR2_SVN
59         string "Subversion (svn) command"
60         default "svn"
62 config BR2_BZR
63         string "Bazaar (bzr) command"
64         default "bzr"
66 config BR2_GIT
67         string "Git command"
68         default "git"
70 config BR2_CVS
71         string "CVS command"
72         default "cvs"
74 config BR2_LOCALFILES
75         string "Local files retrieval command"
76         default "cp"
78 config BR2_SCP
79         string "Secure copy (scp) command"
80         default "scp"
82 config BR2_SSH
83         string "Secure shell (ssh) command"
84         default "ssh"
86 config BR2_HG
87         string "Mercurial (hg) command"
88         default "hg"
90 config BR2_ZCAT
91         string "zcat command"
92         default "gzip -d -c"
93         help
94           Command to be used to extract a gzip'ed file to stdout.
95           zcat is identical to gunzip -c except that the former may
96           not be available on your system.
97           Default is "gzip -d -c"
98           Other possible values include "gunzip -c" or "zcat".
100 config BR2_BZCAT
101         string "bzcat command"
102         default "bzcat"
103         help
104           Command to be used to extract a bzip2'ed file to stdout.
105           bzcat is identical to bunzip2 -c except that the former may
106           not be available on your system.
107           Default is "bzcat"
108           Other possible values include "bunzip2 -c" or "bzip2 -d -c".
110 config BR2_XZCAT
111         string "xzcat command"
112         default "xzcat"
113         help
114           Command to be used to extract a xz'ed file to stdout.
115           Default is "xzcat"
117 config BR2_TAR_OPTIONS
118         string "Tar options"
119         default ""
120         help
121           Options to pass to tar when extracting the sources.
122           E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
123           and to be verbose.
125 endmenu
127 config BR2_DEFCONFIG_FROM_ENV
128         string
129         option env="BR2_DEFCONFIG"
131 config BR2_DEFCONFIG
132         string "Location to save buildroot config"
133         default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
134         default "$(CONFIG_DIR)/defconfig"
135         help
136           When running 'make savedefconfig', the defconfig file will be saved
137           in this location.
139 config BR2_DL_DIR
140         string "Download dir"
141         default "$(TOPDIR)/dl"
142         help
143           Directory to store all the source files that we need to fetch.
144           If the Linux shell environment has defined the BR2_DL_DIR
145           environment variable, then this overrides this configuration item.
147           The default is $(TOPDIR)/dl
149 config BR2_HOST_DIR
150         string "Host dir"
151         default "$(BASE_DIR)/host"
152         help
153           Directory to store all the binary files that are built for the host.
154           This includes the cross compilation toolchain when building the
155           internal buildroot toolchain.
157           The default is $(BASE_DIR)/host
159 menu "Mirrors and Download locations"
161 config BR2_PRIMARY_SITE
162         string "Primary download site"
163         default ""
164         help
165           Primary site to download from. If this option is set then buildroot
166           will try to download package source first from this site and try the
167           default if the file is not found.
168           Valid URIs are URIs recognized by $(WGET) and scp URIs of the form
169           scp://[user@]host:path.
171 config BR2_PRIMARY_SITE_ONLY
172         bool "Only allow downloads from primary download site"
173         depends on BR2_PRIMARY_SITE != ""
174         help
175           If this option is enabled, downloads will only be attempted
176           from the primary download site. Other locations, like the
177           package's official download location or the backup download
178           site, will not be considered. Therefore, if the package is
179           not present on the primary site, the download fails.
181           This is useful for project developers who want to ensure
182           that the project can be built even if the upstream tarball
183           locations disappear.
185 if !BR2_PRIMARY_SITE_ONLY
187 config BR2_BACKUP_SITE
188         string "Backup download site"
189         default "http://sources.buildroot.net"
190         help
191           Backup site to download from. If this option is set then buildroot
192           will fall back to download package sources from here if the
193           normal location fails.
195 config BR2_KERNEL_MIRROR
196         string "Kernel.org mirror"
197         default "https://www.kernel.org/pub"
198         help
199           kernel.org is mirrored on a number of servers around the world.
200           The following allows you to select your preferred mirror.
202           Have a look on the kernel.org site for a list of mirrors, then enter
203           the URL to the base directory.  Examples:
205              http://www.XX.kernel.org/pub (XX = country code)
206              http://mirror.aarnet.edu.au/pub/ftp.kernel.org
208 config BR2_GNU_MIRROR
209         string "GNU Software mirror"
210         default "http://ftp.gnu.org/pub/gnu"
211         help
212           GNU has multiple software mirrors scattered around the world.
213           The following allows you to select your preferred mirror.
215           Have a look on the gnu.org site for a list of mirrors, then enter
216           the URL to the base directory.  Examples:
218              http://ftp.gnu.org/pub/gnu
219              http://mirror.aarnet.edu.au/pub/gnu
221 config BR2_LUAROCKS_MIRROR
222         string "LuaRocks mirror"
223         default "http://rocks.moonscript.org"
224         help
225           LuaRocks repository.
227           See http://luarocks.org
229 config BR2_CPAN_MIRROR
230         string "CPAN mirror (Perl packages)"
231         default "http://cpan.metacpan.org"
232         help
233           CPAN (Comprehensive Perl Archive Network) is a repository
234           of Perl packages. It has multiple software mirrors scattered
235           around the world. This option allows you to select a mirror.
237           The list of mirrors is available at:
238           http://search.cpan.org/mirror
240 endif
242 endmenu
244 config BR2_JLEVEL
245         int "Number of jobs to run simultaneously (0 for auto)"
246         default "0"
247         help
248           Number of jobs to run simultaneously.  If 0, determine
249           automatically according to number of CPUs on the host
250           system.
252 config BR2_CCACHE
253         bool "Enable compiler cache"
254         help
255           This option will enable the use of ccache, a compiler
256           cache. It will cache the result of previous builds to speed
257           up future builds. By default, the cache is stored in
258           $HOME/.buildroot-ccache.
260           Note that Buildroot does not try to invalidate the cache
261           contents when the compiler changes in an incompatible
262           way. Therefore, if you make a change to the compiler version
263           and/or configuration, you are responsible for purging the
264           ccache cache by removing the $HOME/.buildroot-ccache
265           directory.
267 if BR2_CCACHE
269 config BR2_CCACHE_DIR
270         string "Compiler cache location"
271         default "$(HOME)/.buildroot-ccache"
272         help
273           Where ccache should store cached files.
275 config BR2_CCACHE_INITIAL_SETUP
276         string "Compiler cache initial setup"
277         help
278           Initial ccache settings to apply, such as --max-files or --max-size.
280           For example, if your project is known to require more space than the
281           default max cache size, then you might want to increase the cache size
282           to a suitable amount using the -M (--max-size) option.
284           The string you specify here is passed verbatim to ccache.  Refer to
285           ccache documentation for more details.
287           These initial settings are applied after ccache has been compiled.
289 endif
291 config BR2_DEPRECATED
292         bool "Show options and packages that are deprecated or obsolete"
293         help
294           This option shows outdated/obsolete versions of packages and
295           options that are otherwise hidden.
297 if BR2_DEPRECATED
299 config BR2_DEPRECATED_SINCE_2015_02
300         bool
301         default y
303 config BR2_DEPRECATED_SINCE_2015_05
304         bool
305         default y
307 config BR2_DEPRECATED_SINCE_2015_08
308         bool
309         default y
311 endif
313 config BR2_ENABLE_DEBUG
314         bool "build packages with debugging symbols"
315         help
316           Build packages with debugging symbols enabled. All libraries
317           and binaries in the 'staging' directory will have debugging
318           symbols, which allows remote debugging even if libraries and
319           binaries are stripped on the target. Whether libraries and
320           binaries are stripped on the target is controlled by the
321           BR2_STRIP_* options below.
323 if BR2_ENABLE_DEBUG
324 choice
325         prompt "gcc debug level"
326         default BR2_DEBUG_2
327         help
328           Set the debug level for gcc
330 config BR2_DEBUG_1
331         bool "debug level 1"
332         help
333           Debug level 1 produces minimal information, enough
334           for making backtraces in parts of the program that
335           you don't plan to debug. This includes descriptions
336           of functions and external variables, but no information
337           about local variables and no line numbers.
339 config BR2_DEBUG_2
340         bool "debug level 2"
341         help
342           The default gcc debug level is 2
344 config BR2_DEBUG_3
345         bool "debug level 3"
346         help
347           Level 3 includes extra information, such as all the
348           macro definitions present in the program. Some debuggers
349           support macro expansion when you use -g3.
350 endchoice
351 endif
353 choice
354         prompt "strip command for binaries on target"
355         default BR2_STRIP_strip
357 config BR2_STRIP_strip
358         bool "strip"
359         depends on !BR2_PACKAGE_HOST_ELF2FLT
360         help
361           Binaries and libraries in the target filesystem will be
362           stripped using the normal 'strip' command. This allows to
363           save space, mainly by removing debugging symbols. Debugging
364           symbols on the target are needed for native debugging, but
365           not when remote debugging is used.
367 config BR2_STRIP_none
368         bool "none"
369         help
370           Do not strip binaries and libraries in the target
371           filesystem.
372 endchoice
374 config BR2_STRIP_EXCLUDE_FILES
375         string "executables that should not be stripped"
376         depends on !BR2_STRIP_none
377         default ""
378         help
379           You may specify a space-separated list of binaries and libraries
380           here that should not be stripped on the target.
382 config BR2_STRIP_EXCLUDE_DIRS
383         string "directories that should be skipped when stripping"
384         depends on !BR2_STRIP_none
385         default ""
386         help
387           You may specify a space-separated list of directories that should
388           be skipped when stripping. Binaries and libraries in these
389           directories will not be touched.
390           The directories should be specified relative to the target directory,
391           without leading slash.
393 choice
394         prompt "gcc optimization level"
395         default BR2_OPTIMIZE_S
396         help
397           Set the optimization level for gcc
399 config BR2_OPTIMIZE_0
400         bool "optimization level 0"
401         help
402           Do not optimize. This is the default.
404 config BR2_OPTIMIZE_1
405         bool "optimization level 1"
406         help
407           Optimize. Optimizing compilation takes somewhat more time,
408           and a lot more memory for a large function. With -O, the
409           compiler tries to reduce code size and execution time,
410           without performing any optimizations that take a great deal
411           of compilation time. -O turns on the following optimization
412           flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
413           -fcprop-registers -floop-optimize -fif-conversion
414           -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
415           -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
416           -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
417           -O also turns on -fomit-frame-pointer on machines where doing
418           so does not interfere with debugging.
420 config BR2_OPTIMIZE_2
421         bool "optimization level 2"
422         help
423           Optimize even more. GCC performs nearly all supported optimizations
424           that do not involve a space-speed tradeoff. The compiler does not
425           perform loop unrolling or function inlining when you specify -O2.
426           As compared to -O, this option increases both compilation time and
427           the performance of the generated code. -O2 turns on all optimization
428           flags specified by -O. It also turns on the following optimization
429           flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
430           -fcse-follow-jumps -fcse-skip-blocks -fgcse  -fgcse-lm
431           -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
432           -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
433           -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
434           -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
435           -freorder-functions -falign-functions -falign-jumps -falign-loops
436           -falign-labels -ftree-vrp -ftree-pre
437           Please note the warning under -fgcse about invoking -O2 on programs
438           that use computed gotos.
440 config BR2_OPTIMIZE_3
441         bool "optimization level 3"
442         help
443           Optimize yet more. -O3 turns on all optimizations specified by -O2
444           and also turns on the -finline-functions, -funswitch-loops and
445           -fgcse-after-reload options.
447 config BR2_OPTIMIZE_S
448         bool "optimize for size"
449         help
450           Optimize for size. -Os enables all -O2 optimizations that do not
451           typically increase code size. It also performs further optimizations
452           designed to reduce code size. -Os disables the following optimization
453           flags: -falign-functions -falign-jumps -falign-loops -falign-labels
454           -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
455           -ftree-vect-loop-version
457 endchoice
459 config BR2_GOOGLE_BREAKPAD_ENABLE
460         bool "Enable google-breakpad support"
461         select BR2_PACKAGE_GOOGLE_BREAKPAD
462         depends on BR2_INSTALL_LIBSTDCPP
463         depends on BR2_TOOLCHAIN_USES_GLIBC
464         depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
465         help
466           This option will enable the use of google breakpad, a
467           library and tool suite that allows you to distribute an
468           application to users with compiler-provided debugging
469           information removed, record crashes in compact "minidump"
470           files, send them back to your server and produce C and C++
471           stack traces from these minidumps.  Breakpad can also write
472           minidumps on request for programs that have not crashed.
474 if BR2_GOOGLE_BREAKPAD_ENABLE
476 config BR2_GOOGLE_BREAKPAD_INCLUDE_FILES
477         string "List of executables and libraries to extract symbols from"
478         default ""
479         help
480           You may specify a space-separated list of binaries and
481           libraries with full paths relative to $(TARGET_DIR) of which
482           debug symbols will be dumped for further use with google
483           breakpad.
485           A directory structure that can be used by minidump-stackwalk
486           will be created at:
488           $(STAGING_DIR)/usr/share/google-breakpad-symbols
490 endif
492 config BR2_ENABLE_SSP
493         bool "build code with Stack Smashing Protection"
494         depends on BR2_TOOLCHAIN_HAS_SSP
495         help
496           Enable stack smashing protection support using GCCs
497           -fstack-protector-all option.
499           See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
500           for details.
502           Note that this requires the toolchain to have SSP
503           support. This is always the case for glibc and eglibc
504           toolchain, but is optional in uClibc toolchains.
506 comment "enabling Stack Smashing Protection requires support in the toolchain"
507         depends on !BR2_TOOLCHAIN_HAS_SSP
509 choice
510         bool "libraries"
511         default BR2_SHARED_LIBS if BR2_BINFMT_SUPPORTS_SHARED
512         default BR2_STATIC_LIBS if !BR2_BINFMT_SUPPORTS_SHARED
513         help
514           Select the type of libraries you want to use on the target.
516           The default is to build dynamic libraries and use those on
517           the target filesystem, except when the architecture and/or
518           the selected binary format does not support shared
519           libraries.
521 config BR2_STATIC_LIBS
522         bool "static only"
523         help
524           Build and use only static libraries. No shared libraries
525           will be instaled on the target. This potentially increases
526           your code size and should only be used if you know what you
527           are doing. Note that some packages may not be available when
528           this option is enabled, due to their need for dynamic
529           library support.
531 config BR2_SHARED_LIBS
532         bool "shared only"
533         depends on BR2_BINFMT_SUPPORTS_SHARED
534         help
535           Build and use only shared libraries. This is the recommended
536           solution as it saves space and build time.
538 config BR2_SHARED_STATIC_LIBS
539         bool "both static and shared"
540         depends on BR2_BINFMT_SUPPORTS_SHARED
541         help
542           Build both shared and static libraries, but link executables
543           dynamically. While building both shared and static libraries
544           take more time and more disk space, having static libraries
545           may be useful to link some of the applications statically.
547 endchoice
550 config BR2_PACKAGE_OVERRIDE_FILE
551         string "location of a package override file"
552         default "$(CONFIG_DIR)/local.mk"
553         help
554           A package override file is a short makefile that contains
555           variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
556           which allows to tell Buildroot to use an existing directory
557           as the source directory for a particular package. See the
558           Buildroot documentation for more details on this feature.
560 config BR2_GLOBAL_PATCH_DIR
561         string "global patch directories"
562         help
563           You may specify a space separated list of one or more directories
564           containing global package patches. For a specific version
565           <packageversion> of a specific package <packagename>, patches are
566           applied as follows:
568           First, the default Buildroot patch set for the package is applied
569           from the package's directory in Buildroot.
571           Then for every directory - <global-patch-dir> - that exists in
572           BR2_GLOBAL_PATCH_DIR, if the directory
573           <global-patch-dir>/<packagename>/<packageversion>/ exists, then all
574           *.patch files in this directory will be applied.
576           Otherwise, if the directory <global-patch-dir>/<packagename> exists,
577           then all *.patch files in the directory will be applied.
579 menu "Advanced"
581 config BR2_COMPILER_PARANOID_UNSAFE_PATH
582         bool "paranoid check of library/header paths"
583         help
584           By default, when this option is disabled, when the Buildroot
585           cross-compiler will encounter an unsafe library or header
586           path (such as /usr/include, or /usr/lib), the compiler will
587           display a warning.
589           By enabling this option, this warning is turned into an
590           error, which will completely abort the build when such
591           unsafe paths are encountered.
593           Note that this mechanism is available for both the internal
594           toolchain (through gcc and binutils patches) and external
595           toolchain backends (through the external toolchain wrapper).
597 endmenu
599 endmenu
601 source "toolchain/Config.in"
603 source "system/Config.in"
605 source "linux/Config.in"
607 source "package/Config.in"
609 source "fs/Config.in"
611 source "boot/Config.in"
613 source "package/Config.in.host"
615 source "Config.in.legacy"
617 menu "User-provided options"
618         depends on BR2_EXTERNAL != "support/dummy-external"
620 source "$BR2_EXTERNAL/Config.in"
622 endmenu