blob: ab77ef3489eecc82738f83eabeab7124acb35a43 [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
Bernhard Reutner-Fischerbb9e6a72007-09-28 21:54:36 +000013source "target/Config.in.arch"
Bernhard Reutner-Fischer7d8a59b2007-07-08 16:28:54 +000014
Eric Andersen8e5fb3f2004-12-11 13:01:10 +000015menu "Build options"
16
Thomas Petazzoni15929262010-04-10 22:55:01 +020017menu "Commands"
18
Eric Andersen2d523c22004-10-09 01:06:03 +000019config BR2_WGET
Eric Andersen8e5fb3f2004-12-11 13:01:10 +000020 string "Wget command"
Peter Korsgaard6871b162010-11-04 19:16:43 +010021 default "wget --passive-ftp -nd -t 3"
Eric Andersen2d523c22004-10-09 01:06:03 +000022
Maxime Petazzonicf711112010-09-02 12:09:45 +020023config BR2_SVN
24 string "Subversion (svn) command"
25 default "svn"
Eric Andersene30cf262005-01-23 11:20:30 +000026
Maxime Petazzonicf711112010-09-02 12:09:45 +020027config BR2_BZR
28 string "Bazaar (bzr) command"
29 default "bzr"
Sven Neumanndf03cda2009-08-07 11:57:54 +020030
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +000031config BR2_GIT
Maxime Petazzonicf711112010-09-02 12:09:45 +020032 string "Git command"
33 default "git"
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +000034
David Wagner2690e762011-09-29 21:57:46 +020035config BR2_LOCALFILES
36 string "Local files retrieval command"
37 default "cp"
38
Thomas De Schampheleirec61788f2011-10-19 09:25:40 +020039config BR2_SCP
40 string "Secure copy (scp) command"
41 default "scp"
42
43config BR2_SSH
44 string "Secure shell (ssh) command"
45 default "ssh"
46
Thomas De Schampheleiref694c072011-10-19 09:25:47 +020047config BR2_HG
48 string "Mercurial (hg) command"
49 default "hg"
50
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +000051config BR2_ZCAT
52 string "zcat command"
Bernhard Reutner-Fischera9612bf2007-03-09 08:26:10 +000053 default "gzip -d -c"
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +000054 help
55 Command to be used to extract a gzip'ed file to stdout.
56 zcat is identical to gunzip -c except that the former may
57 not be available on your system.
Bernhard Reutner-Fischera9612bf2007-03-09 08:26:10 +000058 Default is "gzip -d -c"
59 Other possible values include "gunzip -c" or "zcat".
Bernhard Reutner-Fischer6e2823c2006-11-17 15:43:51 +000060
61config BR2_BZCAT
62 string "bzcat command"
63 default "bzcat"
64 help
65 Command to be used to extract a bzip2'ed file to stdout.
66 bzcat is identical to bunzip2 -c except that the former may
67 not be available on your system.
68 Default is "bzcat"
69 Other possible values include "bunzip2 -c" or "bzip2 -d -c".
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +000070
Allan W. Nielsen177b4b42011-05-10 08:17:05 +020071config BR2_XZCAT
72 string "xzcat command"
73 default "xzcat"
74 help
75 Command to be used to extract a xz'ed file to stdout.
76 Default is "xzcat"
77
Bernhard Reutner-Fischerce90aae2005-12-10 14:59:02 +000078config BR2_TAR_OPTIONS
79 string "Tar options"
Bernhard Reutner-Fischer7df4de62005-12-10 15:36:43 +000080 default ""
81 help
82 Options to pass to tar when extracting the sources.
83 E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
84 and to be verbose.
Bernhard Reutner-Fischerce90aae2005-12-10 14:59:02 +000085
Thomas Petazzoni15929262010-04-10 22:55:01 +020086endmenu
87
Mike Frysinger59a63a92005-10-01 00:35:24 +000088config BR2_DL_DIR
89 string "Download dir"
H Hartley Sweetenbe695dc2009-09-23 08:46:52 +020090 default "$(TOPDIR)/dl"
Mike Frysinger59a63a92005-10-01 00:35:24 +000091 help
92 Directory to store all the source files that we need to fetch.
Ulf Samuelsson67050e12007-08-21 01:28:12 +000093 If the Linux shell environment has defined the BUILDROOT_DL_DIR
94 environment variable, then this overrides this configuration item.
Mike Frysinger59a63a92005-10-01 00:35:24 +000095
H Hartley Sweetenbe695dc2009-09-23 08:46:52 +020096 The default is $(TOPDIR)/dl
Bernhard Reutner-Fischer4b0d5a82007-09-26 21:12:38 +000097
Gustavo Zacariasa2b4f7f2011-02-02 10:05:56 -030098config BR2_HOST_DIR
99 string "Host dir"
100 default "$(BASE_DIR)/host"
101 help
102 Directory to store all the binary files that are built for the host.
103 This includes the cross compilation toolchain when building the
104 internal buildroot toolchain.
105
106 The default is $(BASE_DIR)/host
107
Thomas Petazzoni80080072010-12-05 21:52:37 +0100108menu "Mirrors and Download locations"
109
110config BR2_PRIMARY_SITE
111 string "Primary download site"
112 default ""
113 help
114 Primary site to download from. If this option is set then buildroot
115 will try to download package source first from this site and try the
116 default if the file is not found.
Thomas De Schampheleirec61788f2011-10-19 09:25:40 +0200117 Valid URIs are URIs recognized by $(WGET) and scp URIs of the form
118 scp://[user@]host:path.
119 NOTE: This works for all packages using the central package
120 infrastructure (generic, autotools, cmake, ...)
Thomas Petazzoni80080072010-12-05 21:52:37 +0100121
122config BR2_BACKUP_SITE
123 string "Backup download site"
124 default "http://sources.buildroot.net/"
125 help
126 Backup site to download from. If this option is set then buildroot
127 will fall back to download package sources from here if the
128 normal location fails.
129
130config BR2_SOURCEFORGE_MIRROR
131 string "Sourceforge mirror site"
Peter Korsgaardd0d35022011-02-09 23:09:48 +0100132 default "kent"
Thomas Petazzoni80080072010-12-05 21:52:37 +0100133 help
134 Sourceforge has a system of mirror sites. Some sites may be
135 closer to your location, and sometimes mirror sites go down
136 and are no longer available. This option allows you to select
137 your preferred Sourceforge mirror site.
138
139 The list of mirrors is available here:
Peter Korsgaardd0d35022011-02-09 23:09:48 +0100140 http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
Thomas Petazzoni80080072010-12-05 21:52:37 +0100141
142config BR2_KERNEL_MIRROR
143 string "Kernel.org mirror"
144 default "http://www.kernel.org/pub/"
145 help
146 kernel.org is mirrored on a number of servers around the world.
147 The following allows you to select your preferred mirror.
148
149 Have a look on the kernel.org site for a list of mirrors, then enter
150 the URL to the base directory. Examples:
151
152 http://www.XX.kernel.org/pub (XX = country code)
153 http://mirror.aarnet.edu.au/pub/ftp.kernel.org
154
155config BR2_GNU_MIRROR
156 string "GNU Software mirror"
157 default "http://ftp.gnu.org/pub/gnu"
158 help
159 GNU has multiple software mirrors scattered around the world.
160 The following allows you to select your preferred mirror.
161
162 Have a look on the gnu.org site for a list of mirrors, then enter
163 the URL to the base directory. Examples:
164
165 http://ftp.gnu.org/pub/gnu
166 http://mirror.aarnet.edu.au/pub/gnu
167
168config BR2_DEBIAN_MIRROR
169 string "Debian Software mirror"
170 default "http://ftp.debian.org"
171 help
172 Debian has multiple software mirrors scattered around the world.
173 The following allows you to select your preferred mirror.
174
175 Usually, just add your country code like XX here:
176 http://ftp.XX.debian.org
177
178endmenu
Thomas Petazzoniaa41d372010-04-10 22:55:38 +0200179
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000180config BR2_JLEVEL
181 int "Number of jobs to run simultaneously"
Peter Korsgaard2bbbe052010-03-31 11:05:12 +0200182 default "2"
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000183 help
Bernhard Reutner-Fischer93ab6d32007-01-28 12:03:58 +0000184 Number of jobs to run simultaneously
185
Thomas Petazzoni17b66af2010-12-07 21:09:56 +0100186config BR2_CCACHE
187 bool "Enable compiler cache"
188 help
189 This option will enable the use of ccache, a compiler
190 cache. It will cache the result of previous builds to speed
191 up future builds. The cache is stored in
192 $HOME/.buildroot-ccache.
193
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000194config BR2_DEPRECATED
Bernhard Reutner-Fischer5e1f0342007-02-09 13:35:41 +0000195 bool "Show packages that are deprecated or obsolete"
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000196 help
Bernhard Reutner-Fischer5e1f0342007-02-09 13:35:41 +0000197 This option hides outdated/obsolete versions of packages.
Eric Andersenba7c48f2004-12-11 10:25:40 +0000198
John Voltz41f6b792008-03-12 13:07:10 +0000199config BR2_ENABLE_DEBUG
200 bool "build packages with debugging symbols"
John Voltz809fa272008-03-12 13:11:29 +0000201 select BR2_PACKAGE_GDB_SERVER
John Voltz41f6b792008-03-12 13:07:10 +0000202 help
203 Build packages with debugging symbols
204 enabled
205
206if BR2_ENABLE_DEBUG
207choice
208 prompt "gcc debug level"
209 default BR2_DEBUG_2
210 help
211 Set the debug level for gcc
212
213config BR2_DEBUG_1
214 bool "debug level 1"
215 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000216 Debug level 1 produces minimal information, enough
217 for making backtraces in parts of the program that
218 you don't plan to debug. This includes descriptions
John Voltz41f6b792008-03-12 13:07:10 +0000219 of functions and external variables, but no information
220 about local variables and no line numbers.
221
222config BR2_DEBUG_2
223 bool "debug level 2"
224 help
225 The default gcc debug level is 2
226
227config BR2_DEBUG_3
228 bool "debug level 3"
229 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000230 Level 3 includes extra information, such as all the
John Voltz41f6b792008-03-12 13:07:10 +0000231 macro definitions present in the program. Some debuggers
232 support macro expansion when you use -g3.
233endchoice
234endif
235
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000236choice
237 prompt "strip"
238 default BR2_STRIP_strip
239 help
240 Select whether to strip binaries and libraries for the target
241 or not.
242 strip is the normal strip command
243 sstrip is a strip that discards more than the normal strip
244 none do not strip (only for debugging!)
245
246config BR2_STRIP_strip
247 bool "strip"
Mike Frysingerfebe3222011-02-07 00:49:10 -0500248 depends on !BR2_ELF2FLT
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000249 help
250 strip is the normal strip command
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000251
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000252config BR2_STRIP_sstrip
253 bool "sstrip"
254 select BR2_PACKAGE_SSTRIP_HOST
Mike Frysingerfebe3222011-02-07 00:49:10 -0500255 depends on !BR2_ELF2FLT
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000256 help
257 sstrip is a strip that discards more than the normal strip
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000258
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000259config BR2_STRIP_none
260 bool "none"
261 help
262 none do not strip (only for debugging!)
263endchoice
264
John Voltz41f6b792008-03-12 13:07:10 +0000265choice
266 prompt "gcc optimization level"
John Voltz7eb796b2008-03-16 13:26:14 +0000267 default BR2_OPTIMIZE_S
John Voltz923f42a2008-03-12 11:23:11 +0000268 help
John Voltz41f6b792008-03-12 13:07:10 +0000269 Set the optimization level for gcc
270
271config BR2_OPTIMIZE_0
272 bool "optimization level 0"
273 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000274 Do not optimize. This is the default.
John Voltz41f6b792008-03-12 13:07:10 +0000275
276config BR2_OPTIMIZE_1
277 bool "optimization level 1"
278 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000279 Optimize. Optimizing compilation takes somewhat more time,
280 and a lot more memory for a large function. With -O, the
281 compiler tries to reduce code size and execution time,
282 without performing any optimizations that take a great deal
283 of compilation time. -O turns on the following optimization
284 flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
285 -fcprop-registers -floop-optimize -fif-conversion
286 -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
287 -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
John Voltz41f6b792008-03-12 13:07:10 +0000288 -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000289 -O also turns on -fomit-frame-pointer on machines where doing
John Voltz41f6b792008-03-12 13:07:10 +0000290 so does not interfere with debugging.
291
292config BR2_OPTIMIZE_2
293 bool "optimization level 2"
294 help
295 Optimize even more. GCC performs nearly all supported optimizations
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000296 that do not involve a space-speed tradeoff. The compiler does not
297 perform loop unrolling or function inlining when you specify -O2.
298 As compared to -O, this option increases both compilation time and
299 the performance of the generated code. -O2 turns on all optimization
300 flags specified by -O. It also turns on the following optimization
301 flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
302 -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
303 -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
304 -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
305 -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
306 -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
307 -freorder-functions -falign-functions -falign-jumps -falign-loops
John Voltz41f6b792008-03-12 13:07:10 +0000308 -falign-labels -ftree-vrp -ftree-pre
309 Please note the warning under -fgcse about invoking -O2 on programs
310 that use computed gotos.
311
312config BR2_OPTIMIZE_3
313 bool "optimization level 3"
314 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000315 Optimize yet more. -O3 turns on all optimizations specified by -O2
316 and also turns on the -finline-functions, -funswitch-loops and
John Voltz41f6b792008-03-12 13:07:10 +0000317 -fgcse-after-reload options.
318
319config BR2_OPTIMIZE_S
320 bool "optimize for size"
321 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000322 Optimize for size. -Os enables all -O2 optimizations that do not
John Voltz41f6b792008-03-12 13:07:10 +0000323 typically increase code size. It also performs further optimizations
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000324 designed to reduce code size. -Os disables the following optimization
325 flags: -falign-functions -falign-jumps -falign-loops -falign-labels
John Voltz41f6b792008-03-12 13:07:10 +0000326 -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
327 -ftree-vect-loop-version
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000328
John Voltz41f6b792008-03-12 13:07:10 +0000329endchoice
John Voltz923f42a2008-03-12 11:23:11 +0000330
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000331config BR2_PREFER_STATIC_LIB
332 bool "prefer static libraries"
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000333 help
Bernhard Reutner-Fischerece6fe02007-06-02 16:36:43 +0000334 Where possible, build and use static libraries for the target.
335 This potentially increases your code size and should only be
336 used if you know what you do.
337 The default is to build dynamic libraries and use those on
338 the target filesystem.
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000339
340 WARNING: This is highly experimental at the moment.
341
Peter Korsgaard886b2742008-10-20 11:32:25 +0000342config BR2_HAVE_DOCUMENTATION
343 bool "documentation on the target"
344 help
Thomas Petazzonib7030662010-04-10 22:47:28 +0200345 Install the documentation, including manual pages and info
346 pages, on the target.
Peter Korsgaard886b2742008-10-20 11:32:25 +0000347 If you say n here, your target will not contain any
348 documentation.
349
John Voltzf5b96fc2008-03-10 16:34:19 +0000350config BR2_HAVE_DEVFILES
351 bool "development files in target filesystem"
John Voltzbc67ca22008-03-10 15:22:43 +0000352 help
353 Install headers and static libraries in the
354 target filesystem
355
Thomas Petazzoniee0246e2011-09-29 21:57:38 +0200356config BR2_PACKAGE_OVERRIDE_FILE
357 string "location of a package override file"
358 default "$(TOPDIR)/local.mk"
359 help
360 A package override file is a short makefile that contains
361 variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
362 which allows to tell Buildroot to use an existing directory
363 as the source directory for a particular package. See the
364 Buildroot documentation for more details on this feature.
365
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000366endmenu
Eric Andersen2d523c22004-10-09 01:06:03 +0000367
Bernhard Reutner-Fischer50100392007-09-25 07:55:45 +0000368source "toolchain/Config.in"
369
Thomas Petazzonibeb43c72010-12-05 21:52:44 +0100370source "target/generic/Config.in"
371
Bernhard Reutner-Fischer50100392007-09-25 07:55:45 +0000372source "package/Config.in"
373
Thomas Petazzoni05852412010-03-10 22:30:06 +0100374source "fs/Config.in"
375
Thomas Petazzoni649b5b92010-03-14 18:20:45 +0100376source "boot/Config.in"
377
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200378source "linux/Config.in"