]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - Config.in
Makefile: move version string from Config.in into Makefile
[coffee/buildroot.git] / Config.in
1 #
2
3 mainmenu "Buildroot2 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"
12
13 source "target/Config.in.arch"
14 source "target/device/Config.in"
15
16 menu "Build options"
17
18 menu "Commands"
19
20 config BR2_WGET
21         string "Wget command"
22         default "wget --passive-ftp -nd"
23
24 config BR2_SVN
25         string "Subversion (svn) command"
26         default "svn"
27
28 config BR2_BZR
29         string "Bazaar (bzr) command"
30         default "bzr"
31
32 config BR2_GIT
33         string "Git command"
34         default "git"
35
36 config BR2_ZCAT
37         string "zcat command"
38         default "gzip -d -c"
39         help
40           Command to be used to extract a gzip'ed file to stdout.
41           zcat is identical to gunzip -c except that the former may
42           not be available on your system.
43           Default is "gzip -d -c"
44           Other possible values include "gunzip -c" or "zcat".
45
46 config BR2_BZCAT
47         string "bzcat command"
48         default "bzcat"
49         help
50           Command to be used to extract a bzip2'ed file to stdout.
51           bzcat is identical to bunzip2 -c except that the former may
52           not be available on your system.
53           Default is "bzcat"
54           Other possible values include "bunzip2 -c" or "bzip2 -d -c".
55
56 config BR2_TAR_OPTIONS
57         string "Tar options"
58         default ""
59         help
60           Options to pass to tar when extracting the sources.
61           E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
62           and to be verbose.
63
64 endmenu
65
66 config BR2_DL_DIR
67         string "Download dir"
68         default "$(TOPDIR)/dl"
69         help
70           Directory to store all the source files that we need to fetch.
71           If the Linux shell environment has defined the BUILDROOT_DL_DIR
72           environment variable, then this overrides this configuration item.
73
74           The default is $(TOPDIR)/dl
75
76 config BR2_STAGING_DIR
77         string "Toolchain and header file location?"
78         default "$(BASE_DIR)/staging"
79         help
80           This is the location where the toolchain will be installed.  The
81           toolchain will not work if it is moved from this location.
82           Therefore, if you wish to package up a uClibc toolchain, it is
83           important that is is set to the final location where the toolchain
84           will be used.
85
86           Most people will leave this set to the default value of
87           "$(BASE_DIR)/staging".
88
89 source  "target/device/Config.in.mirrors"
90
91 config BR2_JLEVEL
92         int "Number of jobs to run simultaneously"
93         default "2"
94         help
95           Number of jobs to run simultaneously
96
97 config BR2_DEPRECATED
98         bool "Show packages that are deprecated or obsolete"
99         help
100           This option hides outdated/obsolete versions of packages.
101
102 config BR2_ENABLE_DEBUG
103         bool "build packages with debugging symbols"
104         select BR2_PACKAGE_GDB_SERVER
105         help
106           Build packages with debugging symbols
107           enabled
108
109 if BR2_ENABLE_DEBUG
110 choice
111         prompt "gcc debug level"
112         default BR2_DEBUG_2
113         help
114           Set the debug level for gcc
115
116 config BR2_DEBUG_1
117         bool "debug level 1"
118         help
119           Debug level 1 produces minimal information, enough
120           for making backtraces in parts of the program that
121           you don't plan to debug. This includes descriptions
122           of functions and external variables, but no information
123           about local variables and no line numbers.
124
125 config BR2_DEBUG_2
126         bool "debug level 2"
127         help
128           The default gcc debug level is 2
129
130 config BR2_DEBUG_3
131         bool "debug level 3"
132         help
133           Level 3 includes extra information, such as all the
134           macro definitions present in the program. Some debuggers
135           support macro expansion when you use -g3.
136 endchoice
137 endif
138
139 choice
140         prompt "strip"
141         default BR2_STRIP_strip
142         help
143           Select whether to strip binaries and libraries for the target
144           or not.
145           strip   is the normal strip command
146           sstrip  is a strip that discards more than the normal strip
147           none    do not strip (only for debugging!)
148
149 config BR2_STRIP_strip
150         bool "strip"
151         depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT
152         help
153           strip   is the normal strip command
154
155 config BR2_STRIP_sstrip
156         bool "sstrip"
157         select BR2_PACKAGE_SSTRIP_HOST
158         depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT
159         help
160           sstrip  is a strip that discards more than the normal strip
161
162 config BR2_STRIP_none
163         bool "none"
164         help
165           none    do not strip (only for debugging!)
166 endchoice
167
168 choice
169         prompt "gcc optimization level"
170         default BR2_OPTIMIZE_S
171         help
172           Set the optimization level for gcc
173
174 config BR2_OPTIMIZE_0
175         bool "optimization level 0"
176         help
177           Do not optimize. This is the default.
178
179 config BR2_OPTIMIZE_1
180         bool "optimization level 1"
181         help
182           Optimize. Optimizing compilation takes somewhat more time,
183           and a lot more memory for a large function. With -O, the
184           compiler tries to reduce code size and execution time,
185           without performing any optimizations that take a great deal
186           of compilation time. -O turns on the following optimization
187           flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
188           -fcprop-registers -floop-optimize -fif-conversion
189           -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
190           -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
191           -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
192           -O also turns on -fomit-frame-pointer on machines where doing
193           so does not interfere with debugging.
194
195 config BR2_OPTIMIZE_2
196         bool "optimization level 2"
197         help
198           Optimize even more. GCC performs nearly all supported optimizations
199           that do not involve a space-speed tradeoff. The compiler does not
200           perform loop unrolling or function inlining when you specify -O2.
201           As compared to -O, this option increases both compilation time and
202           the performance of the generated code. -O2 turns on all optimization
203           flags specified by -O. It also turns on the following optimization
204           flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
205           -fcse-follow-jumps -fcse-skip-blocks -fgcse  -fgcse-lm
206           -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
207           -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
208           -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
209           -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
210           -freorder-functions -falign-functions -falign-jumps -falign-loops
211           -falign-labels -ftree-vrp -ftree-pre
212           Please note the warning under -fgcse about invoking -O2 on programs
213           that use computed gotos.
214
215 config BR2_OPTIMIZE_3
216         bool "optimization level 3"
217         help
218           Optimize yet more. -O3 turns on all optimizations specified by -O2
219           and also turns on the -finline-functions, -funswitch-loops and
220           -fgcse-after-reload options.
221
222 config BR2_OPTIMIZE_S
223         bool "optimize for size"
224         help
225           Optimize for size. -Os enables all -O2 optimizations that do not
226           typically increase code size. It also performs further optimizations
227           designed to reduce code size. -Os disables the following optimization
228           flags: -falign-functions -falign-jumps -falign-loops -falign-labels
229           -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
230           -ftree-vect-loop-version
231
232 endchoice
233
234 config BR2_PREFER_STATIC_LIB
235         bool "prefer static libraries"
236         help
237           Where possible, build and use static libraries for the target.
238           This potentially increases your code size and should only be
239           used if you know what you do.
240           The default is to build dynamic libraries and use those on
241           the target filesystem.
242
243           WARNING: This is highly experimental at the moment.
244
245 config BR2_HAVE_DOCUMENTATION
246         bool "documentation on the target"
247         help
248           Install the documentation, including manual pages and info
249           pages, on the target.
250           If you say n here, your target will not contain any
251           documentation.
252
253 config BR2_HAVE_DEVFILES
254         bool "development files in target filesystem"
255         help
256           Install headers and static libraries in the
257           target filesystem
258
259 menu "Advanced"
260
261 config BR2_CONFIG_CACHE
262         bool "Use a central configure cache file (EXPERIMENTAL)"
263         help
264           Notice: This is experimental and known to break with certain
265           package combinations.
266
267           This determines if a central config cache is used by
268           packages, reducing the configure time for packages as each
269           one caches its findings.
270
271 endmenu
272
273 endmenu
274
275 source "toolchain/Config.in"
276
277 source "package/Config.in"
278
279 source "fs/Config.in"
280
281 source "boot/Config.in"
282
283 source "linux/Config.in"