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