Yann E. MORIN | 2508b16 | 2010-07-28 00:08:16 +0200 | [diff] [blame] | 1 | # Generic toolchain options |
| 2 | |
| 3 | # we want gdb config in the middle of both source and external |
| 4 | # toolchains, but mconf won't let us source the same file twice, |
| 5 | # so put it here instead |
Thomas Petazzoni | a0b6faa | 2013-04-07 00:04:33 +0000 | [diff] [blame] | 6 | source "package/gdb/Config.in.host" |
Yann E. MORIN | 2508b16 | 2010-07-28 00:08:16 +0200 | [diff] [blame] | 7 | |
Romain Naour | 5dce3c0 | 2016-02-20 13:42:46 +0100 | [diff] [blame] | 8 | # https://sourceware.org/bugzilla/show_bug.cgi?id=19405 |
| 9 | config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 |
| 10 | bool |
| 11 | |
Thomas Petazzoni | 0858e00 | 2012-11-03 18:47:49 +0100 | [diff] [blame] | 12 | config BR2_TOOLCHAIN_HAS_NATIVE_RPC |
Thomas Petazzoni | fff7117 | 2010-12-13 17:27:37 +0100 | [diff] [blame] | 13 | bool |
| 14 | |
| 15 | config BR2_USE_WCHAR |
| 16 | bool |
Daniel Laird | 040bd64 | 2009-01-30 16:28:26 +0000 | [diff] [blame] | 17 | |
| 18 | config BR2_ENABLE_LOCALE |
Thomas Petazzoni | fff7117 | 2010-12-13 17:27:37 +0100 | [diff] [blame] | 19 | bool |
| 20 | |
Thomas Petazzoni | 6b578c8 | 2010-12-13 17:27:41 +0100 | [diff] [blame] | 21 | config BR2_INSTALL_LIBSTDCPP |
| 22 | bool |
| 23 | |
Samuel Martin | b8a0537 | 2016-07-03 15:47:40 +0200 | [diff] [blame] | 24 | config BR2_TOOLCHAIN_HAS_FORTRAN |
| 25 | bool |
| 26 | |
Thomas Petazzoni | 9eaad20 | 2010-12-13 17:27:44 +0100 | [diff] [blame] | 27 | config BR2_TOOLCHAIN_HAS_THREADS |
| 28 | bool |
| 29 | |
Peter Korsgaard | 5931db0 | 2011-11-24 14:26:52 +0100 | [diff] [blame] | 30 | config BR2_TOOLCHAIN_HAS_THREADS_DEBUG |
Peter Korsgaard | 5931db0 | 2011-11-24 14:26:52 +0100 | [diff] [blame] | 31 | bool |
| 32 | |
Thomas Petazzoni | c64f948 | 2014-02-18 22:08:59 +0100 | [diff] [blame] | 33 | config BR2_TOOLCHAIN_HAS_THREADS_NPTL |
| 34 | bool |
| 35 | |
Thomas Petazzoni | b988292 | 2011-05-30 23:56:57 +0200 | [diff] [blame] | 36 | config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS |
| 37 | bool |
| 38 | |
Thomas Petazzoni | c5866be | 2013-09-02 18:06:36 +0200 | [diff] [blame] | 39 | config BR2_TOOLCHAIN_HAS_SSP |
| 40 | bool |
| 41 | |
Waldemar Brodkorb | 3c93901 | 2016-07-11 16:35:14 +0200 | [diff] [blame] | 42 | config BR2_TOOLCHAIN_SUPPORTS_PIE |
| 43 | bool |
| 44 | |
Yann E. MORIN | 11c1076 | 2014-07-27 21:28:32 +0200 | [diff] [blame] | 45 | config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY |
| 46 | bool "Copy gconv libraries" |
| 47 | depends on BR2_TOOLCHAIN_USES_GLIBC |
| 48 | help |
| 49 | The gconv libraries are used to convert between different |
| 50 | character sets (charsets). |
| 51 | |
| 52 | Say 'y' if you need to store and/or display different charsets. |
| 53 | |
| 54 | config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST |
| 55 | string "Gconv libraries to copy" |
| 56 | depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY |
| 57 | help |
| 58 | Set to the list of gconv libraries to copy. |
| 59 | Leave empty to copy all gconv libraries. |
| 60 | |
| 61 | Specify only the basename of the libraries, leave |
| 62 | out the .so extension. Eg.: |
| 63 | IBM850 ISO8859-15 UNICODE |
| 64 | |
| 65 | Note: the full set of gconv libs are ~8MiB (on ARM). |
| 66 | |
Thomas Petazzoni | 4caf788 | 2010-05-24 21:17:50 +0200 | [diff] [blame] | 67 | # glibc and eglibc directly include gettext, so a separatly compiled |
| 68 | # gettext isn't needed and shouldn't be built to avoid conflicts. Some |
| 69 | # packages always need gettext, other packages only need gettext when |
| 70 | # locale support is enabled. See the documentation for how packages |
| 71 | # should rely on the following two options. |
| 72 | |
Thomas Petazzoni | 54d6479 | 2010-05-13 22:21:08 +0200 | [diff] [blame] | 73 | config BR2_NEEDS_GETTEXT |
| 74 | bool |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 75 | default y if BR2_TOOLCHAIN_USES_UCLIBC |
Thomas Petazzoni | 4caf788 | 2010-05-24 21:17:50 +0200 | [diff] [blame] | 76 | |
| 77 | config BR2_NEEDS_GETTEXT_IF_LOCALE |
| 78 | bool |
| 79 | default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE) |
Thomas Petazzoni | 54d6479 | 2010-05-13 22:21:08 +0200 | [diff] [blame] | 80 | |
Mike Frysinger | e5e5f5d | 2011-01-10 09:28:41 -0500 | [diff] [blame] | 81 | config BR2_USE_MMU |
Guido MartÃnez | 2956304 | 2015-06-03 19:34:03 -0300 | [diff] [blame] | 82 | bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL |
| 83 | default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY |
Mike Frysinger | e5e5f5d | 2011-01-10 09:28:41 -0500 | [diff] [blame] | 84 | help |
| 85 | If your target has a MMU, you should say Y here. If you |
| 86 | are unsure, just say Y. |
| 87 | |
Daniel Laird | 040bd64 | 2009-01-30 16:28:26 +0000 | [diff] [blame] | 88 | config BR2_TARGET_OPTIMIZATION |
| 89 | string "Target Optimizations" |
Yann E. MORIN | 01c34b3 | 2014-12-21 14:00:25 +0100 | [diff] [blame] | 90 | default "" |
Daniel Laird | 040bd64 | 2009-01-30 16:28:26 +0000 | [diff] [blame] | 91 | help |
| 92 | Optimizations to use when building for the target host. |
Paul Jones | 36391de | 2010-06-14 22:36:04 +1000 | [diff] [blame] | 93 | NOTE: gcc optimization level is defined in build options. |
Baruch Siach | ec8eda4 | 2011-06-23 12:21:21 +0300 | [diff] [blame] | 94 | |
| 95 | config BR2_TARGET_LDFLAGS |
| 96 | string "Target linker options" |
| 97 | help |
Thomas De Schampheleire | 8f8d414 | 2012-01-13 20:23:23 +0100 | [diff] [blame] | 98 | Extra options to pass to the linker when building for the target. |
Thomas Petazzoni | 217ef08 | 2013-01-13 04:52:13 +0000 | [diff] [blame] | 99 | |
Yann E. MORIN | a930d9c | 2014-07-31 00:57:15 +0200 | [diff] [blame] | 100 | Note that options with a '$' sign (eg. -Wl,-rpath='$ORIGIN/../lib') |
| 101 | are not supported. |
| 102 | |
Thomas Petazzoni | 217ef08 | 2013-01-13 04:52:13 +0000 | [diff] [blame] | 103 | config BR2_ECLIPSE_REGISTER |
| 104 | bool "Register toolchain within Eclipse Buildroot plug-in" |
| 105 | help |
| 106 | This options tells Buildroot to generate the necessary |
| 107 | configuration files to make your toolchain appear within |
| 108 | Eclipse, through the Eclipse Buildroot plugin. |
Yann E. MORIN | b155f5a | 2014-03-01 15:52:57 +0100 | [diff] [blame] | 109 | |
| 110 | # Options for packages to depend on, if they require at least a |
| 111 | # specific version of the kernel headers. |
| 112 | # Toolchains should choose the adequate option (ie. the highest |
| 113 | # version, not all of them). |
| 114 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 |
| 115 | bool |
| 116 | |
| 117 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 |
| 118 | bool |
| 119 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 |
| 120 | |
| 121 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 |
| 122 | bool |
| 123 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 |
| 124 | |
| 125 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 |
| 126 | bool |
| 127 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 |
| 128 | |
| 129 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 |
| 130 | bool |
| 131 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 |
| 132 | |
| 133 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 |
| 134 | bool |
| 135 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 |
| 136 | |
| 137 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 |
| 138 | bool |
| 139 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 |
| 140 | |
| 141 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 |
| 142 | bool |
| 143 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 |
| 144 | |
| 145 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 |
| 146 | bool |
| 147 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 |
| 148 | |
| 149 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 |
| 150 | bool |
| 151 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 |
| 152 | |
| 153 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 |
| 154 | bool |
| 155 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 |
| 156 | |
| 157 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 |
| 158 | bool |
| 159 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 |
| 160 | |
| 161 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |
| 162 | bool |
| 163 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 |
| 164 | |
| 165 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 |
| 166 | bool |
| 167 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |
Yann E. MORIN | a5a3096 | 2014-03-01 15:53:01 +0100 | [diff] [blame] | 168 | |
Gustavo Zacarias | 4916b88 | 2014-04-01 06:19:48 -0300 | [diff] [blame] | 169 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 |
| 170 | bool |
| 171 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 |
| 172 | |
Gustavo Zacarias | fb29afe | 2014-06-09 08:30:33 -0300 | [diff] [blame] | 173 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 |
| 174 | bool |
| 175 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 |
| 176 | |
Gustavo Zacarias | 911516f | 2014-08-03 23:29:22 -0300 | [diff] [blame] | 177 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 |
| 178 | bool |
| 179 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 |
| 180 | |
Gustavo Zacarias | 2d312b7 | 2014-10-06 08:44:39 -0300 | [diff] [blame] | 181 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 |
| 182 | bool |
| 183 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 |
| 184 | |
Gustavo Zacarias | bf6f74d | 2014-12-08 08:10:39 -0300 | [diff] [blame] | 185 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 |
| 186 | bool |
| 187 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 |
| 188 | |
Peter Korsgaard | 81366ed | 2015-02-09 13:31:23 +0100 | [diff] [blame] | 189 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19 |
| 190 | bool |
| 191 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 |
| 192 | |
Gustavo Zacarias | e714ee9 | 2015-04-13 10:00:23 -0300 | [diff] [blame] | 193 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 |
| 194 | bool |
| 195 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19 |
| 196 | |
Gustavo Zacarias | dae7d8a | 2015-06-22 10:11:03 -0300 | [diff] [blame] | 197 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1 |
| 198 | bool |
| 199 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 |
| 200 | |
Peter Korsgaard | 8dc6829 | 2015-09-01 10:05:20 +0200 | [diff] [blame] | 201 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 |
| 202 | bool |
| 203 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1 |
| 204 | |
Vicente Olivert Riera | aef2df8 | 2015-11-02 15:56:51 +0100 | [diff] [blame] | 205 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 |
| 206 | bool |
| 207 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 |
| 208 | |
Gustavo Zacarias | df2ad61 | 2016-01-11 07:52:36 -0300 | [diff] [blame] | 209 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4 |
| 210 | bool |
| 211 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 |
| 212 | |
Gustavo Zacarias | 3ece3fa | 2016-03-14 07:14:10 -0300 | [diff] [blame] | 213 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 |
| 214 | bool |
| 215 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4 |
| 216 | |
Gustavo Zacarias | 51800d2 | 2016-05-16 08:58:12 -0300 | [diff] [blame] | 217 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6 |
| 218 | bool |
| 219 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 |
| 220 | |
Fabio Estevam | e36bf63 | 2016-07-24 20:56:09 -0300 | [diff] [blame] | 221 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7 |
| 222 | bool |
| 223 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6 |
| 224 | |
Fabio Estevam | d3ac2bc | 2016-09-12 13:15:54 -0300 | [diff] [blame^] | 225 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 |
| 226 | bool |
| 227 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7 |
| 228 | |
Yann E. MORIN | a5a3096 | 2014-03-01 15:53:01 +0100 | [diff] [blame] | 229 | # This order guarantees that the highest version is set, as kconfig |
| 230 | # stops affecting a value on the first matching default. |
| 231 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST |
| 232 | string |
Fabio Estevam | d3ac2bc | 2016-09-12 13:15:54 -0300 | [diff] [blame^] | 233 | default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 |
Fabio Estevam | e36bf63 | 2016-07-24 20:56:09 -0300 | [diff] [blame] | 234 | default "4.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7 |
Gustavo Zacarias | 51800d2 | 2016-05-16 08:58:12 -0300 | [diff] [blame] | 235 | default "4.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6 |
Gustavo Zacarias | 3ece3fa | 2016-03-14 07:14:10 -0300 | [diff] [blame] | 236 | default "4.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 |
Gustavo Zacarias | df2ad61 | 2016-01-11 07:52:36 -0300 | [diff] [blame] | 237 | default "4.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4 |
Vicente Olivert Riera | aef2df8 | 2015-11-02 15:56:51 +0100 | [diff] [blame] | 238 | default "4.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 |
Peter Korsgaard | 8dc6829 | 2015-09-01 10:05:20 +0200 | [diff] [blame] | 239 | default "4.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 |
Gustavo Zacarias | dae7d8a | 2015-06-22 10:11:03 -0300 | [diff] [blame] | 240 | default "4.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1 |
Gustavo Zacarias | e714ee9 | 2015-04-13 10:00:23 -0300 | [diff] [blame] | 241 | default "4.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 |
Peter Korsgaard | 81366ed | 2015-02-09 13:31:23 +0100 | [diff] [blame] | 242 | default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19 |
Gustavo Zacarias | bf6f74d | 2014-12-08 08:10:39 -0300 | [diff] [blame] | 243 | default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 |
Gustavo Zacarias | 2d312b7 | 2014-10-06 08:44:39 -0300 | [diff] [blame] | 244 | default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 |
Gustavo Zacarias | 911516f | 2014-08-03 23:29:22 -0300 | [diff] [blame] | 245 | default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 |
Gustavo Zacarias | fb29afe | 2014-06-09 08:30:33 -0300 | [diff] [blame] | 246 | default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 |
Gustavo Zacarias | 4916b88 | 2014-04-01 06:19:48 -0300 | [diff] [blame] | 247 | default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 |
Yann E. MORIN | a5a3096 | 2014-03-01 15:53:01 +0100 | [diff] [blame] | 248 | default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 |
| 249 | default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |
| 250 | default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 |
| 251 | default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 |
| 252 | default "3.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 |
| 253 | default "3.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 |
| 254 | default "3.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 |
| 255 | default "3.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 |
| 256 | default "3.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 |
| 257 | default "3.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 |
| 258 | default "3.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 |
| 259 | default "3.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 |
| 260 | default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 |
| 261 | default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 |
| 262 | default "2.6" |
Thomas Petazzoni | 8ba2a76 | 2015-08-04 20:00:33 +0200 | [diff] [blame] | 263 | |
| 264 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 |
| 265 | bool |
| 266 | |
| 267 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 |
| 268 | bool |
| 269 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 |
| 270 | |
| 271 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 |
| 272 | bool |
| 273 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 |
| 274 | |
| 275 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6 |
| 276 | bool |
| 277 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 |
| 278 | |
| 279 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 280 | bool |
| 281 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6 |
| 282 | |
| 283 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 284 | bool |
| 285 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 286 | |
| 287 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 288 | bool |
| 289 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 290 | |
| 291 | config BR2_TOOLCHAIN_GCC_AT_LEAST_5 |
| 292 | bool |
| 293 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 294 | |
Thomas Petazzoni | 519d83b | 2016-04-27 15:54:03 +0200 | [diff] [blame] | 295 | config BR2_TOOLCHAIN_GCC_AT_LEAST_6 |
| 296 | bool |
| 297 | select BR2_TOOLCHAIN_GCC_AT_LEAST_5 |
| 298 | |
Thomas Petazzoni | 8ba2a76 | 2015-08-04 20:00:33 +0200 | [diff] [blame] | 299 | # This order guarantees that the highest version is set, as kconfig |
| 300 | # stops affecting a value on the first matching default. |
| 301 | config BR2_TOOLCHAIN_GCC_AT_LEAST |
| 302 | string |
Thomas Petazzoni | 519d83b | 2016-04-27 15:54:03 +0200 | [diff] [blame] | 303 | default "6" if BR2_TOOLCHAIN_GCC_AT_LEAST_6 |
Thomas Petazzoni | 8ba2a76 | 2015-08-04 20:00:33 +0200 | [diff] [blame] | 304 | default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5 |
| 305 | default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 306 | default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 307 | default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 308 | default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6 |
| 309 | default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 |
| 310 | default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 |
| 311 | default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 312 | |
| 313 | config BR2_TOOLCHAIN_HAS_SYNC_1 |
| 314 | bool |
| 315 | default y |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 316 | depends on !BR2_bfin |
Waldemar Brodkorb | df00b17 | 2016-06-13 08:03:03 +0200 | [diff] [blame] | 317 | depends on !BR2_m68k_cf |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 318 | depends on !BR2_microblaze |
| 319 | depends on !BR2_sparc |
| 320 | depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) |
| 321 | |
| 322 | config BR2_TOOLCHAIN_HAS_SYNC_2 |
| 323 | bool |
| 324 | default y if BR2_TOOLCHAIN_HAS_SYNC_1 |
| 325 | |
| 326 | config BR2_TOOLCHAIN_HAS_SYNC_4 |
| 327 | bool |
| 328 | default y |
Waldemar Brodkorb | df00b17 | 2016-06-13 08:03:03 +0200 | [diff] [blame] | 329 | depends on !BR2_m68k_cf |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 330 | depends on !BR2_sparc |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 331 | depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) |
| 332 | |
| 333 | # The availability of __sync for 8-byte types on ARM is somewhat |
| 334 | # complicated: |
| 335 | # |
| 336 | # - It appeared in gcc starting with gcc 4.7. |
| 337 | # |
| 338 | # - On ARMv7, there is no problem, it can be directly implemented in |
| 339 | # userspace. |
| 340 | # |
| 341 | # - On < ARMv7, it requires help from the kernel. Unfortunately, the |
| 342 | # libgcc code implementing 8-byte __sync with the help from the |
| 343 | # kernel calls __write() when a failure occurs, which is a function |
| 344 | # internal to glibc, not available in uClibc and musl. This means |
| 345 | # that the 8-byte __sync operations are not available on < ARMv7 |
| 346 | # with uClibc and musl. This problem was fixed as part of gcc |
| 347 | # PR68059, which was backported to the gcc 5 branch, but isn't yet |
| 348 | # part of any gcc 5.x release. |
| 349 | # |
| 350 | config BR2_TOOLCHAIN_ARM_HAS_SYNC_8 |
| 351 | bool |
| 352 | default y |
| 353 | depends on BR2_arm || BR2_armeb |
| 354 | depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 355 | depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_ARM_CPU_ARMV7A |
| 356 | |
| 357 | # 8-byte intrinsics available on most x86 CPUs, except a few old ones |
| 358 | config BR2_TOOLCHAIN_X86_HAS_SYNC_8 |
| 359 | bool |
| 360 | default y |
| 361 | depends on BR2_i386 |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 362 | depends on !BR2_x86_i486 |
| 363 | depends on !BR2_x86_c3 |
| 364 | depends on !BR2_x86_winchip_c6 |
| 365 | depends on !BR2_x86_winchip2 |
| 366 | |
| 367 | # 8-byte intrinsics available: |
| 368 | # - On all 64 bits architecture |
| 369 | # - On a certain combinations of ARM platforms |
| 370 | # - On certain x86 32 bits CPUs |
| 371 | config BR2_TOOLCHAIN_HAS_SYNC_8 |
| 372 | bool |
| 373 | default y if BR2_ARCH_IS_64 |
| 374 | default y if BR2_TOOLCHAIN_ARM_HAS_SYNC_8 |
| 375 | default y if BR2_TOOLCHAIN_X86_HAS_SYNC_8 |
| 376 | |
Thomas Petazzoni | 42735cb | 2016-03-06 21:47:16 +0100 | [diff] [blame] | 377 | # libatomic is available since gcc 4.8, when thread support is |
Romain Naour | b3d1fb2 | 2016-08-02 19:25:55 +0200 | [diff] [blame] | 378 | # enabled. Also, libatomic doesn't recognize "uclinux" as a valid OS |
| 379 | # part of the tuple, and is therefore not build on uclinux targets, |
| 380 | # which is why BR2_BINFMT_FLAT configurations are excluded. |
Thomas Petazzoni | 42735cb | 2016-03-06 21:47:16 +0100 | [diff] [blame] | 381 | config BR2_TOOLCHAIN_HAS_LIBATOMIC |
| 382 | bool |
| 383 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 && \ |
Romain Naour | b3d1fb2 | 2016-08-02 19:25:55 +0200 | [diff] [blame] | 384 | BR2_TOOLCHAIN_HAS_THREADS && \ |
| 385 | !BR2_BINFMT_FLAT |
Thomas Petazzoni | 42735cb | 2016-03-06 21:47:16 +0100 | [diff] [blame] | 386 | |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 387 | # __atomic intrinsics are available: |
| 388 | # - with gcc 4.8, either through built-ins or libatomic, on all |
Thomas Petazzoni | 42735cb | 2016-03-06 21:47:16 +0100 | [diff] [blame] | 389 | # architectures. Since we don't want to separate the cases where |
| 390 | # libatomic is needed vs. not needed, we simplify thing and only |
| 391 | # support situations where libatomic is available, even if on some |
| 392 | # architectures libatomic is not strictly needed as all __atomic |
| 393 | # intrinsics might be built-in. The only case where libatomic is |
| 394 | # missing entirely is when the toolchain does not have support for |
| 395 | # threads. However, a package that does not need threads but still |
| 396 | # uses atomics is quite a corner case, which does not warrant the |
| 397 | # added complexity. |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 398 | # - with gcc 4.7, libatomic did not exist, so only built-ins are |
| 399 | # available. This means that __atomic can only be used in a subset |
| 400 | # of the architectures |
| 401 | config BR2_TOOLCHAIN_HAS_ATOMIC |
| 402 | bool |
Thomas Petazzoni | 42735cb | 2016-03-06 21:47:16 +0100 | [diff] [blame] | 403 | default y if BR2_TOOLCHAIN_HAS_LIBATOMIC |
Thomas Petazzoni | 6856e41 | 2016-02-02 16:31:20 +0100 | [diff] [blame] | 404 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_arm |
| 405 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_armeb |
| 406 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_xtensa |
| 407 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_ARCH_IS_64 |
Samuel Martin | b16f8c7 | 2016-07-03 15:47:37 +0200 | [diff] [blame] | 408 | |
| 409 | # - libquadmath is not needed/available on all architectures (but gcc |
| 410 | # correctly handles this already). |
| 411 | # - At least, libquadmath is available on: |
| 412 | # - i*86 |
| 413 | # - x86_64 |
| 414 | # - When available, libquadmath requires wchar support. |
| 415 | config BR2_TOOLCHAIN_HAS_LIBQUADMATH |
| 416 | bool |
| 417 | default y if BR2_i386 || BR2_x86_64 |