]>
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 | |
56c68bcd | 11 | option env="BR2_VERSION_FULL" |
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 | ||
15929265 TP |
18 | menu "Commands" |
19 | ||
2d523c23 | 20 | config BR2_WGET |
8e5fb3fb | 21 | string "Wget command" |
6871b165 | 22 | default "wget --passive-ftp -nd -t 3" |
2d523c23 | 23 | |
cf71111b MP |
24 | config BR2_SVN |
25 | string "Subversion (svn) command" | |
26 | default "svn" | |
e30cf26c | 27 | |
cf71111b MP |
28 | config BR2_BZR |
29 | string "Bazaar (bzr) command" | |
30 | default "bzr" | |
df03cdaf | 31 | |
85f54fbe | 32 | config BR2_GIT |
cf71111b MP |
33 | string "Git command" |
34 | default "git" | |
85f54fbe | 35 | |
859b9137 BRF |
36 | config BR2_ZCAT |
37 | string "zcat command" | |
a9612bfd | 38 | default "gzip -d -c" |
859b9137 BRF |
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. | |
a9612bfd BRF |
43 | Default is "gzip -d -c" |
44 | Other possible values include "gunzip -c" or "zcat". | |
6e2823c1 BRF |
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". | |
859b9137 | 55 | |
ce90aae1 BRF |
56 | config BR2_TAR_OPTIONS |
57 | string "Tar options" | |
7df4de6c BRF |
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. | |
ce90aae1 | 63 | |
15929265 TP |
64 | endmenu |
65 | ||
59a63a91 MF |
66 | config BR2_DL_DIR |
67 | string "Download dir" | |
be695dcc | 68 | default "$(TOPDIR)/dl" |
59a63a91 MF |
69 | help |
70 | Directory to store all the source files that we need to fetch. | |
67050e14 US |
71 | If the Linux shell environment has defined the BUILDROOT_DL_DIR |
72 | environment variable, then this overrides this configuration item. | |
59a63a91 | 73 | |
be695dcc | 74 | The default is $(TOPDIR)/dl |
4b0d5a80 | 75 | |
ba7c48f3 EA |
76 | config BR2_STAGING_DIR |
77 | string "Toolchain and header file location?" | |
3b2a803d | 78 | default "$(BASE_DIR)/staging" |
ba7c48f3 | 79 | help |
93ab6d30 BRF |
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. | |
ba7c48f3 | 85 | |
93ab6d30 | 86 | Most people will leave this set to the default value of |
3b2a803d | 87 | "$(BASE_DIR)/staging". |
ba7c48f3 | 88 | |
aa41d377 TP |
89 | source "target/device/Config.in.mirrors" |
90 | ||
8e5fb3fb EA |
91 | config BR2_JLEVEL |
92 | int "Number of jobs to run simultaneously" | |
2bbbe05b | 93 | default "2" |
8e5fb3fb | 94 | help |
93ab6d30 BRF |
95 | Number of jobs to run simultaneously |
96 | ||
7779fd74 | 97 | config BR2_DEPRECATED |
5e1f034b | 98 | bool "Show packages that are deprecated or obsolete" |
7779fd74 | 99 | help |
5e1f034b | 100 | This option hides outdated/obsolete versions of packages. |
ba7c48f3 | 101 | |
41f6b79f JV |
102 | config BR2_ENABLE_DEBUG |
103 | bool "build packages with debugging symbols" | |
809fa27a | 104 | select BR2_PACKAGE_GDB_SERVER |
41f6b79f JV |
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 | |
02a623dd PK |
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 | |
41f6b79f JV |
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 | |
02a623dd | 133 | Level 3 includes extra information, such as all the |
41f6b79f JV |
134 | macro definitions present in the program. Some debuggers |
135 | support macro expansion when you use -g3. | |
136 | endchoice | |
137 | endif | |
138 | ||
bbd251a0 BRF |
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" | |
b99fffde | 151 | depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT |
bbd251a0 BRF |
152 | help |
153 | strip is the normal strip command | |
85f54fbe | 154 | |
bbd251a0 BRF |
155 | config BR2_STRIP_sstrip |
156 | bool "sstrip" | |
157 | select BR2_PACKAGE_SSTRIP_HOST | |
378f8993 | 158 | depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT |
bbd251a0 BRF |
159 | help |
160 | sstrip is a strip that discards more than the normal strip | |
85f54fbe | 161 | |
bbd251a0 BRF |
162 | config BR2_STRIP_none |
163 | bool "none" | |
164 | help | |
165 | none do not strip (only for debugging!) | |
166 | endchoice | |
167 | ||
41f6b79f JV |
168 | choice |
169 | prompt "gcc optimization level" | |
7eb796ba | 170 | default BR2_OPTIMIZE_S |
923f42a3 | 171 | help |
41f6b79f JV |
172 | Set the optimization level for gcc |
173 | ||
174 | config BR2_OPTIMIZE_0 | |
175 | bool "optimization level 0" | |
176 | help | |
02a623dd | 177 | Do not optimize. This is the default. |
41f6b79f JV |
178 | |
179 | config BR2_OPTIMIZE_1 | |
180 | bool "optimization level 1" | |
181 | help | |
02a623dd PK |
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 | |
41f6b79f | 191 | -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants |
02a623dd | 192 | -O also turns on -fomit-frame-pointer on machines where doing |
41f6b79f JV |
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 | |
02a623dd PK |
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 | |
41f6b79f JV |
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 | |
02a623dd PK |
218 | Optimize yet more. -O3 turns on all optimizations specified by -O2 |
219 | and also turns on the -finline-functions, -funswitch-loops and | |
41f6b79f JV |
220 | -fgcse-after-reload options. |
221 | ||
222 | config BR2_OPTIMIZE_S | |
223 | bool "optimize for size" | |
224 | help | |
02a623dd | 225 | Optimize for size. -Os enables all -O2 optimizations that do not |
41f6b79f | 226 | typically increase code size. It also performs further optimizations |
02a623dd PK |
227 | designed to reduce code size. -Os disables the following optimization |
228 | flags: -falign-functions -falign-jumps -falign-loops -falign-labels | |
41f6b79f JV |
229 | -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays |
230 | -ftree-vect-loop-version | |
02a623dd | 231 | |
41f6b79f | 232 | endchoice |
923f42a3 | 233 | |
3096f34d BRF |
234 | config BR2_PREFER_STATIC_LIB |
235 | bool "prefer static libraries" | |
3096f34d | 236 | help |
ece6fe05 BRF |
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. | |
3096f34d BRF |
242 | |
243 | WARNING: This is highly experimental at the moment. | |
244 | ||
886b274a PK |
245 | config BR2_HAVE_DOCUMENTATION |
246 | bool "documentation on the target" | |
247 | help | |
b7030660 TP |
248 | Install the documentation, including manual pages and info |
249 | pages, on the target. | |
886b274a PK |
250 | If you say n here, your target will not contain any |
251 | documentation. | |
252 | ||
f5b96fc7 JV |
253 | config BR2_HAVE_DEVFILES |
254 | bool "development files in target filesystem" | |
bc67ca29 JV |
255 | help |
256 | Install headers and static libraries in the | |
257 | target filesystem | |
258 | ||
8e5fb3fb | 259 | endmenu |
2d523c23 | 260 | |
50100394 BRF |
261 | source "toolchain/Config.in" |
262 | ||
263 | source "package/Config.in" | |
264 | ||
05852415 TP |
265 | source "fs/Config.in" |
266 | ||
649b5b92 TP |
267 | source "boot/Config.in" |
268 | ||
487e21cf | 269 | source "linux/Config.in" |