]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - Config.in
linux, uboot, mxs-bootlets, barebox: avoid double slash in CUSTOM_TARBALL
[coffee/buildroot.git] / Config.in
1 #
2
3 mainmenu "Buildroot $BR2_VERSION Configuration"
4
5 config BR2_HAVE_DOT_CONFIG
6         bool
7         default y
8
9 config BR2_VERSION
10         string
11         option env="BR2_VERSION_FULL"
12
13 config BR2_HOSTARCH
14         string
15         option env="HOSTARCH"
16
17 # Hidden boolean selected by pre-built packages for x86, when they
18 # need to run on x86-64 machines (example: pre-built external
19 # toolchains, binary tools like SAM-BA, etc.).
20 config BR2_HOSTARCH_NEEDS_IA32_LIBS
21         bool
22
23 source "arch/Config.in"
24
25 menu "Build options"
26
27 menu "Commands"
28
29 config BR2_WGET
30         string "Wget command"
31         default "wget --passive-ftp -nd -t 3"
32
33 config BR2_SVN
34         string "Subversion (svn) command"
35         default "svn"
36
37 config BR2_BZR
38         string "Bazaar (bzr) command"
39         default "bzr"
40
41 config BR2_GIT
42         string "Git command"
43         default "git"
44
45 config BR2_LOCALFILES
46         string "Local files retrieval command"
47         default "cp"
48
49 config BR2_SCP
50         string "Secure copy (scp) command"
51         default "scp"
52
53 config BR2_SSH
54         string "Secure shell (ssh) command"
55         default "ssh"
56
57 config BR2_HG
58         string "Mercurial (hg) command"
59         default "hg"
60
61 config BR2_ZCAT
62         string "zcat command"
63         default "gzip -d -c"
64         help
65           Command to be used to extract a gzip'ed file to stdout.
66           zcat is identical to gunzip -c except that the former may
67           not be available on your system.
68           Default is "gzip -d -c"
69           Other possible values include "gunzip -c" or "zcat".
70
71 config BR2_BZCAT
72         string "bzcat command"
73         default "bzcat"
74         help
75           Command to be used to extract a bzip2'ed file to stdout.
76           bzcat is identical to bunzip2 -c except that the former may
77           not be available on your system.
78           Default is "bzcat"
79           Other possible values include "bunzip2 -c" or "bzip2 -d -c".
80
81 config BR2_XZCAT
82         string "xzcat command"
83         default "xzcat"
84         help
85           Command to be used to extract a xz'ed file to stdout.
86           Default is "xzcat"
87
88 config BR2_TAR_OPTIONS
89         string "Tar options"
90         default ""
91         help
92           Options to pass to tar when extracting the sources.
93           E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
94           and to be verbose.
95
96 endmenu
97
98 config BR2_DL_DIR
99         string "Download dir"
100         default "$(TOPDIR)/dl"
101         help
102           Directory to store all the source files that we need to fetch.
103           If the Linux shell environment has defined the BUILDROOT_DL_DIR
104           environment variable, then this overrides this configuration item.
105
106           The default is $(TOPDIR)/dl
107
108 config BR2_HOST_DIR
109         string "Host dir"
110         default "$(BASE_DIR)/host"
111         help
112           Directory to store all the binary files that are built for the host.
113           This includes the cross compilation toolchain when building the
114           internal buildroot toolchain.
115
116           The default is $(BASE_DIR)/host
117
118 menu "Mirrors and Download locations"
119
120 config BR2_PRIMARY_SITE
121         string "Primary download site"
122         default ""
123         help
124           Primary site to download from. If this option is set then buildroot
125           will try to download package source first from this site and try the
126           default if the file is not found.
127           Valid URIs are URIs recognized by $(WGET) and scp URIs of the form
128           scp://[user@]host:path.
129           NOTE: This works for all packages using the central package
130           infrastructure (generic, autotools, cmake, ...)
131
132 config BR2_PRIMARY_SITE_ONLY
133         bool "Only allow downloads from primary download site"
134         depends on BR2_PRIMARY_SITE != ""
135         help
136           If this option is enabled, downloads will only be attempted
137           from the primary download site. Other locations, like the
138           package's official download location or the backup download
139           site, will not be considered. Therefore, if the package is
140           not present on the primary site, the download fails.
141
142           This is useful for project developers who want to ensure
143           that the project can be built even if the upstream tarball
144           locations disappear.
145
146 if !BR2_PRIMARY_SITE_ONLY
147
148 config BR2_BACKUP_SITE
149         string "Backup download site"
150         default "http://sources.buildroot.net/"
151         help
152           Backup site to download from. If this option is set then buildroot
153           will fall back to download package sources from here if the
154           normal location fails.
155
156 config BR2_KERNEL_MIRROR
157         string "Kernel.org mirror"
158         default "http://www.kernel.org/pub/"
159         help
160           kernel.org is mirrored on a number of servers around the world.
161           The following allows you to select your preferred mirror.
162
163           Have a look on the kernel.org site for a list of mirrors, then enter
164           the URL to the base directory.  Examples:
165
166              http://www.XX.kernel.org/pub (XX = country code)
167              http://mirror.aarnet.edu.au/pub/ftp.kernel.org
168
169 config BR2_GNU_MIRROR
170         string "GNU Software mirror"
171         default "http://ftp.gnu.org/pub/gnu"
172         help
173           GNU has multiple software mirrors scattered around the world.
174           The following allows you to select your preferred mirror.
175
176           Have a look on the gnu.org site for a list of mirrors, then enter
177           the URL to the base directory.  Examples:
178
179              http://ftp.gnu.org/pub/gnu
180              http://mirror.aarnet.edu.au/pub/gnu
181
182 config BR2_DEBIAN_MIRROR
183         string "Debian Software mirror"
184         default "http://ftp.debian.org"
185         help
186           Debian has multiple software mirrors scattered around the world.
187           The following allows you to select your preferred mirror.
188
189           Usually, just add your country code like XX here:
190           http://ftp.XX.debian.org
191
192 endif
193
194 endmenu
195
196 config BR2_JLEVEL
197         int "Number of jobs to run simultaneously (0 for auto)"
198         default "0"
199         help
200           Number of jobs to run simultaneously.  If 0, determine
201           automatically according to number of CPUs on the host
202           system.
203
204 config BR2_CCACHE
205         bool "Enable compiler cache"
206         help
207           This option will enable the use of ccache, a compiler
208           cache. It will cache the result of previous builds to speed
209           up future builds. The cache is stored in
210           $HOME/.buildroot-ccache.
211
212           Note that Buildroot does not try to invalidate the cache
213           contents when the compiler changes in an incompatible
214           way. Therefore, if you make a change to the compiler version
215           and/or configuration, you are responsible for purging the
216           ccache cache by removing the $HOME/.buildroot-ccache
217           directory.
218
219 config BR2_CCACHE_DIR
220         string "Compiler cache location"
221         depends on BR2_CCACHE
222         default "$(HOME)/.buildroot-ccache"
223         help
224           Where ccache should store cached files.
225
226 config BR2_DEPRECATED
227         bool "Show packages that are deprecated or obsolete"
228         help
229           This option hides outdated/obsolete versions of packages.
230
231 config BR2_ENABLE_DEBUG
232         bool "build packages with debugging symbols"
233         help
234           Build packages with debugging symbols enabled. All libraries
235           and binaries in the 'staging' directory will have debugging
236           symbols, which allows remote debugging even if libraries and
237           binaries are stripped on the target. Whether libraries and
238           binaries are stripped on the target is controlled by the
239           BR2_STRIP_* options below.
240
241 if BR2_ENABLE_DEBUG
242 choice
243         prompt "gcc debug level"
244         default BR2_DEBUG_2
245         help
246           Set the debug level for gcc
247
248 config BR2_DEBUG_1
249         bool "debug level 1"
250         help
251           Debug level 1 produces minimal information, enough
252           for making backtraces in parts of the program that
253           you don't plan to debug. This includes descriptions
254           of functions and external variables, but no information
255           about local variables and no line numbers.
256
257 config BR2_DEBUG_2
258         bool "debug level 2"
259         help
260           The default gcc debug level is 2
261
262 config BR2_DEBUG_3
263         bool "debug level 3"
264         help
265           Level 3 includes extra information, such as all the
266           macro definitions present in the program. Some debuggers
267           support macro expansion when you use -g3.
268 endchoice
269 endif
270
271 choice
272         prompt "strip command for binaries on target"
273         default BR2_STRIP_strip
274
275 config BR2_STRIP_strip
276         bool "strip"
277         depends on !BR2_ELF2FLT
278         help
279           Binaries and libraries in the target filesystem will be
280           stripped using the normal 'strip' command. This allows to
281           save space, mainly by removing debugging symbols. Debugging
282           symbols on the target are needed for native debugging, but
283           not when remote debugging is used.
284
285 config BR2_STRIP_sstrip
286         bool "sstrip"
287         select BR2_PACKAGE_SSTRIP_HOST
288         depends on !BR2_ELF2FLT
289         help
290           Binaries and libraries in the target filesystem will be
291           stripped using the 'sstrip' command, which strips a little
292           bit more than the traditional 'strip' command. This allows to
293           save space, mainly by removing debugging symbols. Debugging
294           symbols on the target are needed for native debugging, but
295           not when remote debugging is used.
296
297 config BR2_STRIP_none
298         bool "none"
299         help
300           Do not strip binaries and libraries in the target
301           filesystem.
302 endchoice
303
304 config BR2_STRIP_EXCLUDE_FILES
305         string "executables that should not be stripped"
306         depends on !BR2_STRIP_none
307         default ""
308         help
309           You may specify a space-separated list of binaries and libraries
310           here that should not be stripped on the target.
311
312 config BR2_STRIP_EXCLUDE_DIRS
313         string "directories that should be skipped when stripping"
314         depends on !BR2_STRIP_none
315         default ""
316         help
317           You may specify a space-separated list of directories that should
318           be skipped when stripping. Binaries and libraries in these
319           directories will not be touched.
320           The directories should be specified relative to the target directory,
321           without leading slash.
322
323 choice
324         prompt "gcc optimization level"
325         default BR2_OPTIMIZE_S
326         help
327           Set the optimization level for gcc
328
329 config BR2_OPTIMIZE_0
330         bool "optimization level 0"
331         help
332           Do not optimize. This is the default.
333
334 config BR2_OPTIMIZE_1
335         bool "optimization level 1"
336         help
337           Optimize. Optimizing compilation takes somewhat more time,
338           and a lot more memory for a large function. With -O, the
339           compiler tries to reduce code size and execution time,
340           without performing any optimizations that take a great deal
341           of compilation time. -O turns on the following optimization
342           flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
343           -fcprop-registers -floop-optimize -fif-conversion
344           -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
345           -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
346           -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
347           -O also turns on -fomit-frame-pointer on machines where doing
348           so does not interfere with debugging.
349
350 config BR2_OPTIMIZE_2
351         bool "optimization level 2"
352         help
353           Optimize even more. GCC performs nearly all supported optimizations
354           that do not involve a space-speed tradeoff. The compiler does not
355           perform loop unrolling or function inlining when you specify -O2.
356           As compared to -O, this option increases both compilation time and
357           the performance of the generated code. -O2 turns on all optimization
358           flags specified by -O. It also turns on the following optimization
359           flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
360           -fcse-follow-jumps -fcse-skip-blocks -fgcse  -fgcse-lm
361           -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
362           -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
363           -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
364           -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
365           -freorder-functions -falign-functions -falign-jumps -falign-loops
366           -falign-labels -ftree-vrp -ftree-pre
367           Please note the warning under -fgcse about invoking -O2 on programs
368           that use computed gotos.
369
370 config BR2_OPTIMIZE_3
371         bool "optimization level 3"
372         help
373           Optimize yet more. -O3 turns on all optimizations specified by -O2
374           and also turns on the -finline-functions, -funswitch-loops and
375           -fgcse-after-reload options.
376
377 config BR2_OPTIMIZE_S
378         bool "optimize for size"
379         help
380           Optimize for size. -Os enables all -O2 optimizations that do not
381           typically increase code size. It also performs further optimizations
382           designed to reduce code size. -Os disables the following optimization
383           flags: -falign-functions -falign-jumps -falign-loops -falign-labels
384           -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
385           -ftree-vect-loop-version
386
387 endchoice
388
389 config BR2_PREFER_STATIC_LIB
390         bool "prefer static libraries"
391         help
392           Where possible, build and use static libraries for the target.
393           This potentially increases your code size and should only be
394           used if you know what you do.
395           The default is to build dynamic libraries and use those on
396           the target filesystem.
397
398           WARNING: This is highly experimental at the moment.
399
400 config BR2_HAVE_DOCUMENTATION
401         bool "documentation on the target"
402         # We no longer want to support a toolchain on the target
403         depends on BR2_DEPRECATED
404         help
405           Install the documentation, including manual pages and info
406           pages, on the target.
407           If you say n here, your target will not contain any
408           documentation.
409
410 config BR2_HAVE_DEVFILES
411         bool "development files in target filesystem"
412         # We no longer want to support a toolchain on the target
413         depends on BR2_DEPRECATED
414         help
415           Install headers and static libraries in the
416           target filesystem
417
418 config BR2_PACKAGE_OVERRIDE_FILE
419         string "location of a package override file"
420         default "$(TOPDIR)/local.mk"
421         help
422           A package override file is a short makefile that contains
423           variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
424           which allows to tell Buildroot to use an existing directory
425           as the source directory for a particular package. See the
426           Buildroot documentation for more details on this feature.
427
428 endmenu
429
430 source "toolchain/Config.in"
431
432 source "system/Config.in"
433
434 source "package/Config.in"
435
436 source "package/Config.in.host"
437
438 source "fs/Config.in"
439
440 source "boot/Config.in"
441
442 source "linux/Config.in"
443
444 source "Config.in.legacy"