Config.in 26 KB

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