blob: 280ff032932e2729928f6aeae697957bba47b20c [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
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +000047config BR2_ZCAT
48 string "zcat command"
Bernhard Reutner-Fischera9612bf2007-03-09 08:26:10 +000049 default "gzip -d -c"
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +000050 help
51 Command to be used to extract a gzip'ed file to stdout.
52 zcat is identical to gunzip -c except that the former may
53 not be available on your system.
Bernhard Reutner-Fischera9612bf2007-03-09 08:26:10 +000054 Default is "gzip -d -c"
55 Other possible values include "gunzip -c" or "zcat".
Bernhard Reutner-Fischer6e2823c2006-11-17 15:43:51 +000056
57config BR2_BZCAT
58 string "bzcat command"
59 default "bzcat"
60 help
61 Command to be used to extract a bzip2'ed file to stdout.
62 bzcat is identical to bunzip2 -c except that the former may
63 not be available on your system.
64 Default is "bzcat"
65 Other possible values include "bunzip2 -c" or "bzip2 -d -c".
Bernhard Reutner-Fischer859b9132006-10-01 15:07:45 +000066
Allan W. Nielsen177b4b42011-05-10 08:17:05 +020067config BR2_XZCAT
68 string "xzcat command"
69 default "xzcat"
70 help
71 Command to be used to extract a xz'ed file to stdout.
72 Default is "xzcat"
73
Bernhard Reutner-Fischerce90aae2005-12-10 14:59:02 +000074config BR2_TAR_OPTIONS
75 string "Tar options"
Bernhard Reutner-Fischer7df4de62005-12-10 15:36:43 +000076 default ""
77 help
78 Options to pass to tar when extracting the sources.
79 E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
80 and to be verbose.
Bernhard Reutner-Fischerce90aae2005-12-10 14:59:02 +000081
Thomas Petazzoni15929262010-04-10 22:55:01 +020082endmenu
83
Mike Frysinger59a63a92005-10-01 00:35:24 +000084config BR2_DL_DIR
85 string "Download dir"
H Hartley Sweetenbe695dc2009-09-23 08:46:52 +020086 default "$(TOPDIR)/dl"
Mike Frysinger59a63a92005-10-01 00:35:24 +000087 help
88 Directory to store all the source files that we need to fetch.
Ulf Samuelsson67050e12007-08-21 01:28:12 +000089 If the Linux shell environment has defined the BUILDROOT_DL_DIR
90 environment variable, then this overrides this configuration item.
Mike Frysinger59a63a92005-10-01 00:35:24 +000091
H Hartley Sweetenbe695dc2009-09-23 08:46:52 +020092 The default is $(TOPDIR)/dl
Bernhard Reutner-Fischer4b0d5a82007-09-26 21:12:38 +000093
Gustavo Zacariasa2b4f7f2011-02-02 10:05:56 -030094config BR2_HOST_DIR
95 string "Host dir"
96 default "$(BASE_DIR)/host"
97 help
98 Directory to store all the binary files that are built for the host.
99 This includes the cross compilation toolchain when building the
100 internal buildroot toolchain.
101
102 The default is $(BASE_DIR)/host
103
Thomas Petazzoni80080072010-12-05 21:52:37 +0100104menu "Mirrors and Download locations"
105
106config BR2_PRIMARY_SITE
107 string "Primary download site"
108 default ""
109 help
110 Primary site to download from. If this option is set then buildroot
111 will try to download package source first from this site and try the
112 default if the file is not found.
Thomas De Schampheleirec61788f2011-10-19 09:25:40 +0200113 Valid URIs are URIs recognized by $(WGET) and scp URIs of the form
114 scp://[user@]host:path.
115 NOTE: This works for all packages using the central package
116 infrastructure (generic, autotools, cmake, ...)
Thomas Petazzoni80080072010-12-05 21:52:37 +0100117
118config BR2_BACKUP_SITE
119 string "Backup download site"
120 default "http://sources.buildroot.net/"
121 help
122 Backup site to download from. If this option is set then buildroot
123 will fall back to download package sources from here if the
124 normal location fails.
125
126config BR2_SOURCEFORGE_MIRROR
127 string "Sourceforge mirror site"
Peter Korsgaardd0d35022011-02-09 23:09:48 +0100128 default "kent"
Thomas Petazzoni80080072010-12-05 21:52:37 +0100129 help
130 Sourceforge has a system of mirror sites. Some sites may be
131 closer to your location, and sometimes mirror sites go down
132 and are no longer available. This option allows you to select
133 your preferred Sourceforge mirror site.
134
135 The list of mirrors is available here:
Peter Korsgaardd0d35022011-02-09 23:09:48 +0100136 http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
Thomas Petazzoni80080072010-12-05 21:52:37 +0100137
138config BR2_KERNEL_MIRROR
139 string "Kernel.org mirror"
140 default "http://www.kernel.org/pub/"
141 help
142 kernel.org is mirrored on a number of servers around the world.
143 The following allows you to select your preferred mirror.
144
145 Have a look on the kernel.org site for a list of mirrors, then enter
146 the URL to the base directory. Examples:
147
148 http://www.XX.kernel.org/pub (XX = country code)
149 http://mirror.aarnet.edu.au/pub/ftp.kernel.org
150
151config BR2_GNU_MIRROR
152 string "GNU Software mirror"
153 default "http://ftp.gnu.org/pub/gnu"
154 help
155 GNU has multiple software mirrors scattered around the world.
156 The following allows you to select your preferred mirror.
157
158 Have a look on the gnu.org site for a list of mirrors, then enter
159 the URL to the base directory. Examples:
160
161 http://ftp.gnu.org/pub/gnu
162 http://mirror.aarnet.edu.au/pub/gnu
163
164config BR2_DEBIAN_MIRROR
165 string "Debian Software mirror"
166 default "http://ftp.debian.org"
167 help
168 Debian has multiple software mirrors scattered around the world.
169 The following allows you to select your preferred mirror.
170
171 Usually, just add your country code like XX here:
172 http://ftp.XX.debian.org
173
174endmenu
Thomas Petazzoniaa41d372010-04-10 22:55:38 +0200175
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000176config BR2_JLEVEL
177 int "Number of jobs to run simultaneously"
Peter Korsgaard2bbbe052010-03-31 11:05:12 +0200178 default "2"
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000179 help
Bernhard Reutner-Fischer93ab6d32007-01-28 12:03:58 +0000180 Number of jobs to run simultaneously
181
Thomas Petazzoni17b66af2010-12-07 21:09:56 +0100182config BR2_CCACHE
183 bool "Enable compiler cache"
184 help
185 This option will enable the use of ccache, a compiler
186 cache. It will cache the result of previous builds to speed
187 up future builds. The cache is stored in
188 $HOME/.buildroot-ccache.
189
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000190config BR2_DEPRECATED
Bernhard Reutner-Fischer5e1f0342007-02-09 13:35:41 +0000191 bool "Show packages that are deprecated or obsolete"
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000192 help
Bernhard Reutner-Fischer5e1f0342007-02-09 13:35:41 +0000193 This option hides outdated/obsolete versions of packages.
Eric Andersenba7c48f2004-12-11 10:25:40 +0000194
John Voltz41f6b792008-03-12 13:07:10 +0000195config BR2_ENABLE_DEBUG
196 bool "build packages with debugging symbols"
John Voltz809fa272008-03-12 13:11:29 +0000197 select BR2_PACKAGE_GDB_SERVER
John Voltz41f6b792008-03-12 13:07:10 +0000198 help
199 Build packages with debugging symbols
200 enabled
201
202if BR2_ENABLE_DEBUG
203choice
204 prompt "gcc debug level"
205 default BR2_DEBUG_2
206 help
207 Set the debug level for gcc
208
209config BR2_DEBUG_1
210 bool "debug level 1"
211 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000212 Debug level 1 produces minimal information, enough
213 for making backtraces in parts of the program that
214 you don't plan to debug. This includes descriptions
John Voltz41f6b792008-03-12 13:07:10 +0000215 of functions and external variables, but no information
216 about local variables and no line numbers.
217
218config BR2_DEBUG_2
219 bool "debug level 2"
220 help
221 The default gcc debug level is 2
222
223config BR2_DEBUG_3
224 bool "debug level 3"
225 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000226 Level 3 includes extra information, such as all the
John Voltz41f6b792008-03-12 13:07:10 +0000227 macro definitions present in the program. Some debuggers
228 support macro expansion when you use -g3.
229endchoice
230endif
231
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000232choice
233 prompt "strip"
234 default BR2_STRIP_strip
235 help
236 Select whether to strip binaries and libraries for the target
237 or not.
238 strip is the normal strip command
239 sstrip is a strip that discards more than the normal strip
240 none do not strip (only for debugging!)
241
242config BR2_STRIP_strip
243 bool "strip"
Mike Frysingerfebe3222011-02-07 00:49:10 -0500244 depends on !BR2_ELF2FLT
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000245 help
246 strip is the normal strip command
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000247
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000248config BR2_STRIP_sstrip
249 bool "sstrip"
250 select BR2_PACKAGE_SSTRIP_HOST
Mike Frysingerfebe3222011-02-07 00:49:10 -0500251 depends on !BR2_ELF2FLT
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000252 help
253 sstrip is a strip that discards more than the normal strip
Ulf Samuelsson85f54fb2007-08-24 05:31:07 +0000254
Bernhard Reutner-Fischerbbd251a2007-07-31 18:06:50 +0000255config BR2_STRIP_none
256 bool "none"
257 help
258 none do not strip (only for debugging!)
259endchoice
260
John Voltz41f6b792008-03-12 13:07:10 +0000261choice
262 prompt "gcc optimization level"
John Voltz7eb796b2008-03-16 13:26:14 +0000263 default BR2_OPTIMIZE_S
John Voltz923f42a2008-03-12 11:23:11 +0000264 help
John Voltz41f6b792008-03-12 13:07:10 +0000265 Set the optimization level for gcc
266
267config BR2_OPTIMIZE_0
268 bool "optimization level 0"
269 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000270 Do not optimize. This is the default.
John Voltz41f6b792008-03-12 13:07:10 +0000271
272config BR2_OPTIMIZE_1
273 bool "optimization level 1"
274 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000275 Optimize. Optimizing compilation takes somewhat more time,
276 and a lot more memory for a large function. With -O, the
277 compiler tries to reduce code size and execution time,
278 without performing any optimizations that take a great deal
279 of compilation time. -O turns on the following optimization
280 flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
281 -fcprop-registers -floop-optimize -fif-conversion
282 -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
283 -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
John Voltz41f6b792008-03-12 13:07:10 +0000284 -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000285 -O also turns on -fomit-frame-pointer on machines where doing
John Voltz41f6b792008-03-12 13:07:10 +0000286 so does not interfere with debugging.
287
288config BR2_OPTIMIZE_2
289 bool "optimization level 2"
290 help
291 Optimize even more. GCC performs nearly all supported optimizations
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000292 that do not involve a space-speed tradeoff. The compiler does not
293 perform loop unrolling or function inlining when you specify -O2.
294 As compared to -O, this option increases both compilation time and
295 the performance of the generated code. -O2 turns on all optimization
296 flags specified by -O. It also turns on the following optimization
297 flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
298 -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
299 -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
300 -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
301 -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
302 -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
303 -freorder-functions -falign-functions -falign-jumps -falign-loops
John Voltz41f6b792008-03-12 13:07:10 +0000304 -falign-labels -ftree-vrp -ftree-pre
305 Please note the warning under -fgcse about invoking -O2 on programs
306 that use computed gotos.
307
308config BR2_OPTIMIZE_3
309 bool "optimization level 3"
310 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000311 Optimize yet more. -O3 turns on all optimizations specified by -O2
312 and also turns on the -finline-functions, -funswitch-loops and
John Voltz41f6b792008-03-12 13:07:10 +0000313 -fgcse-after-reload options.
314
315config BR2_OPTIMIZE_S
316 bool "optimize for size"
317 help
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000318 Optimize for size. -Os enables all -O2 optimizations that do not
John Voltz41f6b792008-03-12 13:07:10 +0000319 typically increase code size. It also performs further optimizations
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000320 designed to reduce code size. -Os disables the following optimization
321 flags: -falign-functions -falign-jumps -falign-loops -falign-labels
John Voltz41f6b792008-03-12 13:07:10 +0000322 -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
323 -ftree-vect-loop-version
Peter Korsgaard02a623d2008-08-04 19:07:05 +0000324
John Voltz41f6b792008-03-12 13:07:10 +0000325endchoice
John Voltz923f42a2008-03-12 11:23:11 +0000326
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000327config BR2_PREFER_STATIC_LIB
328 bool "prefer static libraries"
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000329 help
Bernhard Reutner-Fischerece6fe02007-06-02 16:36:43 +0000330 Where possible, build and use static libraries for the target.
331 This potentially increases your code size and should only be
332 used if you know what you do.
333 The default is to build dynamic libraries and use those on
334 the target filesystem.
Bernhard Reutner-Fischer3096f342007-06-01 22:16:28 +0000335
336 WARNING: This is highly experimental at the moment.
337
Peter Korsgaard886b2742008-10-20 11:32:25 +0000338config BR2_HAVE_DOCUMENTATION
339 bool "documentation on the target"
340 help
Thomas Petazzonib7030662010-04-10 22:47:28 +0200341 Install the documentation, including manual pages and info
342 pages, on the target.
Peter Korsgaard886b2742008-10-20 11:32:25 +0000343 If you say n here, your target will not contain any
344 documentation.
345
John Voltzf5b96fc2008-03-10 16:34:19 +0000346config BR2_HAVE_DEVFILES
347 bool "development files in target filesystem"
John Voltzbc67ca22008-03-10 15:22:43 +0000348 help
349 Install headers and static libraries in the
350 target filesystem
351
Thomas Petazzoniee0246e2011-09-29 21:57:38 +0200352config BR2_PACKAGE_OVERRIDE_FILE
353 string "location of a package override file"
354 default "$(TOPDIR)/local.mk"
355 help
356 A package override file is a short makefile that contains
357 variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
358 which allows to tell Buildroot to use an existing directory
359 as the source directory for a particular package. See the
360 Buildroot documentation for more details on this feature.
361
Eric Andersen8e5fb3f2004-12-11 13:01:10 +0000362endmenu
Eric Andersen2d523c22004-10-09 01:06:03 +0000363
Bernhard Reutner-Fischer50100392007-09-25 07:55:45 +0000364source "toolchain/Config.in"
365
Thomas Petazzonibeb43c72010-12-05 21:52:44 +0100366source "target/generic/Config.in"
367
Bernhard Reutner-Fischer50100392007-09-25 07:55:45 +0000368source "package/Config.in"
369
Thomas Petazzoni05852412010-03-10 22:30:06 +0100370source "fs/Config.in"
371
Thomas Petazzoni649b5b92010-03-14 18:20:45 +0100372source "boot/Config.in"
373
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200374source "linux/Config.in"