Config.in 23 KB

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