Bernhard Reutner-Fischer | 51a61c9 | 2007-09-22 14:16:25 +0000 | [diff] [blame] | 1 | menu "Toolchain" |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 2 | |
Fabio Porcedda | 5f70a00 | 2014-04-07 11:56:48 +0200 | [diff] [blame] | 3 | # Invisible option that makes sure the toolchain package always gets |
| 4 | # built |
| 5 | config BR2_TOOLCHAIN |
| 6 | bool |
| 7 | default y |
| 8 | |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 9 | # Should be selected for glibc or eglibc |
| 10 | config BR2_TOOLCHAIN_USES_GLIBC |
| 11 | bool |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 12 | select BR2_USE_WCHAR |
| 13 | select BR2_ENABLE_LOCALE |
Thomas Petazzoni | 85cb34a | 2017-07-04 16:47:46 +0200 | [diff] [blame] | 14 | select BR2_TOOLCHAIN_HAS_FULL_GETTEXT |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 15 | select BR2_TOOLCHAIN_HAS_THREADS |
| 16 | select BR2_TOOLCHAIN_HAS_THREADS_DEBUG |
Thomas Petazzoni | c64f948 | 2014-02-18 22:08:59 +0100 | [diff] [blame] | 17 | select BR2_TOOLCHAIN_HAS_THREADS_NPTL |
Patrick Havelange | 001f9a7 | 2019-01-29 10:39:16 +0100 | [diff] [blame] | 18 | select BR2_TOOLCHAIN_HAS_UCONTEXT |
Waldemar Brodkorb | 3c93901 | 2016-07-11 16:35:14 +0200 | [diff] [blame] | 19 | select BR2_TOOLCHAIN_SUPPORTS_PIE |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 20 | |
| 21 | config BR2_TOOLCHAIN_USES_UCLIBC |
| 22 | bool |
Patrick Havelange | 001f9a7 | 2019-01-29 10:39:16 +0100 | [diff] [blame] | 23 | # ucontext is only available for a subset of the supported |
| 24 | # architectures |
| 25 | select BR2_TOOLCHAIN_HAS_UCONTEXT if BR2_ARM_CPU_HAS_ARM || BR2_i386 \ |
| 26 | || BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el \ |
| 27 | || BR2_sparc || BR2_x86_64 |
Waldemar Brodkorb | fd00d6d | 2016-07-31 23:41:26 +0200 | [diff] [blame] | 28 | select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 29 | |
Thomas Petazzoni | a1d94aa | 2013-10-08 20:17:09 +0200 | [diff] [blame] | 30 | config BR2_TOOLCHAIN_USES_MUSL |
| 31 | bool |
Thomas Petazzoni | a1d94aa | 2013-10-08 20:17:09 +0200 | [diff] [blame] | 32 | select BR2_USE_WCHAR |
| 33 | select BR2_ENABLE_LOCALE |
| 34 | select BR2_TOOLCHAIN_HAS_THREADS |
| 35 | select BR2_TOOLCHAIN_HAS_THREADS_DEBUG |
Thomas Petazzoni | c64f948 | 2014-02-18 22:08:59 +0100 | [diff] [blame] | 36 | select BR2_TOOLCHAIN_HAS_THREADS_NPTL |
Patrick Havelange | 001f9a7 | 2019-01-29 10:39:16 +0100 | [diff] [blame] | 37 | select BR2_TOOLCHAIN_HAS_UCONTEXT |
Baruch Siach | fa39753 | 2017-05-23 01:07:09 +0300 | [diff] [blame] | 38 | select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_STATIC_LIBS |
Thomas Petazzoni | a1d94aa | 2013-10-08 20:17:09 +0200 | [diff] [blame] | 39 | |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 40 | choice |
| 41 | prompt "Toolchain type" |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 42 | help |
Bernhard Reutner-Fischer | 4b0d5a8 | 2007-09-26 21:12:38 +0000 | [diff] [blame] | 43 | Select whether to use the toolchain provided by buildroot |
| 44 | or an external toolchain. |
| 45 | |
| 46 | Some vendors provide toolchains in binary form, some in |
| 47 | source form. |
Bernhard Reutner-Fischer | 7bc7c8e | 2007-09-25 22:03:18 +0000 | [diff] [blame] | 48 | |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 49 | config BR2_TOOLCHAIN_BUILDROOT |
Bernhard Reutner-Fischer | 51a61c9 | 2007-09-22 14:16:25 +0000 | [diff] [blame] | 50 | bool "Buildroot toolchain" |
Yann E. MORIN | 31a7261 | 2017-09-03 11:22:16 +0200 | [diff] [blame] | 51 | depends on BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT |
Peter Korsgaard | 02a623d | 2008-08-04 19:07:05 +0000 | [diff] [blame] | 52 | |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 53 | config BR2_TOOLCHAIN_EXTERNAL |
Peter Korsgaard | ecc81fe | 2010-02-08 11:01:04 +0100 | [diff] [blame] | 54 | bool "External toolchain" |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 55 | help |
| 56 | Select if you want to use an existing cross-compiling |
| 57 | toolchain. Buildroot can either download automatically a |
| 58 | toolchain, or use an already installed toolchain. |
Bernhard Reutner-Fischer | 4b0d5a8 | 2007-09-26 21:12:38 +0000 | [diff] [blame] | 59 | |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 60 | endchoice |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 61 | |
Yann E. MORIN | 2508b16 | 2010-07-28 00:08:16 +0200 | [diff] [blame] | 62 | source "toolchain/toolchain-buildroot/Config.in" |
Yann E. MORIN | f78ea9f | 2010-07-28 00:08:14 +0200 | [diff] [blame] | 63 | source "toolchain/toolchain-external/Config.in" |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 64 | |
| 65 | # Generic toolchain options |
| 66 | |
| 67 | # we want gdb config in the middle of both source and external |
| 68 | # toolchains, but mconf won't let us source the same file twice, |
| 69 | # so put it here instead |
| 70 | source "package/gdb/Config.in.host" |
| 71 | |
| 72 | comment "Toolchain Generic Options" |
| 73 | |
| 74 | # https://sourceware.org/bugzilla/show_bug.cgi?id=19615 |
| 75 | # Affect toolchains built with binutils 2.26 (fixed in binutils 2.26.1). |
| 76 | config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19615 |
| 77 | bool |
| 78 | |
Yann E. MORIN | b514207 | 2018-11-25 10:19:49 +0100 | [diff] [blame] | 79 | # https://sourceware.org/bugzilla/show_bug.cgi?id=20006 |
| 80 | # Affect toolchains built with binutils 2.26 (fixed in binutils 2.26.1). |
| 81 | config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_20006 |
| 82 | bool |
| 83 | |
Fabrice Fontaine | 5f6f910 | 2018-08-18 00:10:13 +0200 | [diff] [blame] | 84 | # Atomic types can be: |
| 85 | # - never lock-free |
| 86 | # - sometimes lock-free |
| 87 | # - always lock-free |
| 88 | # see https://en.cppreference.com/w/c/atomic/ATOMIC_LOCK_FREE_consts |
| 89 | # |
| 90 | # On most architectures, gcc provides "always lock-free" atomic types, |
| 91 | # but a few architectures are limited to "sometimes lock-free" |
| 92 | # types. This hidden option allows to know if the architecture |
| 93 | # provides "always lock-free" atomic types. |
| 94 | config BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS |
| 95 | bool |
| 96 | default y |
| 97 | depends on !BR2_nios2 |
| 98 | depends on !BR2_ARM_CPU_ARMV4 |
| 99 | depends on !BR2_ARM_CPU_ARMV5 |
| 100 | depends on !BR2_sparc_v8 |
| 101 | depends on !BR2_m68k_cf5208 |
| 102 | |
Max Filippov | 306f507 | 2019-01-25 15:34:52 -0800 | [diff] [blame] | 103 | # GCC uses thunk functions to adjust the 'this' pointer when calling |
| 104 | # C++ member functions in classes derived with multiple inheritance. |
| 105 | # Generation of thunk functions requires support from the compiler |
| 106 | # back end. In the absence of that support target-independent code |
| 107 | # in the C++ front end is used to generate thunk functions, but it |
| 108 | # does not support vararg functions. |
| 109 | # or1k will support it in the gcc mainline starting with gcc-9. |
| 110 | config BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK |
| 111 | bool |
| 112 | default y |
| 113 | depends on !BR2_or1k |
| 114 | depends on !BR2_xtensa |
| 115 | |
Fabrice Fontaine | 5f6f910 | 2018-08-18 00:10:13 +0200 | [diff] [blame] | 116 | # Prior to gcc 7.x, exception_ptr, nested_exception and future from |
| 117 | # libstdc++ would only be provided on architectures that support |
| 118 | # always lock-free atomic ints. See |
| 119 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735. This issue has |
| 120 | # been removed in GCC 7.x, where exception propagation is now |
| 121 | # supported without lock-free atomic int. |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 122 | config BR2_TOOLCHAIN_HAS_GCC_BUG_64735 |
| 123 | bool |
Fabrice Fontaine | 5f6f910 | 2018-08-18 00:10:13 +0200 | [diff] [blame] | 124 | default y if !BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS && \ |
| 125 | !BR2_TOOLCHAIN_GCC_AT_LEAST_7 |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 126 | |
Giulio Benetti | 42fc571 | 2019-05-27 23:05:09 +0200 | [diff] [blame^] | 127 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still |
| 128 | # exists in gcc 9.x |
| 129 | config BR2_TOOLCHAIN_HAS_GCC_BUG_68485 |
| 130 | bool |
| 131 | default y if BR2_microblaze |
| 132 | |
Matt Weber | fd97bc8 | 2018-05-28 10:35:10 -0500 | [diff] [blame] | 133 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. This bug no |
| 134 | # longer exists in gcc 8.x. |
| 135 | config BR2_TOOLCHAIN_HAS_GCC_BUG_85180 |
| 136 | bool |
| 137 | default y if BR2_microblaze |
Giulio Benetti | a94dd1c | 2019-05-21 15:39:21 +0200 | [diff] [blame] | 138 | depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 |
Matt Weber | fd97bc8 | 2018-05-28 10:35:10 -0500 | [diff] [blame] | 139 | |
Matt Weber | bd03966 | 2018-05-21 15:29:42 -0500 | [diff] [blame] | 140 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85862 |
| 141 | # An infinite loop exists in the find_base_term() logic of 6.x |
| 142 | # on microblaze. http://autobuild.buildroot.net/results/158e8ebb39713e1b436a5cc1a1916f46c30694df/ |
| 143 | config BR2_TOOLCHAIN_HAS_GCC_BUG_85862 |
| 144 | bool |
| 145 | default y if BR2_microblaze |
| 146 | depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7 |
| 147 | |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 148 | config BR2_TOOLCHAIN_HAS_NATIVE_RPC |
| 149 | bool |
| 150 | |
| 151 | config BR2_USE_WCHAR |
| 152 | bool |
| 153 | |
| 154 | config BR2_ENABLE_LOCALE |
| 155 | bool |
| 156 | |
| 157 | config BR2_INSTALL_LIBSTDCPP |
| 158 | bool |
| 159 | |
| 160 | config BR2_TOOLCHAIN_HAS_FORTRAN |
| 161 | bool |
| 162 | |
| 163 | config BR2_TOOLCHAIN_HAS_THREADS |
| 164 | bool |
| 165 | |
| 166 | config BR2_TOOLCHAIN_HAS_THREADS_DEBUG |
| 167 | bool |
| 168 | |
| 169 | config BR2_TOOLCHAIN_HAS_THREADS_NPTL |
| 170 | bool |
| 171 | |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 172 | config BR2_TOOLCHAIN_HAS_SSP |
| 173 | bool |
| 174 | |
Patrick Havelange | 001f9a7 | 2019-01-29 10:39:16 +0100 | [diff] [blame] | 175 | config BR2_TOOLCHAIN_HAS_UCONTEXT |
| 176 | bool |
| 177 | |
Ed Blake | 9c80871 | 2019-03-26 12:30:45 +0000 | [diff] [blame] | 178 | config BR2_TOOLCHAIN_HAS_OPENMP |
| 179 | bool |
| 180 | |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 181 | config BR2_TOOLCHAIN_SUPPORTS_PIE |
| 182 | bool |
| 183 | |
| 184 | config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY |
| 185 | bool "Copy gconv libraries" |
| 186 | depends on BR2_TOOLCHAIN_USES_GLIBC |
| 187 | help |
| 188 | The gconv libraries are used to convert between different |
| 189 | character sets (charsets). |
| 190 | |
Ricardo Martincoski | 6d4f66f | 2018-04-01 02:08:45 -0300 | [diff] [blame] | 191 | Say 'y' if you need to store and/or display different |
| 192 | charsets. |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 193 | |
| 194 | config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST |
| 195 | string "Gconv libraries to copy" |
| 196 | depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY |
| 197 | help |
| 198 | Set to the list of gconv libraries to copy. |
| 199 | Leave empty to copy all gconv libraries. |
| 200 | |
| 201 | Specify only the basename of the libraries, leave |
| 202 | out the .so extension. Eg.: |
| 203 | IBM850 ISO8859-15 UNICODE |
| 204 | |
| 205 | Note: the full set of gconv libs are ~8MiB (on ARM). |
| 206 | |
| 207 | # This boolean is true if the toolchain provides a built-in full |
| 208 | # featured gettext implementation (glibc), and false if only a stub |
| 209 | # gettext implementation is provided (uclibc, musl) |
| 210 | config BR2_TOOLCHAIN_HAS_FULL_GETTEXT |
| 211 | bool |
| 212 | |
| 213 | config BR2_USE_MMU |
| 214 | bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL |
| 215 | default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY |
| 216 | help |
| 217 | If your target has a MMU, you should say Y here. If you |
| 218 | are unsure, just say Y. |
| 219 | |
| 220 | config BR2_TARGET_OPTIMIZATION |
| 221 | string "Target Optimizations" |
| 222 | default "" |
| 223 | help |
| 224 | Optimizations to use when building for the target host. |
| 225 | NOTE: gcc optimization level is defined in build options. |
| 226 | |
| 227 | config BR2_TARGET_LDFLAGS |
| 228 | string "Target linker options" |
| 229 | help |
Ricardo Martincoski | 6d4f66f | 2018-04-01 02:08:45 -0300 | [diff] [blame] | 230 | Extra options to pass to the linker when building for the |
| 231 | target. |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 232 | |
Ricardo Martincoski | 6d4f66f | 2018-04-01 02:08:45 -0300 | [diff] [blame] | 233 | Note that options with a '$' sign (eg. |
| 234 | -Wl,-rpath='$ORIGIN/../lib') are not supported. |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 235 | |
| 236 | config BR2_ECLIPSE_REGISTER |
| 237 | bool "Register toolchain within Eclipse Buildroot plug-in" |
| 238 | help |
| 239 | This options tells Buildroot to generate the necessary |
| 240 | configuration files to make your toolchain appear within |
| 241 | Eclipse, through the Eclipse Buildroot plugin. |
| 242 | |
| 243 | # Options for packages to depend on, if they require at least a |
| 244 | # specific version of the kernel headers. |
| 245 | # Toolchains should choose the adequate option (ie. the highest |
| 246 | # version, not all of them). |
| 247 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 |
| 248 | bool |
| 249 | |
| 250 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 |
| 251 | bool |
| 252 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 |
| 253 | |
| 254 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 |
| 255 | bool |
| 256 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 |
| 257 | |
| 258 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 |
| 259 | bool |
| 260 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 |
| 261 | |
| 262 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 |
| 263 | bool |
| 264 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 |
| 265 | |
| 266 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 |
| 267 | bool |
| 268 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 |
| 269 | |
| 270 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 |
| 271 | bool |
| 272 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 |
| 273 | |
| 274 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 |
| 275 | bool |
| 276 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 |
| 277 | |
| 278 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 |
| 279 | bool |
| 280 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 |
| 281 | |
| 282 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 |
| 283 | bool |
| 284 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 |
| 285 | |
| 286 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 |
| 287 | bool |
| 288 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 |
| 289 | |
| 290 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 |
| 291 | bool |
| 292 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 |
| 293 | |
| 294 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |
| 295 | bool |
| 296 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 |
| 297 | |
| 298 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 |
| 299 | bool |
| 300 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |
| 301 | |
| 302 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 |
| 303 | bool |
| 304 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 |
| 305 | |
| 306 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 |
| 307 | bool |
| 308 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 |
| 309 | |
| 310 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 |
| 311 | bool |
| 312 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 |
| 313 | |
| 314 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 |
| 315 | bool |
| 316 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 |
| 317 | |
| 318 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 |
| 319 | bool |
| 320 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 |
| 321 | |
| 322 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19 |
| 323 | bool |
| 324 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 |
| 325 | |
| 326 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 |
| 327 | bool |
| 328 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19 |
| 329 | |
| 330 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1 |
| 331 | bool |
| 332 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 |
| 333 | |
| 334 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 |
| 335 | bool |
| 336 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1 |
| 337 | |
| 338 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 |
| 339 | bool |
| 340 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 |
| 341 | |
| 342 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4 |
| 343 | bool |
| 344 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 |
| 345 | |
| 346 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 |
| 347 | bool |
| 348 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4 |
| 349 | |
| 350 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6 |
| 351 | bool |
| 352 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 |
| 353 | |
| 354 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7 |
| 355 | bool |
| 356 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6 |
| 357 | |
| 358 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 |
| 359 | bool |
| 360 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7 |
| 361 | |
| 362 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9 |
| 363 | bool |
| 364 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 |
| 365 | |
| 366 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10 |
| 367 | bool |
| 368 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9 |
| 369 | |
| 370 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 |
| 371 | bool |
| 372 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10 |
| 373 | |
| 374 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 |
| 375 | bool |
| 376 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 |
| 377 | |
| 378 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 |
| 379 | bool |
| 380 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 |
| 381 | |
| 382 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 |
| 383 | bool |
| 384 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 |
| 385 | |
| 386 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15 |
| 387 | bool |
| 388 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 |
| 389 | |
Bernd Kuhls | 792ead7 | 2018-04-08 20:26:43 +0200 | [diff] [blame] | 390 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16 |
| 391 | bool |
| 392 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15 |
| 393 | |
Fabio Estevam | 77fd06a | 2018-06-04 09:48:25 -0300 | [diff] [blame] | 394 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17 |
| 395 | bool |
| 396 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16 |
| 397 | |
Bernd Kuhls | c59c6c1 | 2018-08-19 21:35:54 +0200 | [diff] [blame] | 398 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18 |
| 399 | bool |
| 400 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17 |
| 401 | |
Baruch Siach | 561770f | 2018-11-20 15:30:06 +0200 | [diff] [blame] | 402 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 |
| 403 | bool |
| 404 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18 |
| 405 | |
Thomas Petazzoni | 649883d | 2018-12-31 18:52:31 +0100 | [diff] [blame] | 406 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 |
| 407 | bool |
| 408 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 |
| 409 | |
Joel Stanley | 3385946 | 2019-03-21 10:58:27 +1030 | [diff] [blame] | 410 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 |
| 411 | bool |
| 412 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 |
| 413 | |
Clément Leger | d2500dc | 2019-04-04 09:01:11 +0200 | [diff] [blame] | 414 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 |
| 415 | bool |
| 416 | select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 |
| 417 | |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 418 | # This order guarantees that the highest version is set, as kconfig |
| 419 | # stops affecting a value on the first matching default. |
| 420 | config BR2_TOOLCHAIN_HEADERS_AT_LEAST |
| 421 | string |
Clément Leger | d2500dc | 2019-04-04 09:01:11 +0200 | [diff] [blame] | 422 | default "5.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 |
Joel Stanley | 3385946 | 2019-03-21 10:58:27 +1030 | [diff] [blame] | 423 | default "5.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 |
Thomas Petazzoni | 649883d | 2018-12-31 18:52:31 +0100 | [diff] [blame] | 424 | default "4.20" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 |
Baruch Siach | 561770f | 2018-11-20 15:30:06 +0200 | [diff] [blame] | 425 | default "4.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 |
Bernd Kuhls | c59c6c1 | 2018-08-19 21:35:54 +0200 | [diff] [blame] | 426 | default "4.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18 |
Fabio Estevam | 77fd06a | 2018-06-04 09:48:25 -0300 | [diff] [blame] | 427 | default "4.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17 |
Bernd Kuhls | 792ead7 | 2018-04-08 20:26:43 +0200 | [diff] [blame] | 428 | default "4.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16 |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 429 | default "4.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15 |
| 430 | default "4.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 |
| 431 | default "4.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 |
| 432 | default "4.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 |
| 433 | default "4.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 |
| 434 | default "4.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10 |
| 435 | default "4.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9 |
| 436 | default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 |
| 437 | default "4.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7 |
| 438 | default "4.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6 |
| 439 | default "4.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 |
| 440 | default "4.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4 |
| 441 | default "4.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 |
| 442 | default "4.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 |
| 443 | default "4.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1 |
| 444 | default "4.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 |
| 445 | default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19 |
| 446 | default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 |
| 447 | default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 |
| 448 | default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 |
| 449 | default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 |
| 450 | default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 |
| 451 | default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 |
| 452 | default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |
| 453 | default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 |
| 454 | default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 |
| 455 | default "3.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 |
| 456 | default "3.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 |
| 457 | default "3.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 |
| 458 | default "3.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 |
| 459 | default "3.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 |
| 460 | default "3.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 |
| 461 | default "3.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 |
| 462 | default "3.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 |
| 463 | default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 |
| 464 | default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 |
| 465 | default "2.6" |
| 466 | |
| 467 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 |
| 468 | bool |
| 469 | |
| 470 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 |
| 471 | bool |
| 472 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 |
| 473 | |
| 474 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 |
| 475 | bool |
| 476 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 |
| 477 | |
| 478 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6 |
| 479 | bool |
| 480 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 |
| 481 | |
| 482 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 483 | bool |
| 484 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6 |
| 485 | |
| 486 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 487 | bool |
| 488 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 489 | |
| 490 | config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 491 | bool |
| 492 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 493 | |
| 494 | config BR2_TOOLCHAIN_GCC_AT_LEAST_5 |
| 495 | bool |
| 496 | select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 497 | |
| 498 | config BR2_TOOLCHAIN_GCC_AT_LEAST_6 |
| 499 | bool |
| 500 | select BR2_TOOLCHAIN_GCC_AT_LEAST_5 |
| 501 | |
| 502 | config BR2_TOOLCHAIN_GCC_AT_LEAST_7 |
| 503 | bool |
| 504 | select BR2_TOOLCHAIN_GCC_AT_LEAST_6 |
| 505 | |
Romain Naour | 0eb91bf | 2018-05-29 23:52:54 +0200 | [diff] [blame] | 506 | config BR2_TOOLCHAIN_GCC_AT_LEAST_8 |
| 507 | bool |
| 508 | select BR2_TOOLCHAIN_GCC_AT_LEAST_7 |
| 509 | |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 510 | # This order guarantees that the highest version is set, as kconfig |
| 511 | # stops affecting a value on the first matching default. |
| 512 | config BR2_TOOLCHAIN_GCC_AT_LEAST |
| 513 | string |
Romain Naour | 0eb91bf | 2018-05-29 23:52:54 +0200 | [diff] [blame] | 514 | default "8" if BR2_TOOLCHAIN_GCC_AT_LEAST_8 |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 515 | default "7" if BR2_TOOLCHAIN_GCC_AT_LEAST_7 |
| 516 | default "6" if BR2_TOOLCHAIN_GCC_AT_LEAST_6 |
| 517 | default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5 |
| 518 | default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 519 | default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 |
| 520 | default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 521 | default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6 |
| 522 | default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 |
| 523 | default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 |
| 524 | default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 |
| 525 | |
| 526 | config BR2_TOOLCHAIN_HAS_MNAN_OPTION |
| 527 | bool |
| 528 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 |
| 529 | |
| 530 | config BR2_TOOLCHAIN_HAS_SYNC_1 |
| 531 | bool |
| 532 | default y |
Ricardo Martincoski | 6e3c9ad | 2018-04-01 02:08:26 -0300 | [diff] [blame] | 533 | depends on !BR2_m68k_cf |
| 534 | depends on !BR2_microblaze |
| 535 | depends on !BR2_sparc |
| 536 | depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) |
| 537 | |
| 538 | config BR2_TOOLCHAIN_HAS_SYNC_2 |
| 539 | bool |
| 540 | default y if BR2_TOOLCHAIN_HAS_SYNC_1 |
| 541 | |
| 542 | config BR2_TOOLCHAIN_HAS_SYNC_4 |
| 543 | bool |
| 544 | default y |
| 545 | depends on !BR2_m68k_cf |
| 546 | depends on !BR2_sparc |
| 547 | depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) |
| 548 | |
| 549 | # The availability of __sync for 8-byte types on ARM is somewhat |
| 550 | # complicated: |
| 551 | # |
| 552 | # - It appeared in gcc starting with gcc 4.7. |
| 553 | # |
| 554 | # - On ARMv7, there is no problem, it can be directly implemented in |
| 555 | # userspace. |
| 556 | # |
| 557 | # - On < ARMv7, it requires help from the kernel. Unfortunately, the |
| 558 | # libgcc code implementing 8-byte __sync with the help from the |
| 559 | # kernel calls __write() when a failure occurs, which is a function |
| 560 | # internal to glibc, not available in uClibc and musl. This means |
| 561 | # that the 8-byte __sync operations are not available on < ARMv7 |
| 562 | # with uClibc and musl. This problem was fixed as part of gcc |
| 563 | # PR68059, which was backported to the gcc 5 branch, but isn't yet |
| 564 | # part of any gcc 5.x release. |
| 565 | # |
| 566 | config BR2_TOOLCHAIN_ARM_HAS_SYNC_8 |
| 567 | bool |
| 568 | default y |
| 569 | depends on BR2_arm || BR2_armeb |
| 570 | depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 |
| 571 | depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_ARM_CPU_ARMV7A |
| 572 | |
| 573 | # 8-byte intrinsics available on most x86 CPUs, except a few old ones |
| 574 | config BR2_TOOLCHAIN_X86_HAS_SYNC_8 |
| 575 | bool |
| 576 | default y |
| 577 | depends on BR2_i386 |
| 578 | depends on !BR2_x86_i486 |
| 579 | depends on !BR2_x86_c3 |
| 580 | depends on !BR2_x86_winchip_c6 |
| 581 | depends on !BR2_x86_winchip2 |
| 582 | |
| 583 | # 8-byte intrinsics available: |
| 584 | # - On all 64 bits architecture |
| 585 | # - On a certain combinations of ARM platforms |
| 586 | # - On certain x86 32 bits CPUs |
| 587 | config BR2_TOOLCHAIN_HAS_SYNC_8 |
| 588 | bool |
| 589 | default y if BR2_ARCH_IS_64 |
| 590 | default y if BR2_TOOLCHAIN_ARM_HAS_SYNC_8 |
| 591 | default y if BR2_TOOLCHAIN_X86_HAS_SYNC_8 |
| 592 | |
| 593 | # libatomic is available since gcc 4.8, when thread support is |
| 594 | # enabled. Also, libatomic doesn't recognize "uclinux" as a valid OS |
| 595 | # part of the tuple, and is therefore not build on uclinux targets, |
| 596 | # which is why BR2_BINFMT_FLAT configurations are excluded. |
| 597 | config BR2_TOOLCHAIN_HAS_LIBATOMIC |
| 598 | bool |
| 599 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 && \ |
| 600 | BR2_TOOLCHAIN_HAS_THREADS && \ |
| 601 | !BR2_BINFMT_FLAT |
| 602 | |
| 603 | # __atomic intrinsics are available: |
| 604 | # - with gcc 4.8, either through built-ins or libatomic, on all |
| 605 | # architectures. Since we don't want to separate the cases where |
| 606 | # libatomic is needed vs. not needed, we simplify thing and only |
| 607 | # support situations where libatomic is available, even if on some |
| 608 | # architectures libatomic is not strictly needed as all __atomic |
| 609 | # intrinsics might be built-in. The only case where libatomic is |
| 610 | # missing entirely is when the toolchain does not have support for |
| 611 | # threads. However, a package that does not need threads but still |
| 612 | # uses atomics is quite a corner case, which does not warrant the |
| 613 | # added complexity. |
| 614 | # - with gcc 4.7, libatomic did not exist, so only built-ins are |
| 615 | # available. This means that __atomic can only be used in a subset |
| 616 | # of the architectures |
| 617 | config BR2_TOOLCHAIN_HAS_ATOMIC |
| 618 | bool |
| 619 | default y if BR2_TOOLCHAIN_HAS_LIBATOMIC |
| 620 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_arm |
| 621 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_armeb |
| 622 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_xtensa |
| 623 | default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_ARCH_IS_64 |
| 624 | |
| 625 | # - libquadmath is not needed/available on all architectures (but gcc |
| 626 | # correctly handles this already). |
| 627 | # - At least, libquadmath is available on: |
| 628 | # - i*86 |
| 629 | # - x86_64 |
| 630 | # - When available, libquadmath requires wchar support. |
| 631 | config BR2_TOOLCHAIN_HAS_LIBQUADMATH |
| 632 | bool |
| 633 | default y if BR2_i386 || BR2_x86_64 |
Peter Korsgaard | e2e4950 | 2008-12-15 15:28:48 +0000 | [diff] [blame] | 634 | |
Bernhard Reutner-Fischer | 51a61c9 | 2007-09-22 14:16:25 +0000 | [diff] [blame] | 635 | endmenu |