Config.in 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  1. menu "Toolchain"
  2. # Invisible option that makes sure the toolchain package always gets
  3. # built
  4. config BR2_TOOLCHAIN
  5. bool
  6. default y
  7. # Should be selected for glibc or eglibc
  8. config BR2_TOOLCHAIN_USES_GLIBC
  9. bool
  10. select BR2_USE_WCHAR
  11. select BR2_ENABLE_LOCALE
  12. select BR2_TOOLCHAIN_HAS_FULL_GETTEXT
  13. select BR2_TOOLCHAIN_HAS_THREADS
  14. select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  15. select BR2_TOOLCHAIN_HAS_THREADS_NPTL
  16. select BR2_TOOLCHAIN_HAS_UCONTEXT
  17. select BR2_TOOLCHAIN_SUPPORTS_PIE
  18. config BR2_TOOLCHAIN_USES_UCLIBC
  19. bool
  20. # ucontext is only available for a subset of the supported
  21. # architectures
  22. select BR2_TOOLCHAIN_HAS_UCONTEXT if BR2_ARM_CPU_HAS_ARM || BR2_i386 \
  23. || BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el \
  24. || BR2_sparc || BR2_x86_64
  25. select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
  26. config BR2_TOOLCHAIN_USES_MUSL
  27. bool
  28. select BR2_USE_WCHAR
  29. select BR2_ENABLE_LOCALE
  30. select BR2_TOOLCHAIN_HAS_THREADS
  31. select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  32. select BR2_TOOLCHAIN_HAS_THREADS_NPTL
  33. select BR2_TOOLCHAIN_HAS_UCONTEXT
  34. select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_STATIC_LIBS
  35. choice
  36. prompt "Toolchain type"
  37. help
  38. Select whether to use the toolchain provided by buildroot
  39. or an external toolchain.
  40. Some vendors provide toolchains in binary form, some in
  41. source form.
  42. config BR2_TOOLCHAIN_BUILDROOT
  43. bool "Buildroot toolchain"
  44. depends on BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT
  45. config BR2_TOOLCHAIN_EXTERNAL
  46. bool "External toolchain"
  47. help
  48. Select if you want to use an existing cross-compiling
  49. toolchain. Buildroot can either download automatically a
  50. toolchain, or use an already installed toolchain.
  51. endchoice
  52. source "toolchain/toolchain-buildroot/Config.in"
  53. source "toolchain/toolchain-external/Config.in"
  54. # Generic toolchain options
  55. # we want gdb config in the middle of both source and external
  56. # toolchains, but mconf won't let us source the same file twice,
  57. # so put it here instead
  58. source "package/gdb/Config.in.host"
  59. comment "Toolchain Generic Options"
  60. # https://sourceware.org/bugzilla/show_bug.cgi?id=21464
  61. # Affect toolchains built with binutils 2.31.1, still not fixed.
  62. config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
  63. bool
  64. default y if BR2_or1k
  65. # https://sourceware.org/bugzilla/show_bug.cgi?id=27597
  66. # Affect toolchains built with binutils 2.36.1, still not fixed.
  67. config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
  68. bool
  69. default y if BR2_nios2
  70. # Atomic types can be:
  71. # - never lock-free
  72. # - sometimes lock-free
  73. # - always lock-free
  74. # see https://en.cppreference.com/w/c/atomic/ATOMIC_LOCK_FREE_consts
  75. #
  76. # On most architectures, gcc provides "always lock-free" atomic types,
  77. # but a few architectures are limited to "sometimes lock-free"
  78. # types. This hidden option allows to know if the architecture
  79. # provides "always lock-free" atomic types.
  80. config BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
  81. bool
  82. default y
  83. depends on !BR2_nios2
  84. depends on !BR2_ARM_CPU_ARMV4
  85. depends on !BR2_ARM_CPU_ARMV5
  86. depends on !BR2_sparc_v8
  87. depends on !BR2_m68k_cf5208
  88. # GCC uses thunk functions to adjust the 'this' pointer when calling
  89. # C++ member functions in classes derived with multiple inheritance.
  90. # Generation of thunk functions requires support from the compiler
  91. # back end. In the absence of that support target-independent code
  92. # in the C++ front end is used to generate thunk functions, but it
  93. # does not support vararg functions.
  94. # or1k will support it in the gcc mainline starting with gcc-9.
  95. config BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
  96. bool
  97. default y
  98. depends on !BR2_or1k
  99. depends on !BR2_xtensa
  100. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744. This bug no
  101. # reappeared on gcc 9.x and is still not fixed on gcc 11.x
  102. config BR2_TOOLCHAIN_HAS_GCC_BUG_43744
  103. bool
  104. default y if BR2_sh4
  105. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \
  106. BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
  107. BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \
  108. BR2_TOOLCHAIN_GCC_AT_LEAST_11
  109. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no
  110. # longer exists in gcc 8.x.
  111. config BR2_TOOLCHAIN_HAS_GCC_BUG_63261
  112. bool
  113. default y if BR2_microblaze
  114. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  115. # Prior to gcc 7.x, exception_ptr, nested_exception and future from
  116. # libstdc++ would only be provided on architectures that support
  117. # always lock-free atomic ints. See
  118. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735. This issue has
  119. # been removed in GCC 7.x, where exception propagation is now
  120. # supported without lock-free atomic int.
  121. config BR2_TOOLCHAIN_HAS_GCC_BUG_64735
  122. bool
  123. default y if !BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS && \
  124. !BR2_TOOLCHAIN_GCC_AT_LEAST_7
  125. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still
  126. # exists in gcc 9.x
  127. config BR2_TOOLCHAIN_HAS_GCC_BUG_68485
  128. bool
  129. default y if BR2_microblaze
  130. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
  131. # Error: invalid operands (*UND* and .text sections) for `-' on sh4.
  132. # This bug no longer exists in gcc 10.x but reappeared on gcc 11.x and
  133. # it still not been fixed yet.
  134. config BR2_TOOLCHAIN_HAS_GCC_BUG_83143
  135. bool
  136. default y if BR2_sh
  137. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11
  138. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. This bug no
  139. # longer exists in gcc 8.x.
  140. config BR2_TOOLCHAIN_HAS_GCC_BUG_85180
  141. bool
  142. default y if BR2_microblaze
  143. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  144. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85862
  145. # An infinite loop exists in the find_base_term() logic of 6.x
  146. # on microblaze. http://autobuild.buildroot.net/results/158e8ebb39713e1b436a5cc1a1916f46c30694df/
  147. config BR2_TOOLCHAIN_HAS_GCC_BUG_85862
  148. bool
  149. default y if BR2_microblaze
  150. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
  151. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90620
  152. # ICE: in do_output_reload, at reload1.c:7978 on microblaze.
  153. # This bug no longer exists in gcc 10.x
  154. config BR2_TOOLCHAIN_HAS_GCC_BUG_90620
  155. bool
  156. default y if BR2_microblaze
  157. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_10
  158. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93847
  159. # ICE: compiler error: Segmentation fault on Nios II. This bug
  160. # no longer exists in gcc 9.x.
  161. config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
  162. bool
  163. default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9
  164. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
  165. # Error: branch offset out of range on Nios II. This bug
  166. # no longer exists in gcc 8.x but reappeared on gcc 9.x and has been
  167. # fixed on gcc 11.x.
  168. config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
  169. bool
  170. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  171. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
  172. depends on BR2_nios2
  173. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
  174. # ICE: SH4 -Os causes internal compiler error. This bug
  175. # still exists in gcc = 11.1.0
  176. config BR2_TOOLCHAIN_HAS_GCC_BUG_101737
  177. bool
  178. default y if BR2_sh4
  179. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915
  180. # ICE: in extract_insn, at recog.c:2294 on microblaze.
  181. # This bug still exists in gcc = 11.1.0
  182. config BR2_TOOLCHAIN_HAS_GCC_BUG_101915
  183. bool
  184. default y if BR2_microblaze
  185. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101916
  186. # ICE: on SH4: Segmentation fault signal terminated program cc1.
  187. # This bug still exists in gcc = 11.1.0
  188. config BR2_TOOLCHAIN_HAS_GCC_BUG_101916
  189. bool
  190. default y if BR2_sh4
  191. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101952
  192. # ICE: on SH4: unaligned opcodes detected in executable segment.
  193. # This bug still exists in gcc = 11.1.0
  194. config BR2_TOOLCHAIN_HAS_GCC_BUG_101952
  195. bool
  196. default y if BR2_sh4
  197. config BR2_TOOLCHAIN_HAS_NATIVE_RPC
  198. bool
  199. config BR2_USE_WCHAR
  200. bool
  201. config BR2_ENABLE_LOCALE
  202. bool
  203. config BR2_INSTALL_LIBSTDCPP
  204. bool
  205. config BR2_TOOLCHAIN_HAS_DLANG
  206. bool
  207. config BR2_TOOLCHAIN_HAS_FORTRAN
  208. bool
  209. config BR2_TOOLCHAIN_HAS_THREADS
  210. bool
  211. config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  212. bool
  213. config BR2_TOOLCHAIN_HAS_THREADS_NPTL
  214. bool
  215. config BR2_TOOLCHAIN_HAS_SSP
  216. bool
  217. config BR2_TOOLCHAIN_HAS_SSP_STRONG
  218. bool
  219. default y if BR2_TOOLCHAIN_HAS_SSP && BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  220. config BR2_TOOLCHAIN_HAS_UCONTEXT
  221. bool
  222. config BR2_TOOLCHAIN_HAS_OPENMP
  223. bool
  224. config BR2_TOOLCHAIN_SUPPORTS_PIE
  225. bool
  226. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  227. bool "Copy gconv libraries"
  228. depends on BR2_TOOLCHAIN_USES_GLIBC
  229. help
  230. The gconv libraries are used to convert between different
  231. character sets (charsets).
  232. Say 'y' if you need to store and/or display different
  233. charsets.
  234. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST
  235. string "Gconv libraries to copy"
  236. depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  237. help
  238. Set to the list of gconv libraries to copy.
  239. Leave empty to copy all gconv libraries.
  240. Specify only the basename of the libraries, leave
  241. out the .so extension. Eg.:
  242. IBM850 ISO8859-15 UNICODE
  243. Note: the full set of gconv libs are ~8MiB (on ARM).
  244. config BR2_TOOLCHAIN_EXTRA_LIBS
  245. string "Extra toolchain libraries to be copied to target"
  246. default BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS if BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS != "" # legacy
  247. depends on !BR2_STATIC_LIBS
  248. help
  249. If your toolchain provides extra libraries that need to be
  250. copied to the target filesystem, enter them here, separated
  251. by spaces. The library should not include a suffix or any
  252. type of pre/post wildcard.
  253. Examples where this can be useful is for adding debug
  254. libraries to the target like the GCC libsanitizer.
  255. e.g. "libasan liblsan libtsan libubsan"
  256. # This boolean is true if the toolchain provides a built-in full
  257. # featured gettext implementation (glibc), and false if only a stub
  258. # gettext implementation is provided (uclibc, musl)
  259. config BR2_TOOLCHAIN_HAS_FULL_GETTEXT
  260. bool
  261. config BR2_USE_MMU
  262. bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL
  263. default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY
  264. help
  265. If your target has a MMU, you should say Y here. If you
  266. are unsure, just say Y.
  267. config BR2_TARGET_OPTIMIZATION
  268. string "Target Optimizations"
  269. default ""
  270. help
  271. Optimizations to use when building for the target host.
  272. NOTE: gcc optimization level is defined in build options.
  273. config BR2_TARGET_LDFLAGS
  274. string "Target linker options"
  275. help
  276. Extra options to pass to the linker when building for the
  277. target.
  278. Note that options with a '$' sign (eg.
  279. -Wl,-rpath='$ORIGIN/../lib') are not supported.
  280. config BR2_ECLIPSE_REGISTER
  281. bool "Register toolchain within Eclipse Buildroot plug-in"
  282. help
  283. This options tells Buildroot to generate the necessary
  284. configuration files to make your toolchain appear within
  285. Eclipse, through the Eclipse Buildroot plugin.
  286. # Options for packages to depend on, if they require at least a
  287. # specific version of the kernel headers.
  288. # Toolchains should choose the adequate option (ie. the highest
  289. # version, not all of them).
  290. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  291. bool
  292. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  293. bool
  294. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  295. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  296. bool
  297. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  298. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  299. bool
  300. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  301. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  302. bool
  303. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  304. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  305. bool
  306. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  307. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  308. bool
  309. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  310. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  311. bool
  312. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  313. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  314. bool
  315. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  316. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  317. bool
  318. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  319. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  320. bool
  321. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  322. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  323. bool
  324. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  325. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  326. bool
  327. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  328. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  329. bool
  330. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  331. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  332. bool
  333. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  334. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  335. bool
  336. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  337. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  338. bool
  339. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  340. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  341. bool
  342. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  343. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  344. bool
  345. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  346. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  347. bool
  348. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  349. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  350. bool
  351. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  352. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  353. bool
  354. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  355. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  356. bool
  357. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  358. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  359. bool
  360. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  361. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  362. bool
  363. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  364. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  365. bool
  366. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  367. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  368. bool
  369. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  370. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  371. bool
  372. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  373. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  374. bool
  375. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  376. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  377. bool
  378. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  379. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  380. bool
  381. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  382. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  383. bool
  384. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  385. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  386. bool
  387. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  388. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  389. bool
  390. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  391. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  392. bool
  393. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  394. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  395. bool
  396. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  397. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  398. bool
  399. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  400. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  401. bool
  402. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  403. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  404. bool
  405. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  406. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  407. bool
  408. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  409. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  410. bool
  411. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  412. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  413. bool
  414. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  415. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  416. bool
  417. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  418. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  419. bool
  420. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  421. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  422. bool
  423. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  424. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  425. bool
  426. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  427. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  428. bool
  429. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  430. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  431. bool
  432. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  433. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  434. bool
  435. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  436. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  437. bool
  438. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  439. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  440. bool
  441. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  442. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  443. bool
  444. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  445. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  446. bool
  447. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  448. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  449. bool
  450. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  451. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  452. bool
  453. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  454. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  455. bool
  456. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  457. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  458. bool
  459. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  460. select BR2_TOOLCHAIN_HEADERS_LATEST
  461. # This should be selected by the latest version, above, to indicate that
  462. # Buildroot does not know of more recent headers than the ones selected.
  463. # This allows using toolchains with headers more recent than Buildroot
  464. # knows about, while still enforcing strict check for older headers.
  465. config BR2_TOOLCHAIN_HEADERS_LATEST
  466. bool
  467. # This order guarantees that the highest version is set, as kconfig
  468. # stops affecting a value on the first matching default.
  469. config BR2_TOOLCHAIN_HEADERS_AT_LEAST
  470. string
  471. default "5.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  472. default "5.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  473. default "5.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  474. default "5.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  475. default "5.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  476. default "5.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  477. default "5.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  478. default "5.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  479. default "5.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  480. default "5.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  481. default "5.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  482. default "5.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  483. default "5.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  484. default "5.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  485. default "5.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  486. default "5.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  487. default "4.20" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  488. default "4.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  489. default "4.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  490. default "4.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  491. default "4.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  492. default "4.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  493. default "4.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  494. default "4.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  495. default "4.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  496. default "4.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  497. default "4.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  498. default "4.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  499. default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  500. default "4.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  501. default "4.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  502. default "4.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  503. default "4.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  504. default "4.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  505. default "4.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  506. default "4.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  507. default "4.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  508. default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  509. default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  510. default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  511. default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  512. default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  513. default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  514. default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  515. default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  516. default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  517. default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  518. default "3.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  519. default "3.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  520. default "3.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  521. default "3.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  522. default "3.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  523. default "3.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  524. default "3.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  525. default "3.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  526. default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  527. default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  528. default "2.6"
  529. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  530. bool
  531. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  532. bool
  533. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  534. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  535. bool
  536. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  537. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  538. bool
  539. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  540. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  541. bool
  542. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  543. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  544. bool
  545. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  546. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  547. bool
  548. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  549. config BR2_TOOLCHAIN_GCC_AT_LEAST_5
  550. bool
  551. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  552. config BR2_TOOLCHAIN_GCC_AT_LEAST_6
  553. bool
  554. select BR2_TOOLCHAIN_GCC_AT_LEAST_5
  555. config BR2_TOOLCHAIN_GCC_AT_LEAST_7
  556. bool
  557. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  558. config BR2_TOOLCHAIN_GCC_AT_LEAST_8
  559. bool
  560. select BR2_TOOLCHAIN_GCC_AT_LEAST_7
  561. config BR2_TOOLCHAIN_GCC_AT_LEAST_9
  562. bool
  563. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  564. config BR2_TOOLCHAIN_GCC_AT_LEAST_10
  565. bool
  566. select BR2_TOOLCHAIN_GCC_AT_LEAST_9
  567. config BR2_TOOLCHAIN_GCC_AT_LEAST_11
  568. bool
  569. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  570. # This order guarantees that the highest version is set, as kconfig
  571. # stops affecting a value on the first matching default.
  572. config BR2_TOOLCHAIN_GCC_AT_LEAST
  573. string
  574. default "11" if BR2_TOOLCHAIN_GCC_AT_LEAST_11
  575. default "10" if BR2_TOOLCHAIN_GCC_AT_LEAST_10
  576. default "9" if BR2_TOOLCHAIN_GCC_AT_LEAST_9
  577. default "8" if BR2_TOOLCHAIN_GCC_AT_LEAST_8
  578. default "7" if BR2_TOOLCHAIN_GCC_AT_LEAST_7
  579. default "6" if BR2_TOOLCHAIN_GCC_AT_LEAST_6
  580. default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5
  581. default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  582. default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  583. default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  584. default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  585. default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  586. default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  587. default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  588. config BR2_TOOLCHAIN_HAS_MNAN_OPTION
  589. bool
  590. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  591. config BR2_TOOLCHAIN_HAS_SYNC_1
  592. bool
  593. default y
  594. depends on !BR2_m68k_cf
  595. depends on !BR2_microblaze
  596. depends on !BR2_sparc
  597. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  598. config BR2_TOOLCHAIN_HAS_SYNC_2
  599. bool
  600. default y if BR2_TOOLCHAIN_HAS_SYNC_1
  601. config BR2_TOOLCHAIN_HAS_SYNC_4
  602. bool
  603. default y
  604. depends on !BR2_m68k_cf
  605. depends on !BR2_sparc
  606. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  607. # The availability of __sync for 8-byte types on ARM is somewhat
  608. # complicated:
  609. #
  610. # - It appeared in gcc starting with gcc 4.7.
  611. #
  612. # - On ARMv7, there is no problem, it can be directly implemented in
  613. # userspace.
  614. #
  615. # - On < ARMv7, it requires help from the kernel. Unfortunately, the
  616. # libgcc code implementing 8-byte __sync with the help from the
  617. # kernel calls __write() when a failure occurs, which is a function
  618. # internal to glibc, not available in uClibc and musl. This means
  619. # that the 8-byte __sync operations are not available on < ARMv7
  620. # with uClibc and musl. This problem was fixed as part of gcc
  621. # PR68059, which was backported to the gcc 5 branch, but isn't yet
  622. # part of any gcc 5.x release.
  623. #
  624. config BR2_TOOLCHAIN_ARM_HAS_SYNC_8
  625. bool
  626. default y
  627. depends on BR2_arm || BR2_armeb
  628. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  629. depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_ARM_CPU_ARMV7A
  630. # 8-byte intrinsics available on most x86 CPUs, except a few old ones
  631. config BR2_TOOLCHAIN_X86_HAS_SYNC_8
  632. bool
  633. default y
  634. depends on BR2_i386
  635. depends on !BR2_x86_i486
  636. depends on !BR2_x86_c3
  637. depends on !BR2_x86_winchip_c6
  638. depends on !BR2_x86_winchip2
  639. # 8-byte intrinsics available:
  640. # - On all 64 bits architecture
  641. # - On a certain combinations of ARM platforms
  642. # - On certain x86 32 bits CPUs
  643. config BR2_TOOLCHAIN_HAS_SYNC_8
  644. bool
  645. default y if BR2_ARCH_IS_64
  646. default y if BR2_TOOLCHAIN_ARM_HAS_SYNC_8
  647. default y if BR2_TOOLCHAIN_X86_HAS_SYNC_8
  648. # libatomic is available since gcc 4.8, when thread support is
  649. # enabled. Also, libatomic doesn't recognize "uclinux" as a valid OS
  650. # part of the tuple, and is therefore not build on uclinux targets,
  651. # which is why BR2_BINFMT_FLAT configurations are excluded.
  652. config BR2_TOOLCHAIN_HAS_LIBATOMIC
  653. bool
  654. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 && \
  655. !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_AARCH64 && \
  656. BR2_TOOLCHAIN_HAS_THREADS && \
  657. !BR2_BINFMT_FLAT
  658. # __atomic intrinsics are available:
  659. # - with gcc 4.8, either through built-ins or libatomic, on all
  660. # architectures. Since we don't want to separate the cases where
  661. # libatomic is needed vs. not needed, we simplify thing and only
  662. # support situations where libatomic is available, even if on some
  663. # architectures libatomic is not strictly needed as all __atomic
  664. # intrinsics might be built-in. The only case where libatomic is
  665. # missing entirely is when the toolchain does not have support for
  666. # threads. However, a package that does not need threads but still
  667. # uses atomics is quite a corner case, which does not warrant the
  668. # added complexity.
  669. # - with gcc 4.7, libatomic did not exist, so only built-ins are
  670. # available. This means that __atomic can only be used in a subset
  671. # of the architectures
  672. config BR2_TOOLCHAIN_HAS_ATOMIC
  673. bool
  674. default y if BR2_TOOLCHAIN_HAS_LIBATOMIC
  675. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_arm
  676. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_armeb
  677. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_xtensa
  678. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_ARCH_IS_64
  679. # - libquadmath is not needed/available on all architectures (but gcc
  680. # correctly handles this already).
  681. # - At least, libquadmath is available on:
  682. # - i*86
  683. # - x86_64
  684. # - When available, libquadmath requires wchar support.
  685. config BR2_TOOLCHAIN_HAS_LIBQUADMATH
  686. bool
  687. default y if BR2_i386 || BR2_x86_64
  688. endmenu