]>
Commit | Line | Data |
---|---|---|
2d523c23 EA |
1 | # |
2 | ||
3 | mainmenu "Buildroot2 Configuration" | |
4 | ||
5 | config BR2_HAVE_DOT_CONFIG | |
6 | bool | |
7 | default y | |
8 | ||
f5b8cd4a BRF |
9 | config BR2_VERSION |
10 | string | |
291fedce | 11 | default "2010.05-git" |
f5b8cd4a | 12 | |
bb9e6a7d | 13 | source "target/Config.in.arch" |
4b0d5a80 | 14 | source "target/device/Config.in" |
7d8a59b4 | 15 | |
8e5fb3fb EA |
16 | menu "Build options" |
17 | ||
2d523c23 | 18 | config BR2_WGET |
8e5fb3fb | 19 | string "Wget command" |
fb1c67c1 | 20 | default "wget --passive-ftp -nd" |
2d523c23 | 21 | |
c76e2a97 | 22 | config BR2_SVN_CO |
85f54fbe | 23 | string "Subversion (svn) command to download source tree" |
229a7784 | 24 | default "svn co" |
e30cf26c | 25 | |
c76e2a97 BRF |
26 | config BR2_SVN_UP |
27 | string "Subversion (svn) command to update source tree" | |
28 | default "svn up" | |
29 | ||
df03cdaf SN |
30 | config BR2_BZR_CO |
31 | string "Bazaar (bzr) command to download source tree" | |
32 | default "bzr co" | |
33 | ||
34 | config BR2_BZR_UP | |
35 | string "Bazaar (bzr) command to update source tree" | |
36 | default "bzr up" | |
37 | ||
85f54fbe US |
38 | config BR2_GIT |
39 | string "Git command to download source tree" | |
40 | default "git clone" | |
41 | ||
859b9137 BRF |
42 | config BR2_ZCAT |
43 | string "zcat command" | |
a9612bfd | 44 | default "gzip -d -c" |
859b9137 BRF |
45 | help |
46 | Command to be used to extract a gzip'ed file to stdout. | |
47 | zcat is identical to gunzip -c except that the former may | |
48 | not be available on your system. | |
a9612bfd BRF |
49 | Default is "gzip -d -c" |
50 | Other possible values include "gunzip -c" or "zcat". | |
6e2823c1 BRF |
51 | |
52 | config BR2_BZCAT | |
53 | string "bzcat command" | |
54 | default "bzcat" | |
55 | help | |
56 | Command to be used to extract a bzip2'ed file to stdout. | |
57 | bzcat is identical to bunzip2 -c except that the former may | |
58 | not be available on your system. | |
59 | Default is "bzcat" | |
60 | Other possible values include "bunzip2 -c" or "bzip2 -d -c". | |
859b9137 | 61 | |
ce90aae1 BRF |
62 | config BR2_TAR_OPTIONS |
63 | string "Tar options" | |
7df4de6c BRF |
64 | default "" |
65 | help | |
66 | Options to pass to tar when extracting the sources. | |
67 | E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files | |
68 | and to be verbose. | |
ce90aae1 | 69 | |
59a63a91 MF |
70 | config BR2_DL_DIR |
71 | string "Download dir" | |
be695dcc | 72 | default "$(TOPDIR)/dl" |
59a63a91 MF |
73 | help |
74 | Directory to store all the source files that we need to fetch. | |
67050e14 US |
75 | If the Linux shell environment has defined the BUILDROOT_DL_DIR |
76 | environment variable, then this overrides this configuration item. | |
59a63a91 | 77 | |
be695dcc | 78 | The default is $(TOPDIR)/dl |
4b0d5a80 | 79 | |
0dbf9dd7 US |
80 | config BR2_COPYTO |
81 | string "Copy result to..." | |
82 | default "" | |
83 | help | |
84 | Setting this variable will (eventually) override | |
85 | any other copyto configurations in buildroot. | |
86 | ||
bb9e6a7d | 87 | source "target/device/Config.in.mirrors" |
98a7a4c9 | 88 | |
ba7c48f3 EA |
89 | config BR2_STAGING_DIR |
90 | string "Toolchain and header file location?" | |
3b2a803d | 91 | default "$(BASE_DIR)/staging" |
ba7c48f3 | 92 | help |
93ab6d30 BRF |
93 | This is the location where the toolchain will be installed. The |
94 | toolchain will not work if it is moved from this location. | |
95 | Therefore, if you wish to package up a uClibc toolchain, it is | |
96 | important that is is set to the final location where the toolchain | |
97 | will be used. | |
ba7c48f3 | 98 | |
93ab6d30 | 99 | Most people will leave this set to the default value of |
3b2a803d | 100 | "$(BASE_DIR)/staging". |
ba7c48f3 | 101 | |
70ea98ef MF |
102 | config BR2_GNU_BUILD_SUFFIX |
103 | string "GNU build hostname suffix" | |
104 | default "pc-linux-gnu" | |
105 | help | |
93ab6d30 BRF |
106 | The string used to pass to configure scripts via the |
107 | --build= option. Just specify the suffix here, the leading | |
108 | arch will be filled in automatically. | |
70ea98ef | 109 | |
93ab6d30 | 110 | Here's some copy and paste build host options for you: |
70ea98ef MF |
111 | linux: pc-linux-gnu |
112 | cygwin: pc-cygwin | |
113 | os x: apple-darwin7 / apple-darwin8 | |
114 | ||
d56e2b34 PM |
115 | config BR2_GNU_TARGET_SUFFIX |
116 | string "GNU target suffix" | |
61aa805b | 117 | default "linux-uclibcgnueabi" if BR2_ARM_EABI |
d56e2b34 PM |
118 | default "linux-uclibc" |
119 | help | |
93ab6d30 BRF |
120 | The string used to pass to configure scripts via the |
121 | --target= option. Just specify the suffix here, the leading | |
122 | arch will be filled in automatically. | |
d56e2b34 | 123 | |
93ab6d30 BRF |
124 | Most users will want to stick with the default setting, though |
125 | other users (most notably ARM EABI) like to add on to this in | |
126 | order to stay in line with gcc conventions. | |
d56e2b34 | 127 | |
93ab6d30 | 128 | Default options are: |
c3c100b6 BRF |
129 | linux-uclibcgnueabi for ARM EABI |
130 | linux-uclibc for the rest | |
0c16c17f | 131 | gnuhurd-uclibc for the hurd |
c3c100b6 | 132 | |
8e5fb3fb EA |
133 | config BR2_JLEVEL |
134 | int "Number of jobs to run simultaneously" | |
2bbbe05b | 135 | default "2" |
8e5fb3fb | 136 | help |
93ab6d30 BRF |
137 | Number of jobs to run simultaneously |
138 | ||
7779fd74 | 139 | config BR2_DEPRECATED |
5e1f034b | 140 | bool "Show packages that are deprecated or obsolete" |
7779fd74 | 141 | help |
5e1f034b | 142 | This option hides outdated/obsolete versions of packages. |
ba7c48f3 | 143 | |
cfeb86e2 US |
144 | config BR2_RECENT |
145 | bool "Show packages that are of the latest major version" | |
146 | default y | |
147 | help | |
148 | This option show recent versions of packages. | |
149 | ||
5432f26f DL |
150 | config BR2_CONFIG_CACHE |
151 | bool "Use a central configure cache file" | |
c45cd1fd | 152 | default y |
5432f26f DL |
153 | help |
154 | This determines if a central config cache is used by | |
155 | packages, reducing the configure time for packages as each | |
156 | one caches its findings. | |
157 | ||
41f6b79f JV |
158 | config BR2_ENABLE_DEBUG |
159 | bool "build packages with debugging symbols" | |
809fa27a | 160 | select BR2_PACKAGE_GDB_SERVER |
41f6b79f JV |
161 | help |
162 | Build packages with debugging symbols | |
163 | enabled | |
164 | ||
165 | if BR2_ENABLE_DEBUG | |
166 | choice | |
167 | prompt "gcc debug level" | |
168 | default BR2_DEBUG_2 | |
169 | help | |
170 | Set the debug level for gcc | |
171 | ||
172 | config BR2_DEBUG_1 | |
173 | bool "debug level 1" | |
174 | help | |
02a623dd PK |
175 | Debug level 1 produces minimal information, enough |
176 | for making backtraces in parts of the program that | |
177 | you don't plan to debug. This includes descriptions | |
41f6b79f JV |
178 | of functions and external variables, but no information |
179 | about local variables and no line numbers. | |
180 | ||
181 | config BR2_DEBUG_2 | |
182 | bool "debug level 2" | |
183 | help | |
184 | The default gcc debug level is 2 | |
185 | ||
186 | config BR2_DEBUG_3 | |
187 | bool "debug level 3" | |
188 | help | |
02a623dd | 189 | Level 3 includes extra information, such as all the |
41f6b79f JV |
190 | macro definitions present in the program. Some debuggers |
191 | support macro expansion when you use -g3. | |
192 | endchoice | |
193 | endif | |
194 | ||
bbd251a0 BRF |
195 | choice |
196 | prompt "strip" | |
197 | default BR2_STRIP_strip | |
198 | help | |
199 | Select whether to strip binaries and libraries for the target | |
200 | or not. | |
201 | strip is the normal strip command | |
202 | sstrip is a strip that discards more than the normal strip | |
203 | none do not strip (only for debugging!) | |
204 | ||
205 | config BR2_STRIP_strip | |
206 | bool "strip" | |
b99fffde | 207 | depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT |
bbd251a0 BRF |
208 | help |
209 | strip is the normal strip command | |
85f54fbe | 210 | |
bbd251a0 BRF |
211 | config BR2_STRIP_sstrip |
212 | bool "sstrip" | |
213 | select BR2_PACKAGE_SSTRIP_HOST | |
378f8993 | 214 | depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT |
bbd251a0 BRF |
215 | help |
216 | sstrip is a strip that discards more than the normal strip | |
85f54fbe | 217 | |
bbd251a0 BRF |
218 | config BR2_STRIP_none |
219 | bool "none" | |
220 | help | |
221 | none do not strip (only for debugging!) | |
222 | endchoice | |
223 | ||
41f6b79f JV |
224 | choice |
225 | prompt "gcc optimization level" | |
7eb796ba | 226 | default BR2_OPTIMIZE_S |
923f42a3 | 227 | help |
41f6b79f JV |
228 | Set the optimization level for gcc |
229 | ||
230 | config BR2_OPTIMIZE_0 | |
231 | bool "optimization level 0" | |
0bd3ec26 | 232 | depends on !BR2_PACKAGE_LINUX |
41f6b79f | 233 | help |
02a623dd | 234 | Do not optimize. This is the default. |
41f6b79f JV |
235 | |
236 | config BR2_OPTIMIZE_1 | |
237 | bool "optimization level 1" | |
0bd3ec26 | 238 | depends on !BR2_PACKAGE_LINUX |
41f6b79f | 239 | help |
02a623dd PK |
240 | Optimize. Optimizing compilation takes somewhat more time, |
241 | and a lot more memory for a large function. With -O, the | |
242 | compiler tries to reduce code size and execution time, | |
243 | without performing any optimizations that take a great deal | |
244 | of compilation time. -O turns on the following optimization | |
245 | flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability | |
246 | -fcprop-registers -floop-optimize -fif-conversion | |
247 | -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts | |
248 | -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename | |
41f6b79f | 249 | -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants |
02a623dd | 250 | -O also turns on -fomit-frame-pointer on machines where doing |
41f6b79f JV |
251 | so does not interfere with debugging. |
252 | ||
253 | config BR2_OPTIMIZE_2 | |
254 | bool "optimization level 2" | |
255 | help | |
256 | Optimize even more. GCC performs nearly all supported optimizations | |
02a623dd PK |
257 | that do not involve a space-speed tradeoff. The compiler does not |
258 | perform loop unrolling or function inlining when you specify -O2. | |
259 | As compared to -O, this option increases both compilation time and | |
260 | the performance of the generated code. -O2 turns on all optimization | |
261 | flags specified by -O. It also turns on the following optimization | |
262 | flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls | |
263 | -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm | |
264 | -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop | |
265 | -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns | |
266 | -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove | |
267 | -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks | |
268 | -freorder-functions -falign-functions -falign-jumps -falign-loops | |
41f6b79f JV |
269 | -falign-labels -ftree-vrp -ftree-pre |
270 | Please note the warning under -fgcse about invoking -O2 on programs | |
271 | that use computed gotos. | |
272 | ||
273 | config BR2_OPTIMIZE_3 | |
274 | bool "optimization level 3" | |
275 | help | |
02a623dd PK |
276 | Optimize yet more. -O3 turns on all optimizations specified by -O2 |
277 | and also turns on the -finline-functions, -funswitch-loops and | |
41f6b79f JV |
278 | -fgcse-after-reload options. |
279 | ||
280 | config BR2_OPTIMIZE_S | |
281 | bool "optimize for size" | |
282 | help | |
02a623dd | 283 | Optimize for size. -Os enables all -O2 optimizations that do not |
41f6b79f | 284 | typically increase code size. It also performs further optimizations |
02a623dd PK |
285 | designed to reduce code size. -Os disables the following optimization |
286 | flags: -falign-functions -falign-jumps -falign-loops -falign-labels | |
41f6b79f JV |
287 | -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays |
288 | -ftree-vect-loop-version | |
02a623dd | 289 | |
41f6b79f | 290 | endchoice |
923f42a3 | 291 | |
3096f34d BRF |
292 | config BR2_PREFER_STATIC_LIB |
293 | bool "prefer static libraries" | |
3096f34d | 294 | help |
ece6fe05 BRF |
295 | Where possible, build and use static libraries for the target. |
296 | This potentially increases your code size and should only be | |
297 | used if you know what you do. | |
298 | The default is to build dynamic libraries and use those on | |
299 | the target filesystem. | |
3096f34d BRF |
300 | |
301 | WARNING: This is highly experimental at the moment. | |
302 | ||
886b274a PK |
303 | config BR2_HAVE_DOCUMENTATION |
304 | bool "documentation on the target" | |
305 | help | |
b7030660 TP |
306 | Install the documentation, including manual pages and info |
307 | pages, on the target. | |
886b274a PK |
308 | If you say n here, your target will not contain any |
309 | documentation. | |
310 | ||
f5b96fc7 JV |
311 | config BR2_HAVE_DEVFILES |
312 | bool "development files in target filesystem" | |
bc67ca29 JV |
313 | help |
314 | Install headers and static libraries in the | |
315 | target filesystem | |
316 | ||
8e5fb3fb | 317 | endmenu |
2d523c23 | 318 | |
50100394 BRF |
319 | source "toolchain/Config.in" |
320 | ||
321 | source "package/Config.in" | |
322 | ||
05852415 TP |
323 | source "fs/Config.in" |
324 | ||
50100394 | 325 | source "target/Config.in" |