]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - Config.in
toolchain: introduce HOST_DIR option
[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 source "target/Config.in.arch"
14
15 menu "Build options"
16
17 menu "Commands"
18
19 config BR2_WGET
20         string "Wget command"
21         default "wget --passive-ftp -nd -t 3"
22
23 config BR2_SVN
24         string "Subversion (svn) command"
25         default "svn"
26
27 config BR2_BZR
28         string "Bazaar (bzr) command"
29         default "bzr"
30
31 config BR2_GIT
32         string "Git command"
33         default "git"
34
35 config BR2_ZCAT
36         string "zcat command"
37         default "gzip -d -c"
38         help
39           Command to be used to extract a gzip'ed file to stdout.
40           zcat is identical to gunzip -c except that the former may
41           not be available on your system.
42           Default is "gzip -d -c"
43           Other possible values include "gunzip -c" or "zcat".
44
45 config BR2_BZCAT
46         string "bzcat command"
47         default "bzcat"
48         help
49           Command to be used to extract a bzip2'ed file to stdout.
50           bzcat is identical to bunzip2 -c except that the former may
51           not be available on your system.
52           Default is "bzcat"
53           Other possible values include "bunzip2 -c" or "bzip2 -d -c".
54
55 config BR2_TAR_OPTIONS
56         string "Tar options"
57         default ""
58         help
59           Options to pass to tar when extracting the sources.
60           E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
61           and to be verbose.
62
63 endmenu
64
65 config BR2_DL_DIR
66         string "Download dir"
67         default "$(TOPDIR)/dl"
68         help
69           Directory to store all the source files that we need to fetch.
70           If the Linux shell environment has defined the BUILDROOT_DL_DIR
71           environment variable, then this overrides this configuration item.
72
73           The default is $(TOPDIR)/dl
74
75 config BR2_HOST_DIR
76         string "Host dir"
77         default "$(BASE_DIR)/host"
78         help
79           Directory to store all the binary files that are built for the host.
80           This includes the cross compilation toolchain when building the
81           internal buildroot toolchain.
82
83           The default is $(BASE_DIR)/host
84
85 menu "Mirrors and Download locations"
86
87 config BR2_PRIMARY_SITE
88         string "Primary download site"
89         default ""
90         help
91           Primary site to download from. If this option is set then buildroot
92           will try to download package source first from this site and try the
93           default if the file is not found.
94           NOTE: This only works for packages using the Makefile.autotools.in
95
96 config BR2_BACKUP_SITE
97         string "Backup download site"
98         default "http://sources.buildroot.net/"
99         help
100           Backup site to download from. If this option is set then buildroot
101           will fall back to download package sources from here if the
102           normal location fails.
103
104 config BR2_SOURCEFORGE_MIRROR
105         string "Sourceforge mirror site"
106         default "easynews"
107         help
108           Sourceforge has a system of mirror sites.  Some sites may be
109           closer to your location, and sometimes mirror sites go down
110           and are no longer available.  This option allows you to select
111           your preferred Sourceforge mirror site.
112
113           The list of mirrors is available here:
114           http://prdownloads.sourceforge.net/index-sf.html?download
115
116 config BR2_KERNEL_MIRROR
117         string "Kernel.org mirror"
118         default "http://www.kernel.org/pub/"
119         help
120           kernel.org is mirrored on a number of servers around the world.
121           The following allows you to select your preferred mirror.
122
123           Have a look on the kernel.org site for a list of mirrors, then enter
124           the URL to the base directory.  Examples:
125
126              http://www.XX.kernel.org/pub (XX = country code)
127              http://mirror.aarnet.edu.au/pub/ftp.kernel.org
128
129 config BR2_GNU_MIRROR
130         string "GNU Software mirror"
131         default "http://ftp.gnu.org/pub/gnu"
132         help
133           GNU has multiple software mirrors scattered around the world.
134           The following allows you to select your preferred mirror.
135
136           Have a look on the gnu.org site for a list of mirrors, then enter
137           the URL to the base directory.  Examples:
138
139              http://ftp.gnu.org/pub/gnu
140              http://mirror.aarnet.edu.au/pub/gnu
141
142 config BR2_DEBIAN_MIRROR
143         string "Debian Software mirror"
144         default "http://ftp.debian.org"
145         help
146           Debian has multiple software mirrors scattered around the world.
147           The following allows you to select your preferred mirror.
148
149           Usually, just add your country code like XX here:
150           http://ftp.XX.debian.org
151
152 endmenu
153
154 config BR2_JLEVEL
155         int "Number of jobs to run simultaneously"
156         default "2"
157         help
158           Number of jobs to run simultaneously
159
160 config BR2_CCACHE
161         bool "Enable compiler cache"
162         help
163           This option will enable the use of ccache, a compiler
164           cache. It will cache the result of previous builds to speed
165           up future builds. The cache is stored in
166           $HOME/.buildroot-ccache.
167
168 config BR2_DEPRECATED
169         bool "Show packages that are deprecated or obsolete"
170         help
171           This option hides outdated/obsolete versions of packages.
172
173 config BR2_ENABLE_DEBUG
174         bool "build packages with debugging symbols"
175         select BR2_PACKAGE_GDB_SERVER
176         help
177           Build packages with debugging symbols
178           enabled
179
180 if BR2_ENABLE_DEBUG
181 choice
182         prompt "gcc debug level"
183         default BR2_DEBUG_2
184         help
185           Set the debug level for gcc
186
187 config BR2_DEBUG_1
188         bool "debug level 1"
189         help
190           Debug level 1 produces minimal information, enough
191           for making backtraces in parts of the program that
192           you don't plan to debug. This includes descriptions
193           of functions and external variables, but no information
194           about local variables and no line numbers.
195
196 config BR2_DEBUG_2
197         bool "debug level 2"
198         help
199           The default gcc debug level is 2
200
201 config BR2_DEBUG_3
202         bool "debug level 3"
203         help
204           Level 3 includes extra information, such as all the
205           macro definitions present in the program. Some debuggers
206           support macro expansion when you use -g3.
207 endchoice
208 endif
209
210 choice
211         prompt "strip"
212         default BR2_STRIP_strip
213         help
214           Select whether to strip binaries and libraries for the target
215           or not.
216           strip   is the normal strip command
217           sstrip  is a strip that discards more than the normal strip
218           none    do not strip (only for debugging!)
219
220 config BR2_STRIP_strip
221         bool "strip"
222         depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT
223         help
224           strip   is the normal strip command
225
226 config BR2_STRIP_sstrip
227         bool "sstrip"
228         select BR2_PACKAGE_SSTRIP_HOST
229         depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT
230         help
231           sstrip  is a strip that discards more than the normal strip
232
233 config BR2_STRIP_none
234         bool "none"
235         help
236           none    do not strip (only for debugging!)
237 endchoice
238
239 choice
240         prompt "gcc optimization level"
241         default BR2_OPTIMIZE_S
242         help
243           Set the optimization level for gcc
244
245 config BR2_OPTIMIZE_0
246         bool "optimization level 0"
247         help
248           Do not optimize. This is the default.
249
250 config BR2_OPTIMIZE_1
251         bool "optimization level 1"
252         help
253           Optimize. Optimizing compilation takes somewhat more time,
254           and a lot more memory for a large function. With -O, the
255           compiler tries to reduce code size and execution time,
256           without performing any optimizations that take a great deal
257           of compilation time. -O turns on the following optimization
258           flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
259           -fcprop-registers -floop-optimize -fif-conversion
260           -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
261           -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
262           -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
263           -O also turns on -fomit-frame-pointer on machines where doing
264           so does not interfere with debugging.
265
266 config BR2_OPTIMIZE_2
267         bool "optimization level 2"
268         help
269           Optimize even more. GCC performs nearly all supported optimizations
270           that do not involve a space-speed tradeoff. The compiler does not
271           perform loop unrolling or function inlining when you specify -O2.
272           As compared to -O, this option increases both compilation time and
273           the performance of the generated code. -O2 turns on all optimization
274           flags specified by -O. It also turns on the following optimization
275           flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
276           -fcse-follow-jumps -fcse-skip-blocks -fgcse  -fgcse-lm
277           -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
278           -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
279           -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
280           -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
281           -freorder-functions -falign-functions -falign-jumps -falign-loops
282           -falign-labels -ftree-vrp -ftree-pre
283           Please note the warning under -fgcse about invoking -O2 on programs
284           that use computed gotos.
285
286 config BR2_OPTIMIZE_3
287         bool "optimization level 3"
288         help
289           Optimize yet more. -O3 turns on all optimizations specified by -O2
290           and also turns on the -finline-functions, -funswitch-loops and
291           -fgcse-after-reload options.
292
293 config BR2_OPTIMIZE_S
294         bool "optimize for size"
295         help
296           Optimize for size. -Os enables all -O2 optimizations that do not
297           typically increase code size. It also performs further optimizations
298           designed to reduce code size. -Os disables the following optimization
299           flags: -falign-functions -falign-jumps -falign-loops -falign-labels
300           -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
301           -ftree-vect-loop-version
302
303 endchoice
304
305 config BR2_PREFER_STATIC_LIB
306         bool "prefer static libraries"
307         help
308           Where possible, build and use static libraries for the target.
309           This potentially increases your code size and should only be
310           used if you know what you do.
311           The default is to build dynamic libraries and use those on
312           the target filesystem.
313
314           WARNING: This is highly experimental at the moment.
315
316 config BR2_HAVE_DOCUMENTATION
317         bool "documentation on the target"
318         help
319           Install the documentation, including manual pages and info
320           pages, on the target.
321           If you say n here, your target will not contain any
322           documentation.
323
324 config BR2_HAVE_DEVFILES
325         bool "development files in target filesystem"
326         help
327           Install headers and static libraries in the
328           target filesystem
329
330 endmenu
331
332 source "toolchain/Config.in"
333
334 source "target/generic/Config.in"
335
336 source "package/Config.in"
337
338 source "fs/Config.in"
339
340 source "boot/Config.in"
341
342 source "linux/Config.in"