2
1

Config.in 29 KB

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