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 | |
Thomas Petazzoni | a4239f7 | 2013-12-05 20:11:10 +0100 | [diff] [blame] | 17 | config BR2_EXTERNAL |
| 18 | string |
| 19 | option env="BR2_EXTERNAL" |
| 20 | |
Yann E. MORIN | 4802db3 | 2016-07-17 12:34:26 +0200 | [diff] [blame] | 21 | config BR2_BUILD_DIR |
| 22 | string |
| 23 | option env="BUILD_DIR" |
| 24 | |
Arnout Vandecappelle | 12825f7 | 2015-12-31 01:34:13 +0100 | [diff] [blame] | 25 | # Hidden config symbols for packages to check system gcc version |
| 26 | config BR2_HOST_GCC_VERSION |
| 27 | string |
| 28 | option env="HOST_GCC_VERSION" |
| 29 | |
Bernd Kuhls | 8fce6d7 | 2016-03-19 21:25:35 +0100 | [diff] [blame] | 30 | config BR2_HOST_GCC_AT_LEAST_4_6 |
| 31 | bool |
| 32 | default y if BR2_HOST_GCC_VERSION = "4 6" |
| 33 | |
Arnout Vandecappelle | 12825f7 | 2015-12-31 01:34:13 +0100 | [diff] [blame] | 34 | config BR2_HOST_GCC_AT_LEAST_4_7 |
| 35 | bool |
| 36 | default y if BR2_HOST_GCC_VERSION = "4 7" |
Bernd Kuhls | 8fce6d7 | 2016-03-19 21:25:35 +0100 | [diff] [blame] | 37 | select BR2_HOST_GCC_AT_LEAST_4_6 |
Arnout Vandecappelle | 12825f7 | 2015-12-31 01:34:13 +0100 | [diff] [blame] | 38 | |
| 39 | config BR2_HOST_GCC_AT_LEAST_4_8 |
| 40 | bool |
| 41 | default y if BR2_HOST_GCC_VERSION = "4 8" |
| 42 | select BR2_HOST_GCC_AT_LEAST_4_7 |
| 43 | |
| 44 | config BR2_HOST_GCC_AT_LEAST_4_9 |
| 45 | bool |
| 46 | default y if BR2_HOST_GCC_VERSION = "4 9" |
| 47 | select BR2_HOST_GCC_AT_LEAST_4_8 |
| 48 | |
| 49 | config BR2_HOST_GCC_AT_LEAST_5 |
| 50 | bool |
| 51 | default y if BR2_HOST_GCC_VERSION = "5" |
| 52 | select BR2_HOST_GCC_AT_LEAST_4_9 |
| 53 | |
Martin Bark | 3d21757 | 2016-06-06 11:18:14 +0100 | [diff] [blame] | 54 | config BR2_HOST_GCC_AT_LEAST_6 |
| 55 | bool |
| 56 | default y if BR2_HOST_GCC_VERSION = "6" |
| 57 | select BR2_HOST_GCC_AT_LEAST_5 |
| 58 | |
Maxime Hadjinlian | aac3d2b | 2014-02-18 00:37:12 +0100 | [diff] [blame] | 59 | # Hidden boolean selected by packages in need of Java in order to build |
| 60 | # (example: xbmc) |
Maxime Hadjinlian | 0721c71 | 2014-02-19 16:33:50 +0100 | [diff] [blame] | 61 | config BR2_NEEDS_HOST_JAVA |
Maxime Hadjinlian | aac3d2b | 2014-02-18 00:37:12 +0100 | [diff] [blame] | 62 | bool |
| 63 | |
Maxime Hadjinlian | 8f9da28 | 2014-05-04 00:45:44 +0200 | [diff] [blame] | 64 | # Hidden boolean selected by packages in need of javac in order to build |
| 65 | # (example: classpath) |
| 66 | config BR2_NEEDS_HOST_JAVAC |
| 67 | bool |
| 68 | |
| 69 | # Hidden boolean selected by packages in need of jar in order to build |
| 70 | # (example: classpath) |
| 71 | config BR2_NEEDS_HOST_JAR |
| 72 | bool |
| 73 | |
Thomas Petazzoni | 70d6037 | 2012-12-29 06:14:49 +0000 | [diff] [blame] | 74 | # Hidden boolean selected by pre-built packages for x86, when they |
| 75 | # need to run on x86-64 machines (example: pre-built external |
| 76 | # toolchains, binary tools like SAM-BA, etc.). |
| 77 | config BR2_HOSTARCH_NEEDS_IA32_LIBS |
| 78 | bool |
| 79 | |
Thomas Petazzoni | 0e4bc50 | 2013-11-11 17:47:25 +0100 | [diff] [blame] | 80 | # Hidden boolean selected by packages that need to build 32 bits |
| 81 | # binaries with the host compiler, even on 64 bits build machines (e.g |
| 82 | # bootloaders). |
| 83 | config BR2_HOSTARCH_NEEDS_IA32_COMPILER |
| 84 | bool |
| 85 | |
Thomas Petazzoni | 79ee3c1 | 2012-11-03 08:27:59 +0000 | [diff] [blame] | 86 | source "arch/Config.in" |
Bernhard Reutner-Fischer | 7d8a59b | 2007-07-08 16:28:54 +0000 | [diff] [blame] | 87 | |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 88 | menu "Build options" |
| 89 | |
Thomas Petazzoni | 1592926 | 2010-04-10 22:55:01 +0200 | [diff] [blame] | 90 | menu "Commands" |
| 91 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 92 | config BR2_WGET |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 93 | string "Wget command" |
Peter Korsgaard | 6871b16 | 2010-11-04 19:16:43 +0100 | [diff] [blame] | 94 | default "wget --passive-ftp -nd -t 3" |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 95 | |
Maxime Petazzoni | cf71111 | 2010-09-02 12:09:45 +0200 | [diff] [blame] | 96 | config BR2_SVN |
| 97 | string "Subversion (svn) command" |
| 98 | default "svn" |
Eric Andersen | e30cf26 | 2005-01-23 11:20:30 +0000 | [diff] [blame] | 99 | |
Maxime Petazzoni | cf71111 | 2010-09-02 12:09:45 +0200 | [diff] [blame] | 100 | config BR2_BZR |
| 101 | string "Bazaar (bzr) command" |
| 102 | default "bzr" |
Sven Neumann | df03cda | 2009-08-07 11:57:54 +0200 | [diff] [blame] | 103 | |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 104 | config BR2_GIT |
Maxime Petazzoni | cf71111 | 2010-09-02 12:09:45 +0200 | [diff] [blame] | 105 | string "Git command" |
| 106 | default "git" |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 107 | |
Gustavo Zacarias | 15eb1fa | 2013-09-11 09:12:04 -0300 | [diff] [blame] | 108 | config BR2_CVS |
| 109 | string "CVS command" |
| 110 | default "cvs" |
| 111 | |
David Wagner | 2690e76 | 2011-09-29 21:57:46 +0200 | [diff] [blame] | 112 | config BR2_LOCALFILES |
| 113 | string "Local files retrieval command" |
| 114 | default "cp" |
| 115 | |
Thomas De Schampheleire | c61788f | 2011-10-19 09:25:40 +0200 | [diff] [blame] | 116 | config BR2_SCP |
| 117 | string "Secure copy (scp) command" |
| 118 | default "scp" |
| 119 | |
| 120 | config BR2_SSH |
| 121 | string "Secure shell (ssh) command" |
| 122 | default "ssh" |
| 123 | |
Thomas De Schampheleire | f694c07 | 2011-10-19 09:25:47 +0200 | [diff] [blame] | 124 | config BR2_HG |
| 125 | string "Mercurial (hg) command" |
| 126 | default "hg" |
| 127 | |
Bernhard Reutner-Fischer | 859b913 | 2006-10-01 15:07:45 +0000 | [diff] [blame] | 128 | config BR2_ZCAT |
| 129 | string "zcat command" |
Bernhard Reutner-Fischer | a9612bf | 2007-03-09 08:26:10 +0000 | [diff] [blame] | 130 | default "gzip -d -c" |
Bernhard Reutner-Fischer | 859b913 | 2006-10-01 15:07:45 +0000 | [diff] [blame] | 131 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 132 | Command to be used to extract a gzip'ed file to stdout. zcat |
| 133 | is identical to gunzip -c except that the former may not be |
| 134 | available on your system. |
Bernhard Reutner-Fischer | a9612bf | 2007-03-09 08:26:10 +0000 | [diff] [blame] | 135 | Default is "gzip -d -c" |
| 136 | Other possible values include "gunzip -c" or "zcat". |
Bernhard Reutner-Fischer | 6e2823c | 2006-11-17 15:43:51 +0000 | [diff] [blame] | 137 | |
| 138 | config BR2_BZCAT |
| 139 | string "bzcat command" |
| 140 | default "bzcat" |
| 141 | help |
| 142 | Command to be used to extract a bzip2'ed file to stdout. |
| 143 | bzcat is identical to bunzip2 -c except that the former may |
| 144 | not be available on your system. |
| 145 | Default is "bzcat" |
| 146 | Other possible values include "bunzip2 -c" or "bzip2 -d -c". |
Bernhard Reutner-Fischer | 859b913 | 2006-10-01 15:07:45 +0000 | [diff] [blame] | 147 | |
Allan W. Nielsen | 177b4b4 | 2011-05-10 08:17:05 +0200 | [diff] [blame] | 148 | config BR2_XZCAT |
| 149 | string "xzcat command" |
| 150 | default "xzcat" |
| 151 | help |
| 152 | Command to be used to extract a xz'ed file to stdout. |
| 153 | Default is "xzcat" |
| 154 | |
Bernhard Reutner-Fischer | ce90aae | 2005-12-10 14:59:02 +0000 | [diff] [blame] | 155 | config BR2_TAR_OPTIONS |
| 156 | string "Tar options" |
Bernhard Reutner-Fischer | 7df4de6 | 2005-12-10 15:36:43 +0000 | [diff] [blame] | 157 | default "" |
| 158 | help |
| 159 | Options to pass to tar when extracting the sources. |
| 160 | E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files |
| 161 | and to be verbose. |
Bernhard Reutner-Fischer | ce90aae | 2005-12-10 14:59:02 +0000 | [diff] [blame] | 162 | |
Thomas Petazzoni | 1592926 | 2010-04-10 22:55:01 +0200 | [diff] [blame] | 163 | endmenu |
| 164 | |
Arnout Vandecappelle (Essensium/Mind) | 4e0170d | 2013-02-06 21:50:57 +0000 | [diff] [blame] | 165 | config BR2_DEFCONFIG_FROM_ENV |
| 166 | string |
| 167 | option env="BR2_DEFCONFIG" |
| 168 | |
| 169 | config BR2_DEFCONFIG |
| 170 | string "Location to save buildroot config" |
| 171 | default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != "" |
| 172 | default "$(CONFIG_DIR)/defconfig" |
| 173 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 174 | When running 'make savedefconfig', the defconfig file will be |
| 175 | saved in this location. |
Arnout Vandecappelle (Essensium/Mind) | 4e0170d | 2013-02-06 21:50:57 +0000 | [diff] [blame] | 176 | |
Mike Frysinger | 59a63a9 | 2005-10-01 00:35:24 +0000 | [diff] [blame] | 177 | config BR2_DL_DIR |
| 178 | string "Download dir" |
H Hartley Sweeten | be695dc | 2009-09-23 08:46:52 +0200 | [diff] [blame] | 179 | default "$(TOPDIR)/dl" |
Mike Frysinger | 59a63a9 | 2005-10-01 00:35:24 +0000 | [diff] [blame] | 180 | help |
| 181 | Directory to store all the source files that we need to fetch. |
Arnout Vandecappelle | 6768021 | 2014-02-04 16:18:51 +0100 | [diff] [blame] | 182 | If the Linux shell environment has defined the BR2_DL_DIR |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 183 | environment variable, then this overrides this configuration |
| 184 | item. |
Mike Frysinger | 59a63a9 | 2005-10-01 00:35:24 +0000 | [diff] [blame] | 185 | |
H Hartley Sweeten | be695dc | 2009-09-23 08:46:52 +0200 | [diff] [blame] | 186 | The default is $(TOPDIR)/dl |
Bernhard Reutner-Fischer | 4b0d5a8 | 2007-09-26 21:12:38 +0000 | [diff] [blame] | 187 | |
Gustavo Zacarias | a2b4f7f | 2011-02-02 10:05:56 -0300 | [diff] [blame] | 188 | config BR2_HOST_DIR |
| 189 | string "Host dir" |
| 190 | default "$(BASE_DIR)/host" |
| 191 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 192 | Directory to store all the binary files that are built for the |
| 193 | host. This includes the cross compilation toolchain when |
| 194 | building the internal buildroot toolchain. |
Gustavo Zacarias | a2b4f7f | 2011-02-02 10:05:56 -0300 | [diff] [blame] | 195 | |
| 196 | The default is $(BASE_DIR)/host |
| 197 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 198 | menu "Mirrors and Download locations" |
| 199 | |
| 200 | config BR2_PRIMARY_SITE |
| 201 | string "Primary download site" |
| 202 | default "" |
| 203 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 204 | Primary site to download from. If this option is set then |
| 205 | buildroot will try to download package source first from this |
| 206 | site and try the default if the file is not found. |
Jérôme Pouiller | 4a9d980 | 2015-11-18 10:03:25 +0100 | [diff] [blame] | 207 | Valid URIs are: |
| 208 | - URIs recognized by $(WGET) |
| 209 | - local URIs of the form file://absolutepath |
| 210 | - scp URIs of the form scp://[user@]host:path. |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 211 | |
Thomas De Schampheleire | 5a83e08 | 2012-06-22 07:37:03 +0200 | [diff] [blame] | 212 | config BR2_PRIMARY_SITE_ONLY |
| 213 | bool "Only allow downloads from primary download site" |
| 214 | depends on BR2_PRIMARY_SITE != "" |
| 215 | help |
| 216 | If this option is enabled, downloads will only be attempted |
| 217 | from the primary download site. Other locations, like the |
| 218 | package's official download location or the backup download |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 219 | site, will not be considered. Therefore, if the package is not |
| 220 | present on the primary site, the download fails. |
Thomas De Schampheleire | 5a83e08 | 2012-06-22 07:37:03 +0200 | [diff] [blame] | 221 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 222 | This is useful for project developers who want to ensure that |
| 223 | the project can be built even if the upstream tarball |
Thomas De Schampheleire | 5a83e08 | 2012-06-22 07:37:03 +0200 | [diff] [blame] | 224 | locations disappear. |
| 225 | |
| 226 | if !BR2_PRIMARY_SITE_ONLY |
| 227 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 228 | config BR2_BACKUP_SITE |
| 229 | string "Backup download site" |
Peter Seiderer | 4a9eb20 | 2014-02-21 23:33:36 +0100 | [diff] [blame] | 230 | default "http://sources.buildroot.net" |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 231 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 232 | Backup site to download from. If this option is set then |
| 233 | buildroot will fall back to download package sources from here |
| 234 | if the normal location fails. |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 235 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 236 | config BR2_KERNEL_MIRROR |
| 237 | string "Kernel.org mirror" |
Alexey Brodkin | de76cb7 | 2016-05-23 18:36:53 +0300 | [diff] [blame] | 238 | default "https://cdn.kernel.org/pub" |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 239 | help |
Alexey Brodkin | de76cb7 | 2016-05-23 18:36:53 +0300 | [diff] [blame] | 240 | kernel.org is mirrored on a number of servers around the |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 241 | world. The following allows you to select your preferred |
Alexey Brodkin | de76cb7 | 2016-05-23 18:36:53 +0300 | [diff] [blame] | 242 | mirror. By default, a CDN is used, which automatically |
| 243 | redirects to a mirror geographically close to you. |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 244 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 245 | Have a look on the kernel.org site for a list of mirrors, then |
| 246 | enter the URL to the base directory. Examples: |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 247 | |
| 248 | http://www.XX.kernel.org/pub (XX = country code) |
| 249 | http://mirror.aarnet.edu.au/pub/ftp.kernel.org |
| 250 | |
| 251 | config BR2_GNU_MIRROR |
| 252 | string "GNU Software mirror" |
Thomas Petazzoni | 3999f0a | 2016-05-24 20:48:26 +0200 | [diff] [blame] | 253 | default "http://ftpmirror.gnu.org" |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 254 | help |
Thomas Petazzoni | 3999f0a | 2016-05-24 20:48:26 +0200 | [diff] [blame] | 255 | GNU has multiple software mirrors scattered around the |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 256 | world. The following allows you to select your preferred |
Thomas Petazzoni | 3999f0a | 2016-05-24 20:48:26 +0200 | [diff] [blame] | 257 | mirror. By default, a generic address is used, which |
| 258 | automatically selects an up-to-date and local mirror. |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 259 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 260 | Have a look on the gnu.org site for a list of mirrors, then |
| 261 | enter the URL to the base directory. Examples: |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 262 | |
| 263 | http://ftp.gnu.org/pub/gnu |
| 264 | http://mirror.aarnet.edu.au/pub/gnu |
| 265 | |
Francois Perrad | 72afb29 | 2014-01-11 16:42:07 +0100 | [diff] [blame] | 266 | config BR2_LUAROCKS_MIRROR |
| 267 | string "LuaRocks mirror" |
Francois Perrad | 0b8411a | 2014-07-25 20:21:24 +0200 | [diff] [blame] | 268 | default "http://rocks.moonscript.org" |
Francois Perrad | 72afb29 | 2014-01-11 16:42:07 +0100 | [diff] [blame] | 269 | help |
| 270 | LuaRocks repository. |
| 271 | |
| 272 | See http://luarocks.org |
| 273 | |
Francois Perrad | 9fbb169 | 2014-02-23 15:17:16 +0100 | [diff] [blame] | 274 | config BR2_CPAN_MIRROR |
| 275 | string "CPAN mirror (Perl packages)" |
Yann E. MORIN | 32567d1 | 2014-07-19 12:09:19 +0200 | [diff] [blame] | 276 | default "http://cpan.metacpan.org" |
Francois Perrad | 9fbb169 | 2014-02-23 15:17:16 +0100 | [diff] [blame] | 277 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 278 | CPAN (Comprehensive Perl Archive Network) is a repository of |
| 279 | Perl packages. It has multiple software mirrors scattered |
Francois Perrad | 9fbb169 | 2014-02-23 15:17:16 +0100 | [diff] [blame] | 280 | around the world. This option allows you to select a mirror. |
| 281 | |
| 282 | The list of mirrors is available at: |
| 283 | http://search.cpan.org/mirror |
| 284 | |
Yann E. MORIN | 3318a5a | 2015-07-14 09:42:40 +0200 | [diff] [blame] | 285 | endif |
| 286 | |
Thomas Petazzoni | 8008007 | 2010-12-05 21:52:37 +0100 | [diff] [blame] | 287 | endmenu |
Thomas Petazzoni | aa41d37 | 2010-04-10 22:55:38 +0200 | [diff] [blame] | 288 | |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 289 | config BR2_JLEVEL |
Nathan Lynch | 5016aa0 | 2012-06-16 09:37:17 +0000 | [diff] [blame] | 290 | int "Number of jobs to run simultaneously (0 for auto)" |
| 291 | default "0" |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 292 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 293 | Number of jobs to run simultaneously. If 0, determine |
| 294 | automatically according to number of CPUs on the host system. |
Bernhard Reutner-Fischer | 93ab6d3 | 2007-01-28 12:03:58 +0000 | [diff] [blame] | 295 | |
Thomas Petazzoni | 17b66af | 2010-12-07 21:09:56 +0100 | [diff] [blame] | 296 | config BR2_CCACHE |
| 297 | bool "Enable compiler cache" |
| 298 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 299 | This option will enable the use of ccache, a compiler cache. |
| 300 | It will cache the result of previous builds to speed up future |
| 301 | builds. By default, the cache is stored in |
Thomas Petazzoni | 17b66af | 2010-12-07 21:09:56 +0100 | [diff] [blame] | 302 | $HOME/.buildroot-ccache. |
| 303 | |
Thomas Petazzoni | f044e03 | 2012-03-07 20:26:50 +0100 | [diff] [blame] | 304 | Note that Buildroot does not try to invalidate the cache |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 305 | contents when the compiler changes in an incompatible way. |
| 306 | Therefore, if you make a change to the compiler version and/or |
| 307 | configuration, you are responsible for purging the ccache |
| 308 | cache by removing the $HOME/.buildroot-ccache directory. |
Thomas Petazzoni | f044e03 | 2012-03-07 20:26:50 +0100 | [diff] [blame] | 309 | |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 310 | if BR2_CCACHE |
| 311 | |
Thomas De Schampheleire | 4332907 | 2012-05-16 21:39:28 +0200 | [diff] [blame] | 312 | config BR2_CCACHE_DIR |
| 313 | string "Compiler cache location" |
Thomas De Schampheleire | 4332907 | 2012-05-16 21:39:28 +0200 | [diff] [blame] | 314 | default "$(HOME)/.buildroot-ccache" |
| 315 | help |
| 316 | Where ccache should store cached files. |
| 317 | |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 318 | config BR2_CCACHE_INITIAL_SETUP |
| 319 | string "Compiler cache initial setup" |
| 320 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 321 | Initial ccache settings to apply, such as --max-files or |
| 322 | --max-size. |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 323 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 324 | For example, if your project is known to require more space |
| 325 | than the default max cache size, then you might want to |
| 326 | increase the cache size to a suitable amount using the -M |
| 327 | (--max-size) option. |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 328 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 329 | The string you specify here is passed verbatim to ccache. |
| 330 | Refer to ccache documentation for more details. |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 331 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 332 | These initial settings are applied after ccache has been |
| 333 | compiled. |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 334 | |
Arnout Vandecappelle | 1e97b27 | 2015-10-04 16:25:32 +0100 | [diff] [blame] | 335 | config BR2_CCACHE_USE_BASEDIR |
| 336 | bool "Use relative paths" |
| 337 | default y |
| 338 | help |
| 339 | Allow ccache to convert absolute paths within the output |
| 340 | directory into relative paths. |
| 341 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 342 | During the build, many -I include directives are given with an |
| 343 | absolute path. These absolute paths end up in the hashes that |
| 344 | are computed by ccache. Therefore, when you build from a |
| 345 | different directory, the hash will be different and the cached |
| 346 | object will not be used. |
Arnout Vandecappelle | 1e97b27 | 2015-10-04 16:25:32 +0100 | [diff] [blame] | 347 | |
| 348 | To improve cache performance, set this option to y. This |
| 349 | allows ccache to rewrite absolute paths within the output |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 350 | directory into relative paths. Note that only paths within the |
| 351 | output directory will be rewritten; therefore, if you change |
| 352 | BR2_HOST_DIR to point outside the output directory and |
Arnout Vandecappelle | 1e97b27 | 2015-10-04 16:25:32 +0100 | [diff] [blame] | 353 | subsequently move it to a different location, this will lead |
| 354 | to cache misses. |
| 355 | |
| 356 | This option has as a result that the debug information in the |
| 357 | object files also has only relative paths. Therefore, make |
| 358 | sure you cd to the build directory before starting gdb. See |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 359 | the section "COMPILING IN DIFFERENT DIRECTORIES" in the ccache |
| 360 | manual for more information. |
Arnout Vandecappelle | 1e97b27 | 2015-10-04 16:25:32 +0100 | [diff] [blame] | 361 | |
Danomi Manchego | dd79f2d | 2014-04-30 22:05:07 -0400 | [diff] [blame] | 362 | endif |
| 363 | |
Bernhard Reutner-Fischer | 7779fd7 | 2007-02-09 13:31:55 +0000 | [diff] [blame] | 364 | config BR2_DEPRECATED |
Gustavo Zacarias | 8515ef0 | 2014-09-19 10:41:09 -0300 | [diff] [blame] | 365 | bool "Show options and packages that are deprecated or obsolete" |
Bernhard Reutner-Fischer | 7779fd7 | 2007-02-09 13:31:55 +0000 | [diff] [blame] | 366 | help |
Gustavo Zacarias | 8515ef0 | 2014-09-19 10:41:09 -0300 | [diff] [blame] | 367 | This option shows outdated/obsolete versions of packages and |
| 368 | options that are otherwise hidden. |
Eric Andersen | ba7c48f | 2004-12-11 10:25:40 +0000 | [diff] [blame] | 369 | |
Thomas De Schampheleire | ba4ad9d | 2014-01-03 17:02:50 +0100 | [diff] [blame] | 370 | if BR2_DEPRECATED |
| 371 | |
Vicente Olivert Riera | 429a116 | 2015-12-17 16:39:53 +0000 | [diff] [blame] | 372 | config BR2_DEPRECATED_SINCE_2015_11 |
| 373 | bool |
| 374 | default y |
| 375 | |
Gustavo Zacarias | 07941f4 | 2016-01-15 07:47:46 -0300 | [diff] [blame] | 376 | config BR2_DEPRECATED_SINCE_2016_02 |
| 377 | bool |
| 378 | default y |
| 379 | |
Gustavo Zacarias | bca107e | 2016-02-22 14:54:57 -0300 | [diff] [blame] | 380 | config BR2_DEPRECATED_SINCE_2016_05 |
| 381 | bool |
| 382 | default y |
| 383 | |
Julien Floret | 995da6e | 2016-06-16 16:41:14 +0200 | [diff] [blame] | 384 | config BR2_DEPRECATED_SINCE_2016_08 |
| 385 | bool |
| 386 | default y |
| 387 | |
Gustavo Zacarias | ac1f324 | 2016-09-07 22:17:26 -0300 | [diff] [blame] | 388 | config BR2_DEPRECATED_SINCE_2016_11 |
| 389 | bool |
| 390 | default y |
| 391 | |
Thomas De Schampheleire | ba4ad9d | 2014-01-03 17:02:50 +0100 | [diff] [blame] | 392 | endif |
| 393 | |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 394 | config BR2_ENABLE_DEBUG |
| 395 | bool "build packages with debugging symbols" |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 396 | help |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 397 | Build packages with debugging symbols enabled. All libraries |
| 398 | and binaries in the 'staging' directory will have debugging |
| 399 | symbols, which allows remote debugging even if libraries and |
| 400 | binaries are stripped on the target. Whether libraries and |
| 401 | binaries are stripped on the target is controlled by the |
| 402 | BR2_STRIP_* options below. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 403 | |
| 404 | if BR2_ENABLE_DEBUG |
| 405 | choice |
| 406 | prompt "gcc debug level" |
| 407 | default BR2_DEBUG_2 |
| 408 | help |
| 409 | Set the debug level for gcc |
| 410 | |
| 411 | config BR2_DEBUG_1 |
| 412 | bool "debug level 1" |
| 413 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 414 | Debug level 1 produces minimal information, enough for making |
| 415 | backtraces in parts of the program that you don't plan to |
| 416 | debug. This includes descriptions of functions and external |
| 417 | variables, but no information about local variables and no |
| 418 | line numbers. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 419 | |
| 420 | config BR2_DEBUG_2 |
| 421 | bool "debug level 2" |
| 422 | help |
| 423 | The default gcc debug level is 2 |
| 424 | |
| 425 | config BR2_DEBUG_3 |
| 426 | bool "debug level 3" |
| 427 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 428 | Level 3 includes extra information, such as all the macro |
| 429 | definitions present in the program. Some debuggers support |
| 430 | macro expansion when you use -g3. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 431 | endchoice |
| 432 | endif |
| 433 | |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 434 | choice |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 435 | prompt "strip command for binaries on target" |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 436 | default BR2_STRIP_strip |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 437 | |
| 438 | config BR2_STRIP_strip |
| 439 | bool "strip" |
Axel Lin | 9f2bf30 | 2013-09-03 17:39:53 +0800 | [diff] [blame] | 440 | depends on !BR2_PACKAGE_HOST_ELF2FLT |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 441 | help |
Thomas Petazzoni | a9a3467 | 2012-03-14 23:49:58 +0100 | [diff] [blame] | 442 | Binaries and libraries in the target filesystem will be |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 443 | stripped using the normal 'strip' command. This allows to save |
| 444 | space, mainly by removing debugging symbols. Debugging symbols |
| 445 | on the target are needed for native debugging, but not when |
| 446 | remote debugging is used. |
Ulf Samuelsson | 85f54fb | 2007-08-24 05:31:07 +0000 | [diff] [blame] | 447 | |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 448 | config BR2_STRIP_none |
| 449 | bool "none" |
| 450 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 451 | Do not strip binaries and libraries in the target filesystem. |
Bernhard Reutner-Fischer | bbd251a | 2007-07-31 18:06:50 +0000 | [diff] [blame] | 452 | endchoice |
| 453 | |
Thomas De Schampheleire | 2a97045 | 2012-06-21 19:34:50 +0000 | [diff] [blame] | 454 | config BR2_STRIP_EXCLUDE_FILES |
| 455 | string "executables that should not be stripped" |
| 456 | depends on !BR2_STRIP_none |
| 457 | default "" |
| 458 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 459 | You may specify a space-separated list of binaries and |
| 460 | libraries here that should not be stripped on the target. |
Thomas De Schampheleire | 2a97045 | 2012-06-21 19:34:50 +0000 | [diff] [blame] | 461 | |
| 462 | config BR2_STRIP_EXCLUDE_DIRS |
| 463 | string "directories that should be skipped when stripping" |
| 464 | depends on !BR2_STRIP_none |
| 465 | default "" |
| 466 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 467 | You may specify a space-separated list of directories that |
| 468 | should be skipped when stripping. Binaries and libraries in |
| 469 | these directories will not be touched. The directories should |
| 470 | be specified relative to the target directory, without leading |
| 471 | slash. |
Thomas De Schampheleire | 2a97045 | 2012-06-21 19:34:50 +0000 | [diff] [blame] | 472 | |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 473 | choice |
| 474 | prompt "gcc optimization level" |
John Voltz | 7eb796b | 2008-03-16 13:26:14 +0000 | [diff] [blame] | 475 | default BR2_OPTIMIZE_S |
John Voltz | 923f42a | 2008-03-12 11:23:11 +0000 | [diff] [blame] | 476 | help |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 477 | Set the optimization level for gcc |
| 478 | |
| 479 | config BR2_OPTIMIZE_0 |
| 480 | bool "optimization level 0" |
| 481 | help |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 482 | Do not optimize. This is the default. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 483 | |
| 484 | config BR2_OPTIMIZE_1 |
| 485 | bool "optimization level 1" |
| 486 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 487 | Optimize. Optimizing compilation takes somewhat more time, and |
| 488 | a lot more memory for a large function. With -O, the compiler |
| 489 | tries to reduce code size and execution time, without |
| 490 | performing any optimizations that take a great deal of |
| 491 | compilation time. -O turns on the following optimization |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 492 | flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability |
| 493 | -fcprop-registers -floop-optimize -fif-conversion |
| 494 | -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts |
| 495 | -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 496 | -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants. -O |
| 497 | also turns on -fomit-frame-pointer on machines where doing so |
| 498 | does not interfere with debugging. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 499 | |
| 500 | config BR2_OPTIMIZE_2 |
| 501 | bool "optimization level 2" |
| 502 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 503 | Optimize even more. GCC performs nearly all supported |
| 504 | optimizations that do not involve a space-speed tradeoff. The |
| 505 | compiler does not perform loop unrolling or function inlining |
| 506 | when you specify -O2. As compared to -O, this option increases |
| 507 | both compilation time and the performance of the generated |
| 508 | code. -O2 turns on all optimization flags specified by -O. It |
| 509 | also turns on the following optimization flags: |
| 510 | -fthread-jumps -fcrossjumping -foptimize-sibling-calls |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 511 | -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 512 | -fexpensive-optimizations -fstrength-reduce |
| 513 | -frerun-cse-after-loop -frerun-loop-opt -fcaller-saves |
| 514 | -fpeephole2 -fschedule-insns -fschedule-insns2 |
| 515 | -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing |
| 516 | -fdelete-null-pointer-checks -freorder-blocks |
| 517 | -freorder-functions -falign-functions -falign-jumps |
| 518 | -falign-loops -falign-labels -ftree-vrp -ftree-pre. Please |
| 519 | note the warning under -fgcse about invoking -O2 on programs |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 520 | that use computed gotos. |
| 521 | |
| 522 | config BR2_OPTIMIZE_3 |
| 523 | bool "optimization level 3" |
| 524 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 525 | Optimize yet more. -O3 turns on all optimizations specified by |
| 526 | -O2 and also turns on the -finline-functions, -funswitch-loops |
| 527 | and -fgcse-after-reload options. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 528 | |
Martin Kelly | 5ff8459 | 2016-05-18 14:17:55 -0700 | [diff] [blame] | 529 | config BR2_OPTIMIZE_G |
| 530 | bool "optimize for debugging" |
| 531 | depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 532 | help |
| 533 | Optimize for debugging. This enables optimizations that do not |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 534 | interfere with debugging. It should be the optimization level |
| 535 | of choice for the standard edit-compile-debug cycle, offering |
| 536 | a reasonable level of optimization while maintaining fast |
| 537 | compilation and a good debugging experience. |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 538 | |
| 539 | config BR2_OPTIMIZE_S |
| 540 | bool "optimize for size" |
| 541 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 542 | Optimize for size. -Os enables all -O2 optimizations that do |
| 543 | not typically increase code size. It also performs further |
| 544 | optimizations designed to reduce code size. -Os disables the |
| 545 | following optimization flags: -falign-functions -falign-jumps |
| 546 | -falign-loops -falign-labels -freorder-blocks |
| 547 | -freorder-blocks-and-partition -fprefetch-loop-arrays |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 548 | -ftree-vect-loop-version |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 549 | |
John Voltz | 41f6b79 | 2008-03-12 13:07:10 +0000 | [diff] [blame] | 550 | endchoice |
John Voltz | 923f42a | 2008-03-12 11:23:11 +0000 | [diff] [blame] | 551 | |
Pascal Huerst | 09a1a10 | 2014-07-31 22:08:55 +0200 | [diff] [blame] | 552 | config BR2_GOOGLE_BREAKPAD_ENABLE |
| 553 | bool "Enable google-breakpad support" |
| 554 | select BR2_PACKAGE_GOOGLE_BREAKPAD |
| 555 | depends on BR2_INSTALL_LIBSTDCPP |
Gustavo Zacarias | e9ffb3b | 2016-09-14 21:46:29 -0300 | [diff] [blame] | 556 | depends on BR2_USE_WCHAR |
| 557 | depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC) |
Pascal Huerst | 09a1a10 | 2014-07-31 22:08:55 +0200 | [diff] [blame] | 558 | depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS |
| 559 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 560 | This option will enable the use of google breakpad, a library |
| 561 | and tool suite that allows you to distribute an application to |
| 562 | users with compiler-provided debugging information removed, |
| 563 | record crashes in compact "minidump" files, send them back to |
| 564 | your server and produce C and C++ stack traces from these |
| 565 | minidumps. Breakpad can also write minidumps on request for |
| 566 | programs that have not crashed. |
Pascal Huerst | 09a1a10 | 2014-07-31 22:08:55 +0200 | [diff] [blame] | 567 | |
| 568 | if BR2_GOOGLE_BREAKPAD_ENABLE |
| 569 | |
| 570 | config BR2_GOOGLE_BREAKPAD_INCLUDE_FILES |
| 571 | string "List of executables and libraries to extract symbols from" |
| 572 | default "" |
| 573 | help |
| 574 | You may specify a space-separated list of binaries and |
| 575 | libraries with full paths relative to $(TARGET_DIR) of which |
| 576 | debug symbols will be dumped for further use with google |
| 577 | breakpad. |
| 578 | |
| 579 | A directory structure that can be used by minidump-stackwalk |
| 580 | will be created at: |
| 581 | |
| 582 | $(STAGING_DIR)/usr/share/google-breakpad-symbols |
| 583 | |
| 584 | endif |
| 585 | |
Steven Noonan | d29c719 | 2015-12-27 12:07:31 +0100 | [diff] [blame] | 586 | choice |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 587 | bool "build code with Stack Smashing Protection" |
Steven Noonan | d29c719 | 2015-12-27 12:07:31 +0100 | [diff] [blame] | 588 | default BR2_SSP_ALL if BR2_ENABLE_SSP # legacy |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 589 | depends on BR2_TOOLCHAIN_HAS_SSP |
| 590 | help |
Steven Noonan | d29c719 | 2015-12-27 12:07:31 +0100 | [diff] [blame] | 591 | Enable stack smashing protection support using GCC's |
| 592 | -fstack-protector option family. |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 593 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 594 | See |
| 595 | http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt |
Thomas De Schampheleire | bed4e27 | 2013-11-11 17:23:23 +0100 | [diff] [blame] | 596 | for details. |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 597 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 598 | Note that this requires the toolchain to have SSP support. |
| 599 | This is always the case for glibc and eglibc toolchain, but is |
| 600 | optional in uClibc toolchains. |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 601 | |
Steven Noonan | d29c719 | 2015-12-27 12:07:31 +0100 | [diff] [blame] | 602 | config BR2_SSP_NONE |
| 603 | bool "None" |
| 604 | help |
| 605 | Disable stack-smashing protection. |
| 606 | |
| 607 | config BR2_SSP_REGULAR |
| 608 | bool "-fstack-protector" |
| 609 | help |
| 610 | Emit extra code to check for buffer overflows, such as stack |
| 611 | smashing attacks. This is done by adding a guard variable to |
| 612 | functions with vulnerable objects. This includes functions |
| 613 | that call alloca, and functions with buffers larger than 8 |
| 614 | bytes. The guards are initialized when a function is entered |
| 615 | and then checked when the function exits. If a guard check |
| 616 | fails, an error message is printed and the program exits. |
| 617 | |
| 618 | config BR2_SSP_STRONG |
| 619 | bool "-fstack-protector-strong" |
| 620 | depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 621 | help |
| 622 | Like -fstack-protector but includes additional functions to be |
| 623 | protected - those that have local array definitions, or have |
| 624 | references to local frame addresses. |
| 625 | |
| 626 | comment "Stack Smashing Protection strong needs a toolchain w/ gcc >= 4.9" |
| 627 | depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 628 | |
| 629 | config BR2_SSP_ALL |
| 630 | bool "-fstack-protector-all" |
| 631 | help |
| 632 | Like -fstack-protector except that all functions are |
| 633 | protected. This option might have a significant performance |
| 634 | impact on the compiled binaries. |
| 635 | |
| 636 | endchoice |
| 637 | |
| 638 | comment "Stack Smashing Protection needs a toolchain w/ SSP" |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 639 | depends on !BR2_TOOLCHAIN_HAS_SSP |
| 640 | |
Thomas Petazzoni | 158001f | 2014-12-11 23:50:09 +0100 | [diff] [blame] | 641 | choice |
| 642 | bool "libraries" |
Thomas Petazzoni | f1d3e09 | 2014-12-11 23:50:11 +0100 | [diff] [blame] | 643 | default BR2_SHARED_LIBS if BR2_BINFMT_SUPPORTS_SHARED |
Thomas Petazzoni | 158001f | 2014-12-11 23:50:09 +0100 | [diff] [blame] | 644 | default BR2_STATIC_LIBS if !BR2_BINFMT_SUPPORTS_SHARED |
Bernhard Reutner-Fischer | 3096f34 | 2007-06-01 22:16:28 +0000 | [diff] [blame] | 645 | help |
Thomas Petazzoni | 158001f | 2014-12-11 23:50:09 +0100 | [diff] [blame] | 646 | Select the type of libraries you want to use on the target. |
Bernhard Reutner-Fischer | 3096f34 | 2007-06-01 22:16:28 +0000 | [diff] [blame] | 647 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 648 | The default is to build dynamic libraries and use those on the |
| 649 | target filesystem, except when the architecture and/or the |
| 650 | selected binary format does not support shared libraries. |
Alexey Brodkin | 7d9c0df | 2014-10-12 18:34:44 +0200 | [diff] [blame] | 651 | |
Thomas Petazzoni | 158001f | 2014-12-11 23:50:09 +0100 | [diff] [blame] | 652 | config BR2_STATIC_LIBS |
| 653 | bool "static only" |
| 654 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 655 | Build and use only static libraries. No shared libraries will |
Bernd Kuhls | d9312d6 | 2016-07-31 18:02:47 +0200 | [diff] [blame] | 656 | be installed on the target. This potentially increases your |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 657 | code size and should only be used if you know what you are |
| 658 | doing. Note that some packages may not be available when this |
| 659 | option is enabled, due to their need for dynamic library |
| 660 | support. |
Thomas Petazzoni | 158001f | 2014-12-11 23:50:09 +0100 | [diff] [blame] | 661 | |
| 662 | config BR2_SHARED_LIBS |
| 663 | bool "shared only" |
| 664 | depends on BR2_BINFMT_SUPPORTS_SHARED |
| 665 | help |
| 666 | Build and use only shared libraries. This is the recommended |
| 667 | solution as it saves space and build time. |
| 668 | |
| 669 | config BR2_SHARED_STATIC_LIBS |
| 670 | bool "both static and shared" |
| 671 | depends on BR2_BINFMT_SUPPORTS_SHARED |
| 672 | help |
| 673 | Build both shared and static libraries, but link executables |
| 674 | dynamically. While building both shared and static libraries |
| 675 | take more time and more disk space, having static libraries |
| 676 | may be useful to link some of the applications statically. |
| 677 | |
| 678 | endchoice |
Alexey Brodkin | 7d9c0df | 2014-10-12 18:34:44 +0200 | [diff] [blame] | 679 | |
Bernhard Reutner-Fischer | 3096f34 | 2007-06-01 22:16:28 +0000 | [diff] [blame] | 680 | |
Thomas Petazzoni | ee0246e | 2011-09-29 21:57:38 +0200 | [diff] [blame] | 681 | config BR2_PACKAGE_OVERRIDE_FILE |
| 682 | string "location of a package override file" |
Yann E. MORIN | eda3d0e | 2014-01-29 22:48:24 +0100 | [diff] [blame] | 683 | default "$(CONFIG_DIR)/local.mk" |
Thomas Petazzoni | ee0246e | 2011-09-29 21:57:38 +0200 | [diff] [blame] | 684 | help |
| 685 | A package override file is a short makefile that contains |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 686 | variable definitions of the form <pkg>_OVERRIDE_SRCDIR, which |
| 687 | allows to tell Buildroot to use an existing directory as the |
| 688 | source directory for a particular package. See the Buildroot |
| 689 | documentation for more details on this feature. |
Thomas Petazzoni | ee0246e | 2011-09-29 21:57:38 +0200 | [diff] [blame] | 690 | |
Simon Dawson | 5538e47 | 2013-03-17 23:13:47 +0000 | [diff] [blame] | 691 | config BR2_GLOBAL_PATCH_DIR |
Ryan Barnett | bc4f79d | 2013-12-18 04:25:01 -0600 | [diff] [blame] | 692 | string "global patch directories" |
Simon Dawson | 5538e47 | 2013-03-17 23:13:47 +0000 | [diff] [blame] | 693 | help |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 694 | You may specify a space separated list of one or more |
| 695 | directories containing global package patches. For a specific |
| 696 | version <packageversion> of a specific package <packagename>, |
| 697 | patches are applied as follows: |
Simon Dawson | 5538e47 | 2013-03-17 23:13:47 +0000 | [diff] [blame] | 698 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 699 | First, the default Buildroot patch set for the package is |
| 700 | applied from the package's directory in Buildroot. |
Simon Dawson | 5538e47 | 2013-03-17 23:13:47 +0000 | [diff] [blame] | 701 | |
Ryan Barnett | bc4f79d | 2013-12-18 04:25:01 -0600 | [diff] [blame] | 702 | Then for every directory - <global-patch-dir> - that exists in |
| 703 | BR2_GLOBAL_PATCH_DIR, if the directory |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 704 | <global-patch-dir>/<packagename>/<packageversion>/ exists, |
| 705 | then all *.patch files in this directory will be applied. |
Simon Dawson | 5538e47 | 2013-03-17 23:13:47 +0000 | [diff] [blame] | 706 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 707 | Otherwise, if the directory <global-patch-dir>/<packagename> |
| 708 | exists, then all *.patch files in the directory will be |
| 709 | applied. |
Simon Dawson | 5538e47 | 2013-03-17 23:13:47 +0000 | [diff] [blame] | 710 | |
Thomas Petazzoni | 4ac8f78 | 2014-12-10 23:53:57 +0100 | [diff] [blame] | 711 | menu "Advanced" |
| 712 | |
| 713 | config BR2_COMPILER_PARANOID_UNSAFE_PATH |
| 714 | bool "paranoid check of library/header paths" |
Romain Naour | 61c8854 | 2016-05-15 12:26:00 +0200 | [diff] [blame] | 715 | default y |
Thomas Petazzoni | 4ac8f78 | 2014-12-10 23:53:57 +0100 | [diff] [blame] | 716 | help |
| 717 | By default, when this option is disabled, when the Buildroot |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 718 | cross-compiler will encounter an unsafe library or header path |
| 719 | (such as /usr/include, or /usr/lib), the compiler will display |
| 720 | a warning. |
Thomas Petazzoni | 4ac8f78 | 2014-12-10 23:53:57 +0100 | [diff] [blame] | 721 | |
Martin Kelly | 65f9b93 | 2016-05-31 09:57:22 -0700 | [diff] [blame] | 722 | By enabling this option, this warning is turned into an error, |
| 723 | which will completely abort the build when such unsafe paths |
| 724 | are encountered. |
Thomas Petazzoni | 4ac8f78 | 2014-12-10 23:53:57 +0100 | [diff] [blame] | 725 | |
| 726 | Note that this mechanism is available for both the internal |
Romain Naour | f9d311e | 2016-05-15 12:26:01 +0200 | [diff] [blame] | 727 | toolchain (through the toolchain wrapper and binutils patches) |
| 728 | and external toolchain backends (through the toolchain wrapper). |
Thomas Petazzoni | 4ac8f78 | 2014-12-10 23:53:57 +0100 | [diff] [blame] | 729 | |
Gilles Chanteperdrix | 71574a6 | 2016-06-14 17:31:09 +0200 | [diff] [blame] | 730 | config BR2_REPRODUCIBLE |
| 731 | bool "Make the build reproducible (experimental)" |
Jerzy Grzegorek | a446ab7 | 2016-07-02 17:06:18 +0200 | [diff] [blame] | 732 | help |
| 733 | This option will remove all sources of non-reproducibility |
| 734 | from the build process. For a given Buildroot configuration, |
| 735 | this allows to generate exactly identical binaries from one |
| 736 | build to the other, including on different machines. |
Gilles Chanteperdrix | 71574a6 | 2016-06-14 17:31:09 +0200 | [diff] [blame] | 737 | |
Jerzy Grzegorek | a446ab7 | 2016-07-02 17:06:18 +0200 | [diff] [blame] | 738 | This is labeled as an experimental feature, as not all |
| 739 | packages behave properly to ensure reproducibility. |
Gilles Chanteperdrix | 71574a6 | 2016-06-14 17:31:09 +0200 | [diff] [blame] | 740 | |
Eric Andersen | 8e5fb3f | 2004-12-11 13:01:10 +0000 | [diff] [blame] | 741 | endmenu |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 742 | |
Yann E. MORIN | 1ac2cdd | 2016-08-25 19:19:46 +0200 | [diff] [blame] | 743 | endmenu |
| 744 | |
Bernhard Reutner-Fischer | 5010039 | 2007-09-25 07:55:45 +0000 | [diff] [blame] | 745 | source "toolchain/Config.in" |
| 746 | |
Thomas Petazzoni | 6c3e3ad | 2012-11-03 08:27:58 +0000 | [diff] [blame] | 747 | source "system/Config.in" |
Thomas Petazzoni | beb43c7 | 2010-12-05 21:52:44 +0100 | [diff] [blame] | 748 | |
Yann E. MORIN | 2440385 | 2013-08-17 22:35:37 +0200 | [diff] [blame] | 749 | source "linux/Config.in" |
Bernhard Reutner-Fischer | 5010039 | 2007-09-25 07:55:45 +0000 | [diff] [blame] | 750 | |
Yann E. MORIN | 2440385 | 2013-08-17 22:35:37 +0200 | [diff] [blame] | 751 | source "package/Config.in" |
Thomas Petazzoni | d06e802 | 2012-01-28 18:42:49 +0100 | [diff] [blame] | 752 | |
Thomas Petazzoni | 0585241 | 2010-03-10 22:30:06 +0100 | [diff] [blame] | 753 | source "fs/Config.in" |
| 754 | |
Thomas Petazzoni | 649b5b9 | 2010-03-14 18:20:45 +0100 | [diff] [blame] | 755 | source "boot/Config.in" |
| 756 | |
Yann E. MORIN | 2440385 | 2013-08-17 22:35:37 +0200 | [diff] [blame] | 757 | source "package/Config.in.host" |
Arnout Vandecappelle (Essensium/Mind) | ebcfa98 | 2012-11-12 10:08:28 +0000 | [diff] [blame] | 758 | |
| 759 | source "Config.in.legacy" |
Thomas Petazzoni | 8eb8aaf | 2013-12-05 20:11:11 +0100 | [diff] [blame] | 760 | |
Peter Korsgaard | f4ea4b9 | 2013-12-08 23:21:50 +0100 | [diff] [blame] | 761 | menu "User-provided options" |
| 762 | depends on BR2_EXTERNAL != "support/dummy-external" |
| 763 | |
Thomas Petazzoni | 8eb8aaf | 2013-12-05 20:11:11 +0100 | [diff] [blame] | 764 | source "$BR2_EXTERNAL/Config.in" |
Peter Korsgaard | f4ea4b9 | 2013-12-08 23:21:50 +0100 | [diff] [blame] | 765 | |
| 766 | endmenu |
Yann E. MORIN | 4802db3 | 2016-07-17 12:34:26 +0200 | [diff] [blame] | 767 | |
| 768 | source "$BR2_BUILD_DIR/.br2-external.in" |