Config.in 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990
  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_SUPPORTS_PIE if !BR2_STATIC_LIBS
  34. choice
  35. prompt "Toolchain type"
  36. help
  37. Select whether to use the toolchain provided by buildroot
  38. or an external toolchain.
  39. Some vendors provide toolchains in binary form, some in
  40. source form.
  41. config BR2_TOOLCHAIN_BUILDROOT
  42. bool "Buildroot toolchain"
  43. depends on BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT
  44. config BR2_TOOLCHAIN_EXTERNAL
  45. bool "External toolchain"
  46. help
  47. Select if you want to use an existing cross-compiling
  48. toolchain. Buildroot can either download automatically a
  49. toolchain, or use an already installed toolchain.
  50. endchoice
  51. source "toolchain/toolchain-buildroot/Config.in"
  52. source "toolchain/toolchain-external/Config.in"
  53. # Generic toolchain options
  54. # we want gdb config in the middle of both source and external
  55. # toolchains, but mconf won't let us source the same file twice,
  56. # so put it here instead
  57. source "package/gdb/Config.in.host"
  58. comment "Toolchain Generic Options"
  59. # https://sourceware.org/bugzilla/show_bug.cgi?id=30730
  60. # Affect toolchains built with binutils 2.40, still not fixed.
  61. config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_30730
  62. bool
  63. default y if BR2_m68k_cf
  64. # Atomic types can be:
  65. # - never lock-free
  66. # - sometimes lock-free
  67. # - always lock-free
  68. # see https://en.cppreference.com/w/c/atomic/ATOMIC_LOCK_FREE_consts
  69. #
  70. # On most architectures, gcc provides "always lock-free" atomic types,
  71. # but a few architectures are limited to "sometimes lock-free"
  72. # types. This hidden option allows to know if the architecture
  73. # provides "always lock-free" atomic types.
  74. config BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
  75. bool
  76. default y
  77. depends on !BR2_ARM_CPU_ARMV4
  78. depends on !BR2_ARM_CPU_ARMV5
  79. depends on !BR2_sparc_v8
  80. depends on !BR2_m68k_cf5208
  81. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  82. # GCC uses thunk functions to adjust the 'this' pointer when calling
  83. # C++ member functions in classes derived with multiple inheritance.
  84. # Generation of thunk functions requires support from the compiler
  85. # back end. In the absence of that support target-independent code
  86. # in the C++ front end is used to generate thunk functions, but it
  87. # does not support vararg functions.
  88. # or1k will support it in the gcc mainline starting with gcc-9.
  89. config BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
  90. bool
  91. default y
  92. depends on !BR2_or1k
  93. depends on !BR2_xtensa
  94. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744. This bug
  95. # reappeared on gcc 9.x and is still not fixed on gcc 11.x
  96. config BR2_TOOLCHAIN_HAS_GCC_BUG_43744
  97. bool
  98. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  99. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9
  100. depends on BR2_sh
  101. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no
  102. # longer exists in gcc 8.x.
  103. config BR2_TOOLCHAIN_HAS_GCC_BUG_63261
  104. bool
  105. default y if BR2_microblaze
  106. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  107. # Prior to gcc 7.x, exception_ptr, nested_exception and future from
  108. # libstdc++ would only be provided on architectures that support
  109. # always lock-free atomic ints. See
  110. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735. This issue has
  111. # been removed in GCC 7.x, where exception propagation is now
  112. # supported without lock-free atomic int.
  113. config BR2_TOOLCHAIN_HAS_GCC_BUG_64735
  114. bool
  115. default y if !BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS && \
  116. !BR2_TOOLCHAIN_GCC_AT_LEAST_7
  117. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still
  118. # exists in gcc 12.x
  119. config BR2_TOOLCHAIN_HAS_GCC_BUG_68485
  120. bool
  121. default y if BR2_microblaze
  122. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81426
  123. # error: unable to find a register to spill in class ‘R0_REGS’
  124. # The bug exists at least since gcc 6.x, so we are assuming it affects
  125. # all GCC versions.
  126. config BR2_TOOLCHAIN_HAS_GCC_BUG_81426
  127. bool
  128. default y if BR2_sh
  129. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
  130. # Error: invalid operands (*UND* and .text sections) for `-' on sh4.
  131. # This bug no longer exists in gcc 10.x but reappeared on gcc 11.x and
  132. # it still not been fixed yet.
  133. config BR2_TOOLCHAIN_HAS_GCC_BUG_83143
  134. bool
  135. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_10
  136. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_11
  137. depends on BR2_sh
  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 but reappeared in gcc 11.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. || BR2_TOOLCHAIN_GCC_AT_LEAST_11
  159. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
  160. # ICE: SH4 -Os causes internal compiler error. This bug
  161. # still exists in gcc = 11.1.0
  162. config BR2_TOOLCHAIN_HAS_GCC_BUG_101737
  163. bool
  164. default y if BR2_sh
  165. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915
  166. # ICE: in extract_insn, at recog.c:2294 on microblaze.
  167. # This bug still exists in gcc = 12.1.0
  168. config BR2_TOOLCHAIN_HAS_GCC_BUG_101915
  169. bool
  170. default y if BR2_microblaze
  171. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101916
  172. # ICE: on SH4: Segmentation fault signal terminated program cc1.
  173. # This bug still exists in gcc = 11.1.0
  174. config BR2_TOOLCHAIN_HAS_GCC_BUG_101916
  175. bool
  176. default y if BR2_sh4
  177. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101952
  178. # ICE: on SH4: unaligned opcodes detected in executable segment.
  179. # This bug still exists in gcc = 11.1.0
  180. config BR2_TOOLCHAIN_HAS_GCC_BUG_101952
  181. bool
  182. default y if BR2_sh4
  183. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028
  184. # ICE: on M68K: Error: value -16034 out of range
  185. # This bug still exists in gcc = 11.1.0
  186. config BR2_TOOLCHAIN_HAS_GCC_BUG_104028
  187. bool
  188. default y if BR2_m68k
  189. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107728
  190. # https://sourceware.org/bugzilla/show_bug.cgi?id=29621
  191. config BR2_TOOLCHAIN_HAS_GCC_BUG_107728
  192. bool
  193. default y if BR2_microblazebe || BR2_microblazeel \
  194. || BR2_mips || BR2_mipsel \
  195. || BR2_or1k \
  196. || BR2_sh
  197. depends on BR2_TOOLCHAIN_USES_GLIBC
  198. depends on BR2_OPTIMIZE_0
  199. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934
  200. # ICE: on M68K: in change_address_1, at emit-rtl.cc:2287
  201. # This bug exists in gcc = 12.3.0 and gcc = 13.2.0
  202. config BR2_TOOLCHAIN_HAS_GCC_BUG_110934
  203. bool
  204. default y if BR2_m68k
  205. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111001
  206. # ICE: on SH4: during RTL pass: sh_treg_combine2
  207. # This bug exist in gcc = 13.2.0
  208. config BR2_TOOLCHAIN_HAS_GCC_BUG_111001
  209. bool
  210. default y if BR2_sh
  211. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_13
  212. depends on BR2_OPTIMIZE_1 || \
  213. BR2_OPTIMIZE_2 || \
  214. BR2_OPTIMIZE_3
  215. config BR2_TOOLCHAIN_HAS_NATIVE_RPC
  216. bool
  217. config BR2_USE_WCHAR
  218. bool
  219. config BR2_ENABLE_LOCALE
  220. bool
  221. config BR2_INSTALL_LIBSTDCPP
  222. bool
  223. config BR2_TOOLCHAIN_HAS_DLANG
  224. bool
  225. config BR2_TOOLCHAIN_HAS_FORTRAN
  226. bool
  227. config BR2_TOOLCHAIN_HAS_THREADS
  228. bool
  229. config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  230. bool
  231. config BR2_TOOLCHAIN_HAS_THREADS_NPTL
  232. bool
  233. config BR2_TOOLCHAIN_HAS_SSP
  234. bool
  235. config BR2_TOOLCHAIN_HAS_SSP_STRONG
  236. bool
  237. default y if BR2_TOOLCHAIN_HAS_SSP && BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  238. # This boolean is true if the toolchain provides a full featured
  239. # ucontext implementation with ucontext_t and {get,make,set}context
  240. config BR2_TOOLCHAIN_HAS_UCONTEXT
  241. bool
  242. config BR2_TOOLCHAIN_HAS_OPENMP
  243. bool
  244. config BR2_TOOLCHAIN_SUPPORTS_PIE
  245. bool
  246. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  247. bool "Copy gconv libraries"
  248. depends on BR2_TOOLCHAIN_USES_GLIBC
  249. help
  250. The gconv libraries are used to convert between different
  251. character sets (charsets).
  252. Say 'y' if you need to store and/or display different
  253. charsets.
  254. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST
  255. string "Gconv libraries to copy"
  256. depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  257. help
  258. Set to the list of gconv libraries to copy.
  259. Leave empty to copy all gconv libraries.
  260. Specify only the basename of the libraries, leave
  261. out the .so extension. Eg.:
  262. IBM850 ISO8859-15 UNICODE
  263. Note: the full set of gconv libs are ~8MiB (on ARM).
  264. config BR2_TOOLCHAIN_EXTRA_LIBS
  265. string "Extra toolchain libraries to be copied to target"
  266. default BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS if BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS != "" # legacy
  267. depends on !BR2_STATIC_LIBS
  268. help
  269. If your toolchain provides extra libraries that need to be
  270. copied to the target filesystem, enter them here, separated
  271. by spaces. The library should not include a suffix or any
  272. type of pre/post wildcard.
  273. Examples where this can be useful is for adding debug
  274. libraries to the target like the GCC libsanitizer.
  275. e.g. "libasan liblsan libtsan libubsan"
  276. # This boolean is true if the toolchain provides a built-in full
  277. # featured gettext implementation (glibc), and false if only a stub
  278. # gettext implementation is provided (uclibc, musl)
  279. config BR2_TOOLCHAIN_HAS_FULL_GETTEXT
  280. bool
  281. config BR2_TARGET_OPTIMIZATION
  282. string "Target Optimizations"
  283. default ""
  284. help
  285. Optimizations to use when building for the target host.
  286. NOTE: gcc optimization level is defined in build options.
  287. config BR2_TARGET_LDFLAGS
  288. string "Target linker options"
  289. help
  290. Extra options to pass to the linker when building for the
  291. target.
  292. Note that options with a '$' sign (eg.
  293. -Wl,-rpath='$ORIGIN/../lib') are not supported.
  294. # Options for packages to depend on, if they require at least a
  295. # specific version of the kernel headers.
  296. # Toolchains should choose the adequate option (ie. the highest
  297. # version, not all of them).
  298. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  299. bool
  300. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  301. bool
  302. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  303. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  304. bool
  305. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  306. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  307. bool
  308. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  309. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  310. bool
  311. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  312. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  313. bool
  314. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  315. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  316. bool
  317. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  318. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  319. bool
  320. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  321. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  322. bool
  323. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  324. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  325. bool
  326. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  327. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  328. bool
  329. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  330. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  331. bool
  332. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  333. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  334. bool
  335. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  336. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  337. bool
  338. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  339. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  340. bool
  341. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  342. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  343. bool
  344. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  345. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  346. bool
  347. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  348. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  349. bool
  350. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  351. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  352. bool
  353. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  354. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  355. bool
  356. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  357. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  358. bool
  359. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  360. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  361. bool
  362. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  363. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  364. bool
  365. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  366. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  367. bool
  368. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  369. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  370. bool
  371. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  372. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  373. bool
  374. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  375. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  376. bool
  377. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  378. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  379. bool
  380. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  381. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  382. bool
  383. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  384. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  385. bool
  386. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  387. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  388. bool
  389. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  390. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  391. bool
  392. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  393. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  394. bool
  395. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  396. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  397. bool
  398. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  399. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  400. bool
  401. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  402. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  403. bool
  404. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  405. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  406. bool
  407. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  408. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  409. bool
  410. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  411. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  412. bool
  413. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  414. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  415. bool
  416. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  417. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  418. bool
  419. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  420. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  421. bool
  422. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  423. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  424. bool
  425. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  426. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  427. bool
  428. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  429. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  430. bool
  431. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  432. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  433. bool
  434. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  435. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  436. bool
  437. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  438. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  439. bool
  440. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  441. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  442. bool
  443. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  444. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  445. bool
  446. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  447. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  448. bool
  449. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  450. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  451. bool
  452. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  453. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  454. bool
  455. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  456. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  457. bool
  458. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  459. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  460. bool
  461. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  462. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  463. bool
  464. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  465. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  466. bool
  467. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  468. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
  469. bool
  470. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  471. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
  472. bool
  473. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
  474. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_18
  475. bool
  476. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
  477. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
  478. bool
  479. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_18
  480. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_0
  481. bool
  482. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
  483. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1
  484. bool
  485. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_0
  486. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_2
  487. bool
  488. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1
  489. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_3
  490. bool
  491. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_2
  492. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_4
  493. bool
  494. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_3
  495. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_5
  496. bool
  497. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_4
  498. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
  499. bool
  500. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_5
  501. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_7
  502. bool
  503. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
  504. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_8
  505. bool
  506. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_7
  507. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_9
  508. bool
  509. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_8
  510. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_10
  511. bool
  512. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_9
  513. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_11
  514. bool
  515. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_10
  516. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_12
  517. bool
  518. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_11
  519. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_13
  520. bool
  521. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_12
  522. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_14
  523. bool
  524. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_13
  525. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_15
  526. bool
  527. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_14
  528. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_16
  529. bool
  530. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_15
  531. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_17
  532. bool
  533. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_16
  534. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_18
  535. bool
  536. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_17
  537. select BR2_TOOLCHAIN_HEADERS_LATEST
  538. # This should be selected by the latest version, above, to indicate that
  539. # Buildroot does not know of more recent headers than the ones selected.
  540. # This allows using toolchains with headers more recent than Buildroot
  541. # knows about, while still enforcing strict check for older headers.
  542. config BR2_TOOLCHAIN_HEADERS_LATEST
  543. bool
  544. # This order guarantees that the highest version is set, as kconfig
  545. # stops affecting a value on the first matching default.
  546. config BR2_TOOLCHAIN_HEADERS_AT_LEAST
  547. string
  548. default "6.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_18
  549. default "6.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_17
  550. default "6.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_16
  551. default "6.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_15
  552. default "6.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_14
  553. default "6.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_13
  554. default "6.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_12
  555. default "6.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_11
  556. default "6.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_10
  557. default "6.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_9
  558. default "6.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_8
  559. default "6.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_7
  560. default "6.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
  561. default "6.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_5
  562. default "6.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_4
  563. default "6.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_3
  564. default "6.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_2
  565. default "6.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1
  566. default "6.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_0
  567. default "5.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
  568. default "5.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_18
  569. default "5.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
  570. default "5.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
  571. default "5.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  572. default "5.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  573. default "5.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  574. default "5.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  575. default "5.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  576. default "5.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  577. default "5.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  578. default "5.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  579. default "5.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  580. default "5.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  581. default "5.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  582. default "5.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  583. default "5.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  584. default "5.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  585. default "5.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  586. default "5.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  587. default "4.20" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  588. default "4.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  589. default "4.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  590. default "4.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  591. default "4.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  592. default "4.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  593. default "4.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  594. default "4.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  595. default "4.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  596. default "4.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  597. default "4.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  598. default "4.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  599. default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  600. default "4.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  601. default "4.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  602. default "4.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  603. default "4.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  604. default "4.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  605. default "4.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  606. default "4.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  607. default "4.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  608. default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  609. default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  610. default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  611. default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  612. default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  613. default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  614. default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  615. default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  616. default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  617. default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  618. default "3.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  619. default "3.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  620. default "3.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  621. default "3.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  622. default "3.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  623. default "3.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  624. default "3.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  625. default "3.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  626. default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  627. default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  628. default "2.6"
  629. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  630. bool
  631. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  632. bool
  633. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  634. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  635. bool
  636. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  637. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  638. bool
  639. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  640. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  641. bool
  642. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  643. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  644. bool
  645. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  646. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  647. bool
  648. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  649. config BR2_TOOLCHAIN_GCC_AT_LEAST_5
  650. bool
  651. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  652. config BR2_TOOLCHAIN_GCC_AT_LEAST_6
  653. bool
  654. select BR2_TOOLCHAIN_GCC_AT_LEAST_5
  655. config BR2_TOOLCHAIN_GCC_AT_LEAST_7
  656. bool
  657. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  658. config BR2_TOOLCHAIN_GCC_AT_LEAST_8
  659. bool
  660. select BR2_TOOLCHAIN_GCC_AT_LEAST_7
  661. config BR2_TOOLCHAIN_GCC_AT_LEAST_9
  662. bool
  663. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  664. config BR2_TOOLCHAIN_GCC_AT_LEAST_10
  665. bool
  666. select BR2_TOOLCHAIN_GCC_AT_LEAST_9
  667. config BR2_TOOLCHAIN_GCC_AT_LEAST_11
  668. bool
  669. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  670. config BR2_TOOLCHAIN_GCC_AT_LEAST_12
  671. bool
  672. select BR2_TOOLCHAIN_GCC_AT_LEAST_11
  673. config BR2_TOOLCHAIN_GCC_AT_LEAST_13
  674. bool
  675. select BR2_TOOLCHAIN_GCC_AT_LEAST_12
  676. config BR2_TOOLCHAIN_GCC_AT_LEAST_14
  677. bool
  678. select BR2_TOOLCHAIN_GCC_AT_LEAST_13
  679. config BR2_TOOLCHAIN_GCC_AT_LEAST_15
  680. bool
  681. select BR2_TOOLCHAIN_GCC_AT_LEAST_14
  682. # This order guarantees that the highest version is set, as kconfig
  683. # stops affecting a value on the first matching default.
  684. config BR2_TOOLCHAIN_GCC_AT_LEAST
  685. string
  686. default "15" if BR2_TOOLCHAIN_GCC_AT_LEAST_15
  687. default "14" if BR2_TOOLCHAIN_GCC_AT_LEAST_14
  688. default "13" if BR2_TOOLCHAIN_GCC_AT_LEAST_13
  689. default "12" if BR2_TOOLCHAIN_GCC_AT_LEAST_12
  690. default "11" if BR2_TOOLCHAIN_GCC_AT_LEAST_11
  691. default "10" if BR2_TOOLCHAIN_GCC_AT_LEAST_10
  692. default "9" if BR2_TOOLCHAIN_GCC_AT_LEAST_9
  693. default "8" if BR2_TOOLCHAIN_GCC_AT_LEAST_8
  694. default "7" if BR2_TOOLCHAIN_GCC_AT_LEAST_7
  695. default "6" if BR2_TOOLCHAIN_GCC_AT_LEAST_6
  696. default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5
  697. default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  698. default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  699. default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  700. default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  701. default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  702. default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  703. default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  704. config BR2_TOOLCHAIN_HAS_MNAN_OPTION
  705. bool
  706. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  707. config BR2_TOOLCHAIN_HAS_SYNC_1
  708. bool
  709. default y
  710. depends on !BR2_m68k_cf
  711. depends on !BR2_microblaze
  712. depends on !BR2_sparc
  713. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  714. config BR2_TOOLCHAIN_HAS_SYNC_2
  715. bool
  716. default y if BR2_TOOLCHAIN_HAS_SYNC_1
  717. config BR2_TOOLCHAIN_HAS_SYNC_4
  718. bool
  719. default y
  720. depends on !BR2_m68k_cf
  721. depends on !BR2_sparc
  722. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  723. # The availability of __sync for 8-byte types on ARM is somewhat
  724. # complicated:
  725. #
  726. # - It appeared in gcc starting with gcc 4.7.
  727. #
  728. # - On ARMv7, there is no problem, it can be directly implemented in
  729. # userspace.
  730. #
  731. # - On < ARMv7, it requires help from the kernel. Unfortunately, the
  732. # libgcc code implementing 8-byte __sync with the help from the
  733. # kernel calls __write() when a failure occurs, which is a function
  734. # internal to glibc, not available in uClibc and musl. This means
  735. # that the 8-byte __sync operations are not available on < ARMv7
  736. # with uClibc and musl. This problem was fixed as part of gcc
  737. # PR68059, which was backported to the gcc 5 branch, but isn't yet
  738. # part of any gcc 5.x release.
  739. #
  740. config BR2_TOOLCHAIN_ARM_HAS_SYNC_8
  741. bool
  742. default y
  743. depends on BR2_arm || BR2_armeb
  744. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  745. depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_ARM_CPU_ARMV7A
  746. # 8-byte intrinsics available on most x86 CPUs, except a few old ones
  747. config BR2_TOOLCHAIN_X86_HAS_SYNC_8
  748. bool
  749. default y
  750. depends on BR2_i386
  751. depends on !BR2_x86_i486
  752. depends on !BR2_x86_c3
  753. depends on !BR2_x86_winchip_c6
  754. depends on !BR2_x86_winchip2
  755. # 8-byte intrinsics available:
  756. # - On all 64 bits architecture
  757. # - On a certain combinations of ARM platforms
  758. # - On certain x86 32 bits CPUs
  759. config BR2_TOOLCHAIN_HAS_SYNC_8
  760. bool
  761. default y if BR2_ARCH_IS_64
  762. default y if BR2_TOOLCHAIN_ARM_HAS_SYNC_8
  763. default y if BR2_TOOLCHAIN_X86_HAS_SYNC_8
  764. # libatomic is available since gcc 4.8, when thread support is enabled.
  765. # However, the gcc logic in libatomic/configure.tgt does not recognize
  766. # "uclinux" as a valid OS part of the target tuple, and therefore it
  767. # does not build libatomic. The "uclinux" part of the tuple is used by
  768. # Buildroot when BR2_BINFMT_FLAT=y. This broken logic has only been
  769. # fixed for arm since gcc 10.1.0.
  770. config BR2_TOOLCHAIN_HAS_LIBATOMIC
  771. bool
  772. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  773. depends on BR2_TOOLCHAIN_HAS_THREADS
  774. depends on BR2_BINFMT_ELF || \
  775. (BR2_BINFMT_FLAT && BR2_arm && \
  776. BR2_TOOLCHAIN_GCC_AT_LEAST_10)
  777. # __atomic intrinsics are available:
  778. # - with gcc 4.8, either through built-ins or libatomic, on all
  779. # architectures. Since we don't want to separate the cases where
  780. # libatomic is needed vs. not needed, we simplify thing and only
  781. # support situations where libatomic is available, even if on some
  782. # architectures libatomic is not strictly needed as all __atomic
  783. # intrinsics might be built-in. The only case where libatomic is
  784. # missing entirely is when the toolchain does not have support for
  785. # threads. However, a package that does not need threads but still
  786. # uses atomics is quite a corner case, which does not warrant the
  787. # added complexity.
  788. # - with gcc 4.7, libatomic did not exist, so only built-ins are
  789. # available. This means that __atomic can only be used in a subset
  790. # of the architectures
  791. config BR2_TOOLCHAIN_HAS_ATOMIC
  792. bool
  793. default y if BR2_TOOLCHAIN_HAS_LIBATOMIC
  794. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_arm
  795. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_armeb
  796. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_xtensa
  797. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_ARCH_IS_64
  798. # - libquadmath is not needed/available on all architectures (but gcc
  799. # correctly handles this already).
  800. # - At least, libquadmath is available on:
  801. # - i*86
  802. # - x86_64
  803. # - PowerPC with vector scalar (VSX) instruction set
  804. # - When available, libquadmath requires wchar support.
  805. config BR2_TOOLCHAIN_HAS_LIBQUADMATH
  806. bool
  807. default y if BR2_i386 || BR2_x86_64
  808. default y if BR2_POWERPC_CPU_HAS_VSX
  809. comment "Bare metal toolchain"
  810. config BR2_TOOLCHAIN_BARE_METAL_BUILDROOT
  811. bool "Build bare metal toolchains"
  812. select BR2_PACKAGE_NEWLIB_BARE_METAL
  813. help
  814. Select if you need a bare-metal toolchain for building
  815. platform specific firmware images.
  816. source "toolchain/toolchain-bare-metal-buildroot/Config.in"
  817. endmenu