Config.in 25 KB

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