Config.in 27 KB

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