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