blob: 8d37c93806d6589265f2fc59e4e5ed71c94105dc [file] [log] [blame]
Eric Andersen2d523c22004-10-09 01:06:03 +00001#
2
Peter Korsgaard6a53b722011-02-02 14:53:23 +01003mainmenu "Buildroot $BR2_VERSION Configuration"
Eric Andersen2d523c22004-10-09 01:06:03 +00004
5config BR2_HAVE_DOT_CONFIG
6 bool
7 default y
8
Bernhard Reutner-Fischerf5b8cd42007-09-25 11:37:31 +00009config BR2_VERSION
10 string
Yann E. MORIN56c68bc2010-10-31 17:35:14 +010011 option env="BR2_VERSION_FULL"
Bernhard Reutner-Fischerf5b8cd42007-09-25 11:37:31 +000012
Francois Perrad1d4104f2012-07-18 15:59:09 +020013config BR2_HOSTARCH
14 string
15 option env="HOSTARCH"
16
Thomas Petazzonia4239f72013-12-05 20:11:10 +010017config BR2_EXTERNAL
18 string
19 option env="BR2_EXTERNAL"
20
Yann E. MORIN4802db32016-07-17 12:34:26 +020021config BR2_BUILD_DIR
22 string
23 option env="BUILD_DIR"
24
Arnout Vandecappelle12825f72015-12-31 01:34:13 +010025# Hidden config symbols for packages to check system gcc version
26config BR2_HOST_GCC_VERSION
27 string
28 option env="HOST_GCC_VERSION"
29
Bernd Kuhls8fce6d72016-03-19 21:25:35 +010030config BR2_HOST_GCC_AT_LEAST_4_6
31 bool
32 default y if BR2_HOST_GCC_VERSION = "4 6"
33
Arnout Vandecappelle12825f72015-12-31 01:34:13 +010034config BR2_HOST_GCC_AT_LEAST_4_7
35 bool
36 default y if BR2_HOST_GCC_VERSION = "4 7"
Bernd Kuhls8fce6d72016-03-19 21:25:35 +010037 select BR2_HOST_GCC_AT_LEAST_4_6
Arnout Vandecappelle12825f72015-12-31 01:34:13 +010038
39config BR2_HOST_GCC_AT_LEAST_4_8
40 bool
41 default y if BR2_HOST_GCC_VERSION = "4 8"
42 select BR2_HOST_GCC_AT_LEAST_4_7
43
44config BR2_HOST_GCC_AT_LEAST_4_9
45 bool
46 default y if BR2_HOST_GCC_VERSION = "4 9"
47 select BR2_HOST_GCC_AT_LEAST_4_8
48
49config BR2_HOST_GCC_AT_LEAST_5
50 bool
51 default y if BR2_HOST_GCC_VERSION = "5"
52 select BR2_HOST_GCC_AT_LEAST_4_9
53
Martin Bark3d217572016-06-06 11:18:14 +010054config BR2_HOST_GCC_AT_LEAST_6
55 bool
56 default y if BR2_HOST_GCC_VERSION = "6"
57 select BR2_HOST_GCC_AT_LEAST_5
58
Maxime Hadjinlianaac3d2b2014-02-18 00:37:12 +010059# Hidden boolean selected by packages in need of Java in order to build
60# (example: xbmc)
Maxime Hadjinlian0721c712014-02-19 16:33:50 +010061config BR2_NEEDS_HOST_JAVA
Maxime Hadjinlianaac3d2b2014-02-18 00:37:12 +010062 bool
63
Maxime Hadjinlian8f9da282014-05-04 00:45:44 +020064# Hidden boolean selected by packages in need of javac in order to build
65# (example: classpath)
66config BR2_NEEDS_HOST_JAVAC
67 bool
68
69# Hidden boolean selected by packages in need of jar in order to build
70# (example: classpath)
71config BR2_NEEDS_HOST_JAR
72 bool
73
Thomas Petazzoni70d60372012-12-29 06:14:49 +000074# Hidden boolean selected by pre-built packages for x86, when they
75# need to run on x86-64 machines (example: pre-built external
76# toolchains, binary tools like SAM-BA, etc.).
77config BR2_HOSTARCH_NEEDS_IA32_LIBS
78 bool
79
Thomas Petazzoni0e4bc502013-11-11 17:47:25 +010080# Hidden boolean selected by packages that need to build 32 bits
81# binaries with the host compiler, even on 64 bits build machines (e.g
82# bootloaders).
83config BR2_HOSTARCH_NEEDS_IA32_COMPILER
84 bool
85
Thomas Petazzoni79ee3c12012-11-03 08:27:59 +000086source "arch/Config.in"
Bernhard Reutner-Fischer7d8a59b2007-07-08 16:28:54 +000087
Eric Andersen8e5fb3f2004-12-11 13:01:10 +000088menu "Build options"
89
Thomas Petazzoni15929262010-04-10 22:55:01 +020090menu "Commands"
91
Eric Andersen2d523c22004-10-09 01:06:03 +000092config BR2_WGET
Eric Andersen8e5fb3f2004-12-11 13:01:10 +000093 string "Wget command"
Peter Korsgaard6871b162010-11-04 19:16:43 +010094 default "wget --passive-ftp -nd -t 3"
Eric Andersen2d523c22004-10-09 01:06:03 +000095
Maxime Petazzonicf711112010-09-02 12:09:45 +020096config BR2_SVN
97 string "Subversion (svn) command"
98 default "svn"
Eric Andersene30cf262005-01-23 11:20:30 +000099
Maxime Petazzonicf711112010-09-02 12:09:45 +0200100config BR2_BZR
101 string "Bazaar (bzr) command"
102 default "bzr"
Sven Neumanndf03cda2009-08-07 11:57:54 +0200103
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000104config BR2_GIT
Maxime Petazzonicf711112010-09-02 12:09:45 +0200105 string "Git command"
106 default "git"
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000107
Gustavo Zacarias15eb1fa2013-09-11 09:12:04 -0300108config BR2_CVS
109 string "CVS command"
110 default "cvs"
111
David Wagner2690e762011-09-29 21:57:46 +0200112config BR2_LOCALFILES
113 string "Local files retrieval command"
114 default "cp"
115
Thomas De Schampheleirec61788f2011-10-19 09:25:40 +0200116config BR2_SCP
117 string "Secure copy (scp) command"
118 default "scp"
119
120config BR2_SSH
121 string "Secure shell (ssh) command"
122 default "ssh"
123
Thomas De Schampheleiref694c072011-10-19 09:25:47 +0200124config BR2_HG
125 string "Mercurial (hg) command"
126 default "hg"
127
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +0000128config BR2_ZCAT
129 string "zcat command"
Bernhard Reutner-Fischera9612bf2007-03-09 08:26:10 +0000130 default "gzip -d -c"
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +0000131 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700132 Command to be used to extract a gzip'ed file to stdout. zcat
133 is identical to gunzip -c except that the former may not be
134 available on your system.
Bernhard Reutner-Fischera9612bf2007-03-09 08:26:10 +0000135 Default is "gzip -d -c"
136 Other possible values include "gunzip -c" or "zcat".
Bernhard Reutner-Fischer6e2823c2006-11-17 15:43:51 +0000137
138config BR2_BZCAT
139 string "bzcat command"
140 default "bzcat"
141 help
142 Command to be used to extract a bzip2'ed file to stdout.
143 bzcat is identical to bunzip2 -c except that the former may
144 not be available on your system.
145 Default is "bzcat"
146 Other possible values include "bunzip2 -c" or "bzip2 -d -c".
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +0000147
Allan W. Nielsen177b4b42011-05-10 08:17:05 +0200148config BR2_XZCAT
149 string "xzcat command"
150 default "xzcat"
151 help
152 Command to be used to extract a xz'ed file to stdout.
153 Default is "xzcat"
154
Bernhard Reutner-Fischerce90aae2005-12-10 14:59:02 +0000155config BR2_TAR_OPTIONS
156 string "Tar options"
Bernhard Reutner-Fischer7df4de62005-12-10 15:36:43 +0000157 default ""
158 help
159 Options to pass to tar when extracting the sources.
160 E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
161 and to be verbose.
Bernhard Reutner-Fischerce90aae2005-12-10 14:59:02 +0000162
Thomas Petazzoni15929262010-04-10 22:55:01 +0200163endmenu
164
Arnout Vandecappelle (Essensium/Mind)4e0170d2013-02-06 21:50:57 +0000165config BR2_DEFCONFIG_FROM_ENV
166 string
167 option env="BR2_DEFCONFIG"
168
169config BR2_DEFCONFIG
170 string "Location to save buildroot config"
171 default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
172 default "$(CONFIG_DIR)/defconfig"
173 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700174 When running 'make savedefconfig', the defconfig file will be
175 saved in this location.
Arnout Vandecappelle (Essensium/Mind)4e0170d2013-02-06 21:50:57 +0000176
Mike Frysinger59a63a92005-10-01 00:35:24 +0000177config BR2_DL_DIR
178 string "Download dir"
H Hartley Sweetenbe695dc2009-09-23 08:46:52 +0200179 default "$(TOPDIR)/dl"
Mike Frysinger59a63a92005-10-01 00:35:24 +0000180 help
181 Directory to store all the source files that we need to fetch.
Arnout Vandecappelle67680212014-02-04 16:18:51 +0100182 If the Linux shell environment has defined the BR2_DL_DIR
Martin Kelly65f9b932016-05-31 09:57:22 -0700183 environment variable, then this overrides this configuration
184 item.
Mike Frysinger59a63a92005-10-01 00:35:24 +0000185
H Hartley Sweetenbe695dc2009-09-23 08:46:52 +0200186 The default is $(TOPDIR)/dl
Bernhard Reutner-Fischer4b0d5a82007-09-26 21:12:38 +0000187
Gustavo Zacariasa2b4f7f2011-02-02 10:05:56 -0300188config BR2_HOST_DIR
189 string "Host dir"
190 default "$(BASE_DIR)/host"
191 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700192 Directory to store all the binary files that are built for the
193 host. This includes the cross compilation toolchain when
194 building the internal buildroot toolchain.
Gustavo Zacariasa2b4f7f2011-02-02 10:05:56 -0300195
196 The default is $(BASE_DIR)/host
197
Thomas Petazzoni80080072010-12-05 21:52:37 +0100198menu "Mirrors and Download locations"
199
200config BR2_PRIMARY_SITE
201 string "Primary download site"
202 default ""
203 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700204 Primary site to download from. If this option is set then
205 buildroot will try to download package source first from this
206 site and try the default if the file is not found.
Jérôme Pouiller4a9d9802015-11-18 10:03:25 +0100207 Valid URIs are:
208 - URIs recognized by $(WGET)
209 - local URIs of the form file://absolutepath
210 - scp URIs of the form scp://[user@]host:path.
Thomas Petazzoni80080072010-12-05 21:52:37 +0100211
Thomas De Schampheleire5a83e082012-06-22 07:37:03 +0200212config BR2_PRIMARY_SITE_ONLY
213 bool "Only allow downloads from primary download site"
214 depends on BR2_PRIMARY_SITE != ""
215 help
216 If this option is enabled, downloads will only be attempted
217 from the primary download site. Other locations, like the
218 package's official download location or the backup download
Martin Kelly65f9b932016-05-31 09:57:22 -0700219 site, will not be considered. Therefore, if the package is not
220 present on the primary site, the download fails.
Thomas De Schampheleire5a83e082012-06-22 07:37:03 +0200221
Martin Kelly65f9b932016-05-31 09:57:22 -0700222 This is useful for project developers who want to ensure that
223 the project can be built even if the upstream tarball
Thomas De Schampheleire5a83e082012-06-22 07:37:03 +0200224 locations disappear.
225
226if !BR2_PRIMARY_SITE_ONLY
227
Thomas Petazzoni80080072010-12-05 21:52:37 +0100228config BR2_BACKUP_SITE
229 string "Backup download site"
Peter Seiderer4a9eb202014-02-21 23:33:36 +0100230 default "http://sources.buildroot.net"
Thomas Petazzoni80080072010-12-05 21:52:37 +0100231 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700232 Backup site to download from. If this option is set then
233 buildroot will fall back to download package sources from here
234 if the normal location fails.
Thomas Petazzoni80080072010-12-05 21:52:37 +0100235
Thomas Petazzoni80080072010-12-05 21:52:37 +0100236config BR2_KERNEL_MIRROR
237 string "Kernel.org mirror"
Alexey Brodkinde76cb72016-05-23 18:36:53 +0300238 default "https://cdn.kernel.org/pub"
Thomas Petazzoni80080072010-12-05 21:52:37 +0100239 help
Alexey Brodkinde76cb72016-05-23 18:36:53 +0300240 kernel.org is mirrored on a number of servers around the
Martin Kelly65f9b932016-05-31 09:57:22 -0700241 world. The following allows you to select your preferred
Alexey Brodkinde76cb72016-05-23 18:36:53 +0300242 mirror. By default, a CDN is used, which automatically
243 redirects to a mirror geographically close to you.
Thomas Petazzoni80080072010-12-05 21:52:37 +0100244
Martin Kelly65f9b932016-05-31 09:57:22 -0700245 Have a look on the kernel.org site for a list of mirrors, then
246 enter the URL to the base directory. Examples:
Thomas Petazzoni80080072010-12-05 21:52:37 +0100247
248 http://www.XX.kernel.org/pub (XX = country code)
249 http://mirror.aarnet.edu.au/pub/ftp.kernel.org
250
251config BR2_GNU_MIRROR
252 string "GNU Software mirror"
Thomas Petazzoni3999f0a2016-05-24 20:48:26 +0200253 default "http://ftpmirror.gnu.org"
Thomas Petazzoni80080072010-12-05 21:52:37 +0100254 help
Thomas Petazzoni3999f0a2016-05-24 20:48:26 +0200255 GNU has multiple software mirrors scattered around the
Martin Kelly65f9b932016-05-31 09:57:22 -0700256 world. The following allows you to select your preferred
Thomas Petazzoni3999f0a2016-05-24 20:48:26 +0200257 mirror. By default, a generic address is used, which
258 automatically selects an up-to-date and local mirror.
Thomas Petazzoni80080072010-12-05 21:52:37 +0100259
Martin Kelly65f9b932016-05-31 09:57:22 -0700260 Have a look on the gnu.org site for a list of mirrors, then
261 enter the URL to the base directory. Examples:
Thomas Petazzoni80080072010-12-05 21:52:37 +0100262
263 http://ftp.gnu.org/pub/gnu
264 http://mirror.aarnet.edu.au/pub/gnu
265
Francois Perrad72afb292014-01-11 16:42:07 +0100266config BR2_LUAROCKS_MIRROR
267 string "LuaRocks mirror"
Francois Perrad0b8411a2014-07-25 20:21:24 +0200268 default "http://rocks.moonscript.org"
Francois Perrad72afb292014-01-11 16:42:07 +0100269 help
270 LuaRocks repository.
271
272 See http://luarocks.org
273
Francois Perrad9fbb1692014-02-23 15:17:16 +0100274config BR2_CPAN_MIRROR
275 string "CPAN mirror (Perl packages)"
Yann E. MORIN32567d12014-07-19 12:09:19 +0200276 default "http://cpan.metacpan.org"
Francois Perrad9fbb1692014-02-23 15:17:16 +0100277 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700278 CPAN (Comprehensive Perl Archive Network) is a repository of
279 Perl packages. It has multiple software mirrors scattered
Francois Perrad9fbb1692014-02-23 15:17:16 +0100280 around the world. This option allows you to select a mirror.
281
282 The list of mirrors is available at:
283 http://search.cpan.org/mirror
284
Yann E. MORIN3318a5a2015-07-14 09:42:40 +0200285endif
286
Thomas Petazzoni80080072010-12-05 21:52:37 +0100287endmenu
Thomas Petazzoniaa41d372010-04-10 22:55:38 +0200288
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000289config BR2_JLEVEL
Nathan Lynch5016aa02012-06-16 09:37:17 +0000290 int "Number of jobs to run simultaneously (0 for auto)"
291 default "0"
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000292 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700293 Number of jobs to run simultaneously. If 0, determine
294 automatically according to number of CPUs on the host system.
Bernhard Reutner-Fischer93ab6d32007-01-28 12:03:58 +0000295
Thomas Petazzoni17b66af2010-12-07 21:09:56 +0100296config BR2_CCACHE
297 bool "Enable compiler cache"
298 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700299 This option will enable the use of ccache, a compiler cache.
300 It will cache the result of previous builds to speed up future
301 builds. By default, the cache is stored in
Thomas Petazzoni17b66af2010-12-07 21:09:56 +0100302 $HOME/.buildroot-ccache.
303
Thomas Petazzonif044e032012-03-07 20:26:50 +0100304 Note that Buildroot does not try to invalidate the cache
Martin Kelly65f9b932016-05-31 09:57:22 -0700305 contents when the compiler changes in an incompatible way.
306 Therefore, if you make a change to the compiler version and/or
307 configuration, you are responsible for purging the ccache
308 cache by removing the $HOME/.buildroot-ccache directory.
Thomas Petazzonif044e032012-03-07 20:26:50 +0100309
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400310if BR2_CCACHE
311
Thomas De Schampheleire43329072012-05-16 21:39:28 +0200312config BR2_CCACHE_DIR
313 string "Compiler cache location"
Thomas De Schampheleire43329072012-05-16 21:39:28 +0200314 default "$(HOME)/.buildroot-ccache"
315 help
316 Where ccache should store cached files.
317
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400318config BR2_CCACHE_INITIAL_SETUP
319 string "Compiler cache initial setup"
320 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700321 Initial ccache settings to apply, such as --max-files or
322 --max-size.
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400323
Martin Kelly65f9b932016-05-31 09:57:22 -0700324 For example, if your project is known to require more space
325 than the default max cache size, then you might want to
326 increase the cache size to a suitable amount using the -M
327 (--max-size) option.
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400328
Martin Kelly65f9b932016-05-31 09:57:22 -0700329 The string you specify here is passed verbatim to ccache.
330 Refer to ccache documentation for more details.
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400331
Martin Kelly65f9b932016-05-31 09:57:22 -0700332 These initial settings are applied after ccache has been
333 compiled.
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400334
Arnout Vandecappelle1e97b272015-10-04 16:25:32 +0100335config BR2_CCACHE_USE_BASEDIR
336 bool "Use relative paths"
337 default y
338 help
339 Allow ccache to convert absolute paths within the output
340 directory into relative paths.
341
Martin Kelly65f9b932016-05-31 09:57:22 -0700342 During the build, many -I include directives are given with an
343 absolute path. These absolute paths end up in the hashes that
344 are computed by ccache. Therefore, when you build from a
345 different directory, the hash will be different and the cached
346 object will not be used.
Arnout Vandecappelle1e97b272015-10-04 16:25:32 +0100347
348 To improve cache performance, set this option to y. This
349 allows ccache to rewrite absolute paths within the output
Martin Kelly65f9b932016-05-31 09:57:22 -0700350 directory into relative paths. Note that only paths within the
351 output directory will be rewritten; therefore, if you change
352 BR2_HOST_DIR to point outside the output directory and
Arnout Vandecappelle1e97b272015-10-04 16:25:32 +0100353 subsequently move it to a different location, this will lead
354 to cache misses.
355
356 This option has as a result that the debug information in the
357 object files also has only relative paths. Therefore, make
358 sure you cd to the build directory before starting gdb. See
Martin Kelly65f9b932016-05-31 09:57:22 -0700359 the section "COMPILING IN DIFFERENT DIRECTORIES" in the ccache
360 manual for more information.
Arnout Vandecappelle1e97b272015-10-04 16:25:32 +0100361
Danomi Manchegodd79f2d2014-04-30 22:05:07 -0400362endif
363
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000364config BR2_DEPRECATED
Gustavo Zacarias8515ef02014-09-19 10:41:09 -0300365 bool "Show options and packages that are deprecated or obsolete"
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000366 help
Gustavo Zacarias8515ef02014-09-19 10:41:09 -0300367 This option shows outdated/obsolete versions of packages and
368 options that are otherwise hidden.
Eric Andersenba7c48f2004-12-11 10:25:40 +0000369
Thomas De Schampheleireba4ad9d2014-01-03 17:02:50 +0100370if BR2_DEPRECATED
371
Vicente Olivert Riera429a1162015-12-17 16:39:53 +0000372config BR2_DEPRECATED_SINCE_2015_11
373 bool
374 default y
375
Gustavo Zacarias07941f42016-01-15 07:47:46 -0300376config BR2_DEPRECATED_SINCE_2016_02
377 bool
378 default y
379
Gustavo Zacariasbca107e2016-02-22 14:54:57 -0300380config BR2_DEPRECATED_SINCE_2016_05
381 bool
382 default y
383
Julien Floret995da6e2016-06-16 16:41:14 +0200384config BR2_DEPRECATED_SINCE_2016_08
385 bool
386 default y
387
Gustavo Zacariasac1f3242016-09-07 22:17:26 -0300388config BR2_DEPRECATED_SINCE_2016_11
389 bool
390 default y
391
Thomas De Schampheleireba4ad9d2014-01-03 17:02:50 +0100392endif
393
John Voltz41f6b792008-03-12 13:07:10 +0000394config BR2_ENABLE_DEBUG
395 bool "build packages with debugging symbols"
John Voltz41f6b792008-03-12 13:07:10 +0000396 help
Thomas Petazzonia9a34672012-03-14 23:49:58 +0100397 Build packages with debugging symbols enabled. All libraries
398 and binaries in the 'staging' directory will have debugging
399 symbols, which allows remote debugging even if libraries and
400 binaries are stripped on the target. Whether libraries and
401 binaries are stripped on the target is controlled by the
402 BR2_STRIP_* options below.
John Voltz41f6b792008-03-12 13:07:10 +0000403
404if BR2_ENABLE_DEBUG
405choice
406 prompt "gcc debug level"
407 default BR2_DEBUG_2
408 help
409 Set the debug level for gcc
410
411config BR2_DEBUG_1
412 bool "debug level 1"
413 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700414 Debug level 1 produces minimal information, enough for making
415 backtraces in parts of the program that you don't plan to
416 debug. This includes descriptions of functions and external
417 variables, but no information about local variables and no
418 line numbers.
John Voltz41f6b792008-03-12 13:07:10 +0000419
420config BR2_DEBUG_2
421 bool "debug level 2"
422 help
423 The default gcc debug level is 2
424
425config BR2_DEBUG_3
426 bool "debug level 3"
427 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700428 Level 3 includes extra information, such as all the macro
429 definitions present in the program. Some debuggers support
430 macro expansion when you use -g3.
John Voltz41f6b792008-03-12 13:07:10 +0000431endchoice
432endif
433
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000434choice
Thomas Petazzonia9a34672012-03-14 23:49:58 +0100435 prompt "strip command for binaries on target"
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000436 default BR2_STRIP_strip
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000437
438config BR2_STRIP_strip
439 bool "strip"
Axel Lin9f2bf302013-09-03 17:39:53 +0800440 depends on !BR2_PACKAGE_HOST_ELF2FLT
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000441 help
Thomas Petazzonia9a34672012-03-14 23:49:58 +0100442 Binaries and libraries in the target filesystem will be
Martin Kelly65f9b932016-05-31 09:57:22 -0700443 stripped using the normal 'strip' command. This allows to save
444 space, mainly by removing debugging symbols. Debugging symbols
445 on the target are needed for native debugging, but not when
446 remote debugging is used.
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000447
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000448config BR2_STRIP_none
449 bool "none"
450 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700451 Do not strip binaries and libraries in the target filesystem.
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000452endchoice
453
Thomas De Schampheleire2a970452012-06-21 19:34:50 +0000454config BR2_STRIP_EXCLUDE_FILES
455 string "executables that should not be stripped"
456 depends on !BR2_STRIP_none
457 default ""
458 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700459 You may specify a space-separated list of binaries and
460 libraries here that should not be stripped on the target.
Thomas De Schampheleire2a970452012-06-21 19:34:50 +0000461
462config BR2_STRIP_EXCLUDE_DIRS
463 string "directories that should be skipped when stripping"
464 depends on !BR2_STRIP_none
465 default ""
466 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700467 You may specify a space-separated list of directories that
468 should be skipped when stripping. Binaries and libraries in
469 these directories will not be touched. The directories should
470 be specified relative to the target directory, without leading
471 slash.
Thomas De Schampheleire2a970452012-06-21 19:34:50 +0000472
John Voltz41f6b792008-03-12 13:07:10 +0000473choice
474 prompt "gcc optimization level"
John Voltz7eb796b2008-03-16 13:26:14 +0000475 default BR2_OPTIMIZE_S
John Voltz923f42a2008-03-12 11:23:11 +0000476 help
John Voltz41f6b792008-03-12 13:07:10 +0000477 Set the optimization level for gcc
478
479config BR2_OPTIMIZE_0
480 bool "optimization level 0"
481 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000482 Do not optimize. This is the default.
John Voltz41f6b792008-03-12 13:07:10 +0000483
484config BR2_OPTIMIZE_1
485 bool "optimization level 1"
486 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700487 Optimize. Optimizing compilation takes somewhat more time, and
488 a lot more memory for a large function. With -O, the compiler
489 tries to reduce code size and execution time, without
490 performing any optimizations that take a great deal of
491 compilation time. -O turns on the following optimization
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000492 flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
493 -fcprop-registers -floop-optimize -fif-conversion
494 -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
495 -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
Martin Kelly65f9b932016-05-31 09:57:22 -0700496 -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants. -O
497 also turns on -fomit-frame-pointer on machines where doing so
498 does not interfere with debugging.
John Voltz41f6b792008-03-12 13:07:10 +0000499
500config BR2_OPTIMIZE_2
501 bool "optimization level 2"
502 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700503 Optimize even more. GCC performs nearly all supported
504 optimizations that do not involve a space-speed tradeoff. The
505 compiler does not perform loop unrolling or function inlining
506 when you specify -O2. As compared to -O, this option increases
507 both compilation time and the performance of the generated
508 code. -O2 turns on all optimization flags specified by -O. It
509 also turns on the following optimization flags:
510 -fthread-jumps -fcrossjumping -foptimize-sibling-calls
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000511 -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
Martin Kelly65f9b932016-05-31 09:57:22 -0700512 -fexpensive-optimizations -fstrength-reduce
513 -frerun-cse-after-loop -frerun-loop-opt -fcaller-saves
514 -fpeephole2 -fschedule-insns -fschedule-insns2
515 -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing
516 -fdelete-null-pointer-checks -freorder-blocks
517 -freorder-functions -falign-functions -falign-jumps
518 -falign-loops -falign-labels -ftree-vrp -ftree-pre. Please
519 note the warning under -fgcse about invoking -O2 on programs
John Voltz41f6b792008-03-12 13:07:10 +0000520 that use computed gotos.
521
522config BR2_OPTIMIZE_3
523 bool "optimization level 3"
524 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700525 Optimize yet more. -O3 turns on all optimizations specified by
526 -O2 and also turns on the -finline-functions, -funswitch-loops
527 and -fgcse-after-reload options.
John Voltz41f6b792008-03-12 13:07:10 +0000528
Martin Kelly5ff84592016-05-18 14:17:55 -0700529config BR2_OPTIMIZE_G
530 bool "optimize for debugging"
531 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
532 help
533 Optimize for debugging. This enables optimizations that do not
Martin Kelly65f9b932016-05-31 09:57:22 -0700534 interfere with debugging. It should be the optimization level
535 of choice for the standard edit-compile-debug cycle, offering
536 a reasonable level of optimization while maintaining fast
537 compilation and a good debugging experience.
John Voltz41f6b792008-03-12 13:07:10 +0000538
539config BR2_OPTIMIZE_S
540 bool "optimize for size"
541 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700542 Optimize for size. -Os enables all -O2 optimizations that do
543 not typically increase code size. It also performs further
544 optimizations designed to reduce code size. -Os disables the
545 following optimization flags: -falign-functions -falign-jumps
546 -falign-loops -falign-labels -freorder-blocks
547 -freorder-blocks-and-partition -fprefetch-loop-arrays
John Voltz41f6b792008-03-12 13:07:10 +0000548 -ftree-vect-loop-version
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000549
John Voltz41f6b792008-03-12 13:07:10 +0000550endchoice
John Voltz923f42a2008-03-12 11:23:11 +0000551
Pascal Huerst09a1a102014-07-31 22:08:55 +0200552config BR2_GOOGLE_BREAKPAD_ENABLE
553 bool "Enable google-breakpad support"
554 select BR2_PACKAGE_GOOGLE_BREAKPAD
555 depends on BR2_INSTALL_LIBSTDCPP
Gustavo Zacariase9ffb3b2016-09-14 21:46:29 -0300556 depends on BR2_USE_WCHAR
Thomas Petazzoni0bb39832016-09-19 16:50:46 +0200557 depends on BR2_TOOLCHAIN_HAS_THREADS
Gustavo Zacariase9ffb3b2016-09-14 21:46:29 -0300558 depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
Pascal Huerst09a1a102014-07-31 22:08:55 +0200559 depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
560 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700561 This option will enable the use of google breakpad, a library
562 and tool suite that allows you to distribute an application to
563 users with compiler-provided debugging information removed,
564 record crashes in compact "minidump" files, send them back to
565 your server and produce C and C++ stack traces from these
566 minidumps. Breakpad can also write minidumps on request for
567 programs that have not crashed.
Pascal Huerst09a1a102014-07-31 22:08:55 +0200568
569if BR2_GOOGLE_BREAKPAD_ENABLE
570
571config BR2_GOOGLE_BREAKPAD_INCLUDE_FILES
572 string "List of executables and libraries to extract symbols from"
573 default ""
574 help
575 You may specify a space-separated list of binaries and
576 libraries with full paths relative to $(TARGET_DIR) of which
577 debug symbols will be dumped for further use with google
578 breakpad.
579
580 A directory structure that can be used by minidump-stackwalk
581 will be created at:
582
583 $(STAGING_DIR)/usr/share/google-breakpad-symbols
584
585endif
586
Steven Noonand29c7192015-12-27 12:07:31 +0100587choice
Thomas Petazzonic5866be2013-09-02 18:06:36 +0200588 bool "build code with Stack Smashing Protection"
Steven Noonand29c7192015-12-27 12:07:31 +0100589 default BR2_SSP_ALL if BR2_ENABLE_SSP # legacy
Thomas Petazzonic5866be2013-09-02 18:06:36 +0200590 depends on BR2_TOOLCHAIN_HAS_SSP
591 help
Steven Noonand29c7192015-12-27 12:07:31 +0100592 Enable stack smashing protection support using GCC's
593 -fstack-protector option family.
Thomas Petazzonic5866be2013-09-02 18:06:36 +0200594
Martin Kelly65f9b932016-05-31 09:57:22 -0700595 See
596 http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
Thomas De Schampheleirebed4e272013-11-11 17:23:23 +0100597 for details.
Thomas Petazzonic5866be2013-09-02 18:06:36 +0200598
Martin Kelly65f9b932016-05-31 09:57:22 -0700599 Note that this requires the toolchain to have SSP support.
600 This is always the case for glibc and eglibc toolchain, but is
601 optional in uClibc toolchains.
Thomas Petazzonic5866be2013-09-02 18:06:36 +0200602
Steven Noonand29c7192015-12-27 12:07:31 +0100603config BR2_SSP_NONE
604 bool "None"
605 help
606 Disable stack-smashing protection.
607
608config BR2_SSP_REGULAR
609 bool "-fstack-protector"
610 help
611 Emit extra code to check for buffer overflows, such as stack
612 smashing attacks. This is done by adding a guard variable to
613 functions with vulnerable objects. This includes functions
614 that call alloca, and functions with buffers larger than 8
615 bytes. The guards are initialized when a function is entered
616 and then checked when the function exits. If a guard check
617 fails, an error message is printed and the program exits.
618
619config BR2_SSP_STRONG
620 bool "-fstack-protector-strong"
621 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
622 help
623 Like -fstack-protector but includes additional functions to be
624 protected - those that have local array definitions, or have
625 references to local frame addresses.
626
627comment "Stack Smashing Protection strong needs a toolchain w/ gcc >= 4.9"
628 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
629
630config BR2_SSP_ALL
631 bool "-fstack-protector-all"
632 help
633 Like -fstack-protector except that all functions are
634 protected. This option might have a significant performance
635 impact on the compiled binaries.
636
637endchoice
638
639comment "Stack Smashing Protection needs a toolchain w/ SSP"
Thomas Petazzonic5866be2013-09-02 18:06:36 +0200640 depends on !BR2_TOOLCHAIN_HAS_SSP
641
Thomas Petazzoni158001f2014-12-11 23:50:09 +0100642choice
643 bool "libraries"
Thomas Petazzonif1d3e092014-12-11 23:50:11 +0100644 default BR2_SHARED_LIBS if BR2_BINFMT_SUPPORTS_SHARED
Thomas Petazzoni158001f2014-12-11 23:50:09 +0100645 default BR2_STATIC_LIBS if !BR2_BINFMT_SUPPORTS_SHARED
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000646 help
Thomas Petazzoni158001f2014-12-11 23:50:09 +0100647 Select the type of libraries you want to use on the target.
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000648
Martin Kelly65f9b932016-05-31 09:57:22 -0700649 The default is to build dynamic libraries and use those on the
650 target filesystem, except when the architecture and/or the
651 selected binary format does not support shared libraries.
Alexey Brodkin7d9c0df2014-10-12 18:34:44 +0200652
Thomas Petazzoni158001f2014-12-11 23:50:09 +0100653config BR2_STATIC_LIBS
654 bool "static only"
655 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700656 Build and use only static libraries. No shared libraries will
Bernd Kuhlsd9312d62016-07-31 18:02:47 +0200657 be installed on the target. This potentially increases your
Martin Kelly65f9b932016-05-31 09:57:22 -0700658 code size and should only be used if you know what you are
659 doing. Note that some packages may not be available when this
660 option is enabled, due to their need for dynamic library
661 support.
Thomas Petazzoni158001f2014-12-11 23:50:09 +0100662
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.
678
679endchoice
Alexey Brodkin7d9c0df2014-10-12 18:34:44 +0200680
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000681
Thomas Petazzoniee0246e2011-09-29 21:57:38 +0200682config BR2_PACKAGE_OVERRIDE_FILE
683 string "location of a package override file"
Yann E. MORINeda3d0e2014-01-29 22:48:24 +0100684 default "$(CONFIG_DIR)/local.mk"
Thomas Petazzoniee0246e2011-09-29 21:57:38 +0200685 help
686 A package override file is a short makefile that contains
Martin Kelly65f9b932016-05-31 09:57:22 -0700687 variable definitions of the form <pkg>_OVERRIDE_SRCDIR, which
688 allows to tell Buildroot to use an existing directory as the
689 source directory for a particular package. See the Buildroot
690 documentation for more details on this feature.
Thomas Petazzoniee0246e2011-09-29 21:57:38 +0200691
Simon Dawson5538e472013-03-17 23:13:47 +0000692config BR2_GLOBAL_PATCH_DIR
Ryan Barnettbc4f79d2013-12-18 04:25:01 -0600693 string "global patch directories"
Simon Dawson5538e472013-03-17 23:13:47 +0000694 help
Martin Kelly65f9b932016-05-31 09:57:22 -0700695 You may specify a space separated list of one or more
696 directories containing global package patches. For a specific
697 version <packageversion> of a specific package <packagename>,
698 patches are applied as follows:
Simon Dawson5538e472013-03-17 23:13:47 +0000699
Martin Kelly65f9b932016-05-31 09:57:22 -0700700 First, the default Buildroot patch set for the package is
701 applied from the package's directory in Buildroot.
Simon Dawson5538e472013-03-17 23:13:47 +0000702
Ryan Barnettbc4f79d2013-12-18 04:25:01 -0600703 Then for every directory - <global-patch-dir> - that exists in
704 BR2_GLOBAL_PATCH_DIR, if the directory
Martin Kelly65f9b932016-05-31 09:57:22 -0700705 <global-patch-dir>/<packagename>/<packageversion>/ exists,
706 then all *.patch files in this directory will be applied.
Simon Dawson5538e472013-03-17 23:13:47 +0000707
Martin Kelly65f9b932016-05-31 09:57:22 -0700708 Otherwise, if the directory <global-patch-dir>/<packagename>
709 exists, then all *.patch files in the directory will be
710 applied.
Simon Dawson5538e472013-03-17 23:13:47 +0000711
Thomas Petazzoni4ac8f782014-12-10 23:53:57 +0100712menu "Advanced"
713
714config BR2_COMPILER_PARANOID_UNSAFE_PATH
715 bool "paranoid check of library/header paths"
Romain Naour61c88542016-05-15 12:26:00 +0200716 default y
Thomas Petazzoni4ac8f782014-12-10 23:53:57 +0100717 help
718 By default, when this option is disabled, when the Buildroot
Martin Kelly65f9b932016-05-31 09:57:22 -0700719 cross-compiler will encounter an unsafe library or header path
720 (such as /usr/include, or /usr/lib), the compiler will display
721 a warning.
Thomas Petazzoni4ac8f782014-12-10 23:53:57 +0100722
Martin Kelly65f9b932016-05-31 09:57:22 -0700723 By enabling this option, this warning is turned into an error,
724 which will completely abort the build when such unsafe paths
725 are encountered.
Thomas Petazzoni4ac8f782014-12-10 23:53:57 +0100726
727 Note that this mechanism is available for both the internal
Romain Naourf9d311e2016-05-15 12:26:01 +0200728 toolchain (through the toolchain wrapper and binutils patches)
729 and external toolchain backends (through the toolchain wrapper).
Thomas Petazzoni4ac8f782014-12-10 23:53:57 +0100730
Gilles Chanteperdrix71574a62016-06-14 17:31:09 +0200731config BR2_REPRODUCIBLE
732 bool "Make the build reproducible (experimental)"
Jerzy Grzegoreka446ab72016-07-02 17:06:18 +0200733 help
734 This option will remove all sources of non-reproducibility
735 from the build process. For a given Buildroot configuration,
736 this allows to generate exactly identical binaries from one
737 build to the other, including on different machines.
Gilles Chanteperdrix71574a62016-06-14 17:31:09 +0200738
Jerzy Grzegoreka446ab72016-07-02 17:06:18 +0200739 This is labeled as an experimental feature, as not all
740 packages behave properly to ensure reproducibility.
Gilles Chanteperdrix71574a62016-06-14 17:31:09 +0200741
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000742endmenu
Eric Andersen2d523c22004-10-09 01:06:03 +0000743
Yann E. MORIN1ac2cdd2016-08-25 19:19:46 +0200744endmenu
745
Bernhard Reutner-Fischer50100392007-09-25 07:55:45 +0000746source "toolchain/Config.in"
747
Thomas Petazzoni6c3e3ad2012-11-03 08:27:58 +0000748source "system/Config.in"
Thomas Petazzonibeb43c72010-12-05 21:52:44 +0100749
Yann E. MORIN24403852013-08-17 22:35:37 +0200750source "linux/Config.in"
Bernhard Reutner-Fischer50100392007-09-25 07:55:45 +0000751
Yann E. MORIN24403852013-08-17 22:35:37 +0200752source "package/Config.in"
Thomas Petazzonid06e8022012-01-28 18:42:49 +0100753
Thomas Petazzoni05852412010-03-10 22:30:06 +0100754source "fs/Config.in"
755
Thomas Petazzoni649b5b92010-03-14 18:20:45 +0100756source "boot/Config.in"
757
Yann E. MORIN24403852013-08-17 22:35:37 +0200758source "package/Config.in.host"
Arnout Vandecappelle (Essensium/Mind)ebcfa982012-11-12 10:08:28 +0000759
760source "Config.in.legacy"
Thomas Petazzoni8eb8aaf2013-12-05 20:11:11 +0100761
Peter Korsgaardf4ea4b92013-12-08 23:21:50 +0100762menu "User-provided options"
763 depends on BR2_EXTERNAL != "support/dummy-external"
764
Thomas Petazzoni8eb8aaf2013-12-05 20:11:11 +0100765source "$BR2_EXTERNAL/Config.in"
Peter Korsgaardf4ea4b92013-12-08 23:21:50 +0100766
767endmenu
Yann E. MORIN4802db32016-07-17 12:34:26 +0200768
769source "$BR2_BUILD_DIR/.br2-external.in"