Config.in 25 KB

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