Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 1 | # |
| 2 | |
Peter Korsgaard | 6a53b72 | 2011-02-02 14:53:23 +0100 | [diff] [blame] | 3 | mainmenu "Buildroot $BR2_VERSION Configuration" |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 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 |
Yann E. MORIN | 56c68bc | 2010-10-31 17:35:14 +0100 | [diff] [blame] | 11 | option env="BR2_VERSION_FULL" |
Bernhard Reutner-Fischer | f5b8cd4 | 2007-09-25 11:37:31 +0000 | [diff] [blame] | 12 | |
Francois Perrad | 1d4104f | 2012-07-18 15:59:09 +0200 | [diff] [blame] | 13 | config BR2_HOSTARCH |
| 14 | string |
| 15 | option env="HOSTARCH" |
| 16 | |
Bernhard Reutner-Fischer | bb9e6a7 | 2007-09-28 21:54:36 +0000 | [diff] [blame] | 17 | source "target/Config.in.arch" |
Bernhard Reutner-Fischer | 7d8a59b | 2007-07-08 16:28:54 +0000 | [diff] [blame] | 18 | |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 19 | menu "Build options" |
| 20 | |
Thomas Petazzoni | 1592926 | 2010-04-10 22:55:01 +0200 | [diff] [blame] | 21 | menu "Commands" |
| 22 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 23 | config BR2_WGET |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 24 | string "Wget command" |
Peter Korsgaard | 6871b16 | 2010-11-04 19:16:43 +0100 | [diff] [blame] | 25 | default "wget --passive-ftp -nd -t 3" |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 26 | |
Maxime Petazzoni | cf71111 | 2010-09-02 12:09:45 +0200 | [diff] [blame] | 27 | config BR2_SVN |
| 28 | string "Subversion (svn) command" |
| 29 | default "svn" |
Eric Andersen | e30cf26 | 2005-01-23 11:20:30 +0000 | [diff] [blame] | 30 | |
Maxime Petazzoni | cf71111 | 2010-09-02 12:09:45 +0200 | [diff] [blame] | 31 | config BR2_BZR |
| 32 | string "Bazaar (bzr) command" |
| 33 | default "bzr" |
Sven Neumann | df03cda | 2009-08-07 11:57:54 +0200 | [diff] [blame] | 34 | |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 35 | config BR2_GIT |
Maxime Petazzoni | cf71111 | 2010-09-02 12:09:45 +0200 | [diff] [blame] | 36 | string "Git command" |
| 37 | default "git" |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 38 | |
David Wagner | 2690e76 | 2011-09-29 21:57:46 +0200 | [diff] [blame] | 39 | config BR2_LOCALFILES |
| 40 | string "Local files retrieval command" |
| 41 | default "cp" |
| 42 | |
Thomas De Schampheleire | c61788f | 2011-10-19 09:25:40 +0200 | [diff] [blame] | 43 | config BR2_SCP |
| 44 | string "Secure copy (scp) command" |
| 45 | default "scp" |
| 46 | |
| 47 | config BR2_SSH |
| 48 | string "Secure shell (ssh) command" |
| 49 | default "ssh" |
| 50 | |
Thomas De Schampheleire | f694c07 | 2011-10-19 09:25:47 +0200 | [diff] [blame] | 51 | config BR2_HG |
| 52 | string "Mercurial (hg) command" |
| 53 | default "hg" |
| 54 | |
Bernhard Reutner-Fischer | 859b913 | 2006-10-01 15:07:45 +0000 | [diff] [blame] | 55 | config BR2_ZCAT |
| 56 | string "zcat command" |
Bernhard Reutner-Fischer | a9612bf | 2007-03-09 08:26:10 +0000 | [diff] [blame] | 57 | default "gzip -d -c" |
Bernhard Reutner-Fischer | 859b913 | 2006-10-01 15:07:45 +0000 | [diff] [blame] | 58 | help |
| 59 | Command to be used to extract a gzip'ed file to stdout. |
| 60 | zcat is identical to gunzip -c except that the former may |
| 61 | not be available on your system. |
Bernhard Reutner-Fischer | a9612bf | 2007-03-09 08:26:10 +0000 | [diff] [blame] | 62 | Default is "gzip -d -c" |
| 63 | Other possible values include "gunzip -c" or "zcat". |
Bernhard Reutner-Fischer | 6e2823c | 2006-11-17 15:43:51 +0000 | [diff] [blame] | 64 | |
| 65 | config BR2_BZCAT |
| 66 | string "bzcat command" |
| 67 | default "bzcat" |
| 68 | help |
| 69 | Command to be used to extract a bzip2'ed file to stdout. |
| 70 | bzcat is identical to bunzip2 -c except that the former may |
| 71 | not be available on your system. |
| 72 | Default is "bzcat" |
| 73 | Other possible values include "bunzip2 -c" or "bzip2 -d -c". |
Bernhard Reutner-Fischer | 859b913 | 2006-10-01 15:07:45 +0000 | [diff] [blame] | 74 | |
Allan W. Nielsen | 177b4b4 | 2011-05-10 08:17:05 +0200 | [diff] [blame] | 75 | config BR2_XZCAT |
| 76 | string "xzcat command" |
| 77 | default "xzcat" |
| 78 | help |
| 79 | Command to be used to extract a xz'ed file to stdout. |
| 80 | Default is "xzcat" |
| 81 | |
Bernhard Reutner-Fischer | ce90aae | 2005-12-10 14:59:02 +0000 | [diff] [blame] | 82 | config BR2_TAR_OPTIONS |
| 83 | string "Tar options" |
Bernhard Reutner-Fischer | 7df4de6 | 2005-12-10 15:36:43 +0000 | [diff] [blame] | 84 | default "" |
| 85 | help |
| 86 | Options to pass to tar when extracting the sources. |
| 87 | E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files |
| 88 | and to be verbose. |
Bernhard Reutner-Fischer | ce90aae | 2005-12-10 14:59:02 +0000 | [diff] [blame] | 89 | |
Thomas Petazzoni | 1592926 | 2010-04-10 22:55:01 +0200 | [diff] [blame] | 90 | endmenu |
| 91 | |
Mike Frysinger | 59a63a9 | 2005-10-01 00:35:24 +0000 | [diff] [blame] | 92 | config BR2_DL_DIR |
| 93 | string "Download dir" |
H Hartley Sweeten | be695dc | 2009-09-23 08:46:52 +0200 | [diff] [blame] | 94 | default "$(TOPDIR)/dl" |
Mike Frysinger | 59a63a9 | 2005-10-01 00:35:24 +0000 | [diff] [blame] | 95 | help |
| 96 | Directory to store all the source files that we need to fetch. |
Ulf Samuelsson | 67050e1 | 2007-08-21 01:28:12 +0000 | [diff] [blame] | 97 | If the Linux shell environment has defined the BUILDROOT_DL_DIR |
| 98 | environment variable, then this overrides this configuration item. |
Mike Frysinger | 59a63a9 | 2005-10-01 00:35:24 +0000 | [diff] [blame] | 99 | |
H Hartley Sweeten | be695dc | 2009-09-23 08:46:52 +0200 | [diff] [blame] | 100 | The default is $(TOPDIR)/dl |
Bernhard Reutner-Fischer | 4b0d5a8 | 2007-09-26 21:12:38 +0000 | [diff] [blame] | 101 | |
Gustavo Zacarias | a2b4f7f | 2011-02-02 10:05:56 -0300 | [diff] [blame] | 102 | config BR2_HOST_DIR |
| 103 | string "Host dir" |
| 104 | default "$(BASE_DIR)/host" |
| 105 | help |
| 106 | Directory to store all the binary files that are built for the host. |
| 107 | This includes the cross compilation toolchain when building the |
| 108 | internal buildroot toolchain. |
| 109 | |
| 110 | The default is $(BASE_DIR)/host |
| 111 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 112 | menu "Mirrors and Download locations" |
| 113 | |
| 114 | config BR2_PRIMARY_SITE |
| 115 | string "Primary download site" |
| 116 | default "" |
| 117 | help |
| 118 | Primary site to download from. If this option is set then buildroot |
| 119 | will try to download package source first from this site and try the |
| 120 | default if the file is not found. |
Thomas De Schampheleire | c61788f | 2011-10-19 09:25:40 +0200 | [diff] [blame] | 121 | Valid URIs are URIs recognized by $(WGET) and scp URIs of the form |
| 122 | scp://[user@]host:path. |
| 123 | NOTE: This works for all packages using the central package |
| 124 | infrastructure (generic, autotools, cmake, ...) |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 125 | |
Thomas De Schampheleire | 5a83e08 | 2012-06-22 07:37:03 +0200 | [diff] [blame] | 126 | config BR2_PRIMARY_SITE_ONLY |
| 127 | bool "Only allow downloads from primary download site" |
| 128 | depends on BR2_PRIMARY_SITE != "" |
| 129 | help |
| 130 | If this option is enabled, downloads will only be attempted |
| 131 | from the primary download site. Other locations, like the |
| 132 | package's official download location or the backup download |
| 133 | site, will not be considered. Therefore, if the package is |
| 134 | not present on the primary site, the download fails. |
| 135 | |
| 136 | This is useful for project developers who want to ensure |
| 137 | that the project can be built even if the upstream tarball |
| 138 | locations disappear. |
| 139 | |
| 140 | if !BR2_PRIMARY_SITE_ONLY |
| 141 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 142 | config BR2_BACKUP_SITE |
| 143 | string "Backup download site" |
| 144 | default "http://sources.buildroot.net/" |
| 145 | help |
| 146 | Backup site to download from. If this option is set then buildroot |
| 147 | will fall back to download package sources from here if the |
| 148 | normal location fails. |
| 149 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 150 | config BR2_KERNEL_MIRROR |
| 151 | string "Kernel.org mirror" |
| 152 | default "http://www.kernel.org/pub/" |
| 153 | help |
| 154 | kernel.org is mirrored on a number of servers around the world. |
| 155 | The following allows you to select your preferred mirror. |
| 156 | |
| 157 | Have a look on the kernel.org site for a list of mirrors, then enter |
| 158 | the URL to the base directory. Examples: |
| 159 | |
| 160 | http://www.XX.kernel.org/pub (XX = country code) |
| 161 | http://mirror.aarnet.edu.au/pub/ftp.kernel.org |
| 162 | |
| 163 | config BR2_GNU_MIRROR |
| 164 | string "GNU Software mirror" |
| 165 | default "http://ftp.gnu.org/pub/gnu" |
| 166 | help |
| 167 | GNU has multiple software mirrors scattered around the world. |
| 168 | The following allows you to select your preferred mirror. |
| 169 | |
| 170 | Have a look on the gnu.org site for a list of mirrors, then enter |
| 171 | the URL to the base directory. Examples: |
| 172 | |
| 173 | http://ftp.gnu.org/pub/gnu |
| 174 | http://mirror.aarnet.edu.au/pub/gnu |
| 175 | |
| 176 | config BR2_DEBIAN_MIRROR |
| 177 | string "Debian Software mirror" |
| 178 | default "http://ftp.debian.org" |
| 179 | help |
| 180 | Debian has multiple software mirrors scattered around the world. |
| 181 | The following allows you to select your preferred mirror. |
| 182 | |
| 183 | Usually, just add your country code like XX here: |
| 184 | http://ftp.XX.debian.org |
| 185 | |
Thomas De Schampheleire | 5a83e08 | 2012-06-22 07:37:03 +0200 | [diff] [blame] | 186 | endif |
| 187 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 188 | endmenu |
Thomas Petazzoni | aa41d37 | 2010-04-10 22:55:38 +0200 | [diff] [blame] | 189 | |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 190 | config BR2_JLEVEL |
Nathan Lynch | 5016aa0 | 2012-06-16 09:37:17 +0000 | [diff] [blame] | 191 | int "Number of jobs to run simultaneously (0 for auto)" |
| 192 | default "0" |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 193 | help |
Nathan Lynch | 5016aa0 | 2012-06-16 09:37:17 +0000 | [diff] [blame] | 194 | Number of jobs to run simultaneously. If 0, determine |
| 195 | automatically according to number of CPUs on the host |
| 196 | system. |
Bernhard Reutner-Fischer | 93ab6d3 | 2007-01-28 12:03:58 +0000 | [diff] [blame] | 197 | |
Thomas Petazzoni | 17b66af | 2010-12-07 21:09:56 +0100 | [diff] [blame] | 198 | config BR2_CCACHE |
| 199 | bool "Enable compiler cache" |
| 200 | help |
| 201 | This option will enable the use of ccache, a compiler |
| 202 | cache. It will cache the result of previous builds to speed |
| 203 | up future builds. The cache is stored in |
| 204 | $HOME/.buildroot-ccache. |
| 205 | |
Thomas Petazzoni | f044e03 | 2012-03-07 20:26:50 +0100 | [diff] [blame] | 206 | Note that Buildroot does not try to invalidate the cache |
| 207 | contents when the compiler changes in an incompatible |
| 208 | way. Therefore, if you make a change to the compiler version |
| 209 | and/or configuration, you are responsible for purging the |
| 210 | ccache cache by removing the $HOME/.buildroot-ccache |
| 211 | directory. |
| 212 | |
Thomas De Schampheleire | 4332907 | 2012-05-16 21:39:28 +0200 | [diff] [blame] | 213 | config BR2_CCACHE_DIR |
| 214 | string "Compiler cache location" |
| 215 | depends on BR2_CCACHE |
| 216 | default "$(HOME)/.buildroot-ccache" |
| 217 | help |
| 218 | Where ccache should store cached files. |
| 219 | |
Bernhard Reutner-Fischer | 7779fd7 | 2007-02-09 13:31:55 +0000 | [diff] [blame] | 220 | config BR2_DEPRECATED |
Bernhard Reutner-Fischer | 5e1f034 | 2007-02-09 13:35:41 +0000 | [diff] [blame] | 221 | bool "Show packages that are deprecated or obsolete" |
Bernhard Reutner-Fischer | 7779fd7 | 2007-02-09 13:31:55 +0000 | [diff] [blame] | 222 | help |
Bernhard Reutner-Fischer | 5e1f034 | 2007-02-09 13:35:41 +0000 | [diff] [blame] | 223 | This option hides outdated/obsolete versions of packages. |
Eric Andersen | ba7c48f | 2004-12-11 10:25:40 +0000 | [diff] [blame] | 224 | |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 225 | config BR2_ENABLE_DEBUG |
| 226 | bool "build packages with debugging symbols" |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 227 | help |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 228 | Build packages with debugging symbols enabled. All libraries |
| 229 | and binaries in the 'staging' directory will have debugging |
| 230 | symbols, which allows remote debugging even if libraries and |
| 231 | binaries are stripped on the target. Whether libraries and |
| 232 | binaries are stripped on the target is controlled by the |
| 233 | BR2_STRIP_* options below. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 234 | |
| 235 | if BR2_ENABLE_DEBUG |
| 236 | choice |
| 237 | prompt "gcc debug level" |
| 238 | default BR2_DEBUG_2 |
| 239 | help |
| 240 | Set the debug level for gcc |
| 241 | |
| 242 | config BR2_DEBUG_1 |
| 243 | bool "debug level 1" |
| 244 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 245 | Debug level 1 produces minimal information, enough |
| 246 | for making backtraces in parts of the program that |
| 247 | you don't plan to debug. This includes descriptions |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 248 | of functions and external variables, but no information |
| 249 | about local variables and no line numbers. |
| 250 | |
| 251 | config BR2_DEBUG_2 |
| 252 | bool "debug level 2" |
| 253 | help |
| 254 | The default gcc debug level is 2 |
| 255 | |
| 256 | config BR2_DEBUG_3 |
| 257 | bool "debug level 3" |
| 258 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 259 | Level 3 includes extra information, such as all the |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 260 | macro definitions present in the program. Some debuggers |
| 261 | support macro expansion when you use -g3. |
| 262 | endchoice |
| 263 | endif |
| 264 | |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 265 | choice |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 266 | prompt "strip command for binaries on target" |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 267 | default BR2_STRIP_strip |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 268 | |
| 269 | config BR2_STRIP_strip |
| 270 | bool "strip" |
Mike Frysinger | febe322 | 2011-02-07 00:49:10 -0500 | [diff] [blame] | 271 | depends on !BR2_ELF2FLT |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 272 | help |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 273 | Binaries and libraries in the target filesystem will be |
| 274 | stripped using the normal 'strip' command. This allows to |
| 275 | save space, mainly by removing debugging symbols. Debugging |
| 276 | symbols on the target are needed for native debugging, but |
| 277 | not when remote debugging is used. |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 278 | |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 279 | config BR2_STRIP_sstrip |
| 280 | bool "sstrip" |
| 281 | select BR2_PACKAGE_SSTRIP_HOST |
Mike Frysinger | febe322 | 2011-02-07 00:49:10 -0500 | [diff] [blame] | 282 | depends on !BR2_ELF2FLT |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 283 | help |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 284 | Binaries and libraries in the target filesystem will be |
| 285 | stripped using the 'sstrip' command, which strips a little |
| 286 | bit more than the traditional 'strip' command. This allows to |
| 287 | save space, mainly by removing debugging symbols. Debugging |
| 288 | symbols on the target are needed for native debugging, but |
| 289 | not when remote debugging is used. |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 290 | |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 291 | config BR2_STRIP_none |
| 292 | bool "none" |
| 293 | help |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 294 | Do not strip binaries and libraries in the target |
| 295 | filesystem. |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 296 | endchoice |
| 297 | |
Thomas De Schampheleire | 2a97045 | 2012-06-21 19:34:50 +0000 | [diff] [blame] | 298 | config BR2_STRIP_EXCLUDE_FILES |
| 299 | string "executables that should not be stripped" |
| 300 | depends on !BR2_STRIP_none |
| 301 | default "" |
| 302 | help |
| 303 | You may specify a space-separated list of binaries and libraries |
| 304 | here that should not be stripped on the target. |
| 305 | |
| 306 | config BR2_STRIP_EXCLUDE_DIRS |
| 307 | string "directories that should be skipped when stripping" |
| 308 | depends on !BR2_STRIP_none |
| 309 | default "" |
| 310 | help |
| 311 | You may specify a space-separated list of directories that should |
| 312 | be skipped when stripping. Binaries and libraries in these |
| 313 | directories will not be touched. |
| 314 | The directories should be specified relative to the target directory, |
| 315 | without leading slash. |
| 316 | |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 317 | choice |
| 318 | prompt "gcc optimization level" |
John Voltz | 7eb796b | 2008-03-16 13:26:14 +0000 | [diff] [blame] | 319 | default BR2_OPTIMIZE_S |
John Voltz | 923f42a | 2008-03-12 11:23:11 +0000 | [diff] [blame] | 320 | help |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 321 | Set the optimization level for gcc |
| 322 | |
| 323 | config BR2_OPTIMIZE_0 |
| 324 | bool "optimization level 0" |
| 325 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 326 | Do not optimize. This is the default. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 327 | |
| 328 | config BR2_OPTIMIZE_1 |
| 329 | bool "optimization level 1" |
| 330 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 331 | Optimize. Optimizing compilation takes somewhat more time, |
| 332 | and a lot more memory for a large function. With -O, the |
| 333 | compiler tries to reduce code size and execution time, |
| 334 | without performing any optimizations that take a great deal |
| 335 | of compilation time. -O turns on the following optimization |
| 336 | flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability |
| 337 | -fcprop-registers -floop-optimize -fif-conversion |
| 338 | -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts |
| 339 | -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 340 | -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 341 | -O also turns on -fomit-frame-pointer on machines where doing |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 342 | so does not interfere with debugging. |
| 343 | |
| 344 | config BR2_OPTIMIZE_2 |
| 345 | bool "optimization level 2" |
| 346 | help |
| 347 | Optimize even more. GCC performs nearly all supported optimizations |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 348 | that do not involve a space-speed tradeoff. The compiler does not |
| 349 | perform loop unrolling or function inlining when you specify -O2. |
| 350 | As compared to -O, this option increases both compilation time and |
| 351 | the performance of the generated code. -O2 turns on all optimization |
| 352 | flags specified by -O. It also turns on the following optimization |
| 353 | flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls |
| 354 | -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm |
| 355 | -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop |
| 356 | -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns |
| 357 | -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove |
| 358 | -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks |
| 359 | -freorder-functions -falign-functions -falign-jumps -falign-loops |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 360 | -falign-labels -ftree-vrp -ftree-pre |
| 361 | Please note the warning under -fgcse about invoking -O2 on programs |
| 362 | that use computed gotos. |
| 363 | |
| 364 | config BR2_OPTIMIZE_3 |
| 365 | bool "optimization level 3" |
| 366 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 367 | Optimize yet more. -O3 turns on all optimizations specified by -O2 |
| 368 | and also turns on the -finline-functions, -funswitch-loops and |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 369 | -fgcse-after-reload options. |
| 370 | |
| 371 | config BR2_OPTIMIZE_S |
| 372 | bool "optimize for size" |
| 373 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 374 | Optimize for size. -Os enables all -O2 optimizations that do not |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 375 | typically increase code size. It also performs further optimizations |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 376 | designed to reduce code size. -Os disables the following optimization |
| 377 | flags: -falign-functions -falign-jumps -falign-loops -falign-labels |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 378 | -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays |
| 379 | -ftree-vect-loop-version |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 380 | |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 381 | endchoice |
John Voltz | 923f42a | 2008-03-12 11:23:11 +0000 | [diff] [blame] | 382 | |
Bernhard Reutner-Fischer | 3096f34 | 2007-06-01 22:16:28 +0000 | [diff] [blame] | 383 | config BR2_PREFER_STATIC_LIB |
| 384 | bool "prefer static libraries" |
Bernhard Reutner-Fischer | 3096f34 | 2007-06-01 22:16:28 +0000 | [diff] [blame] | 385 | help |
Bernhard Reutner-Fischer | ece6fe0 | 2007-06-02 16:36:43 +0000 | [diff] [blame] | 386 | Where possible, build and use static libraries for the target. |
| 387 | This potentially increases your code size and should only be |
| 388 | used if you know what you do. |
| 389 | The default is to build dynamic libraries and use those on |
| 390 | the target filesystem. |
Bernhard Reutner-Fischer | 3096f34 | 2007-06-01 22:16:28 +0000 | [diff] [blame] | 391 | |
| 392 | WARNING: This is highly experimental at the moment. |
| 393 | |
Peter Korsgaard | 886b274 | 2008-10-20 11:32:25 +0000 | [diff] [blame] | 394 | config BR2_HAVE_DOCUMENTATION |
| 395 | bool "documentation on the target" |
| 396 | help |
Thomas Petazzoni | b703066 | 2010-04-10 22:47:28 +0200 | [diff] [blame] | 397 | Install the documentation, including manual pages and info |
| 398 | pages, on the target. |
Peter Korsgaard | 886b274 | 2008-10-20 11:32:25 +0000 | [diff] [blame] | 399 | If you say n here, your target will not contain any |
| 400 | documentation. |
| 401 | |
John Voltz | f5b96fc | 2008-03-10 16:34:19 +0000 | [diff] [blame] | 402 | config BR2_HAVE_DEVFILES |
| 403 | bool "development files in target filesystem" |
John Voltz | bc67ca2 | 2008-03-10 15:22:43 +0000 | [diff] [blame] | 404 | help |
| 405 | Install headers and static libraries in the |
| 406 | target filesystem |
| 407 | |
Thomas Petazzoni | ee0246e | 2011-09-29 21:57:38 +0200 | [diff] [blame] | 408 | config BR2_PACKAGE_OVERRIDE_FILE |
| 409 | string "location of a package override file" |
| 410 | default "$(TOPDIR)/local.mk" |
| 411 | help |
| 412 | A package override file is a short makefile that contains |
| 413 | variable definitions of the form <pkg>_OVERRIDE_SRCDIR, |
| 414 | which allows to tell Buildroot to use an existing directory |
| 415 | as the source directory for a particular package. See the |
| 416 | Buildroot documentation for more details on this feature. |
| 417 | |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 418 | endmenu |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 419 | |
Bernhard Reutner-Fischer | 5010039 | 2007-09-25 07:55:45 +0000 | [diff] [blame] | 420 | source "toolchain/Config.in" |
| 421 | |
Thomas Petazzoni | 6c3e3ad | 2012-11-03 08:27:58 +0000 | [diff] [blame^] | 422 | source "system/Config.in" |
Thomas Petazzoni | beb43c7 | 2010-12-05 21:52:44 +0100 | [diff] [blame] | 423 | |
Bernhard Reutner-Fischer | 5010039 | 2007-09-25 07:55:45 +0000 | [diff] [blame] | 424 | source "package/Config.in" |
| 425 | |
Thomas Petazzoni | d06e802 | 2012-01-28 18:42:49 +0100 | [diff] [blame] | 426 | source "package/Config.in.host" |
| 427 | |
Thomas Petazzoni | 0585241 | 2010-03-10 22:30:06 +0100 | [diff] [blame] | 428 | source "fs/Config.in" |
| 429 | |
Thomas Petazzoni | 649b5b9 | 2010-03-14 18:20:45 +0100 | [diff] [blame] | 430 | source "boot/Config.in" |
| 431 | |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 432 | source "linux/Config.in" |