Config.in 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  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_SUPPORTS_PIE
  17. config BR2_TOOLCHAIN_USES_UCLIBC
  18. bool
  19. select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
  20. config BR2_TOOLCHAIN_USES_MUSL
  21. bool
  22. select BR2_USE_WCHAR
  23. select BR2_ENABLE_LOCALE
  24. select BR2_TOOLCHAIN_HAS_THREADS
  25. select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  26. select BR2_TOOLCHAIN_HAS_THREADS_NPTL
  27. select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_STATIC_LIBS
  28. choice
  29. prompt "Toolchain type"
  30. help
  31. Select whether to use the toolchain provided by buildroot
  32. or an external toolchain.
  33. Some vendors provide toolchains in binary form, some in
  34. source form.
  35. config BR2_TOOLCHAIN_BUILDROOT
  36. bool "Buildroot toolchain"
  37. depends on BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT
  38. config BR2_TOOLCHAIN_EXTERNAL
  39. bool "External toolchain"
  40. help
  41. Select if you want to use an existing cross-compiling
  42. toolchain. Buildroot can either download automatically a
  43. toolchain, or use an already installed toolchain.
  44. endchoice
  45. source "toolchain/toolchain-buildroot/Config.in"
  46. source "toolchain/toolchain-external/Config.in"
  47. # Generic toolchain options
  48. # we want gdb config in the middle of both source and external
  49. # toolchains, but mconf won't let us source the same file twice,
  50. # so put it here instead
  51. source "package/gdb/Config.in.host"
  52. comment "Toolchain Generic Options"
  53. # https://sourceware.org/bugzilla/show_bug.cgi?id=19615
  54. # Affect toolchains built with binutils 2.26 (fixed in binutils 2.26.1).
  55. config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19615
  56. bool
  57. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735
  58. # exception_ptr, nested_exception, and future from libstdc++ are not
  59. # available for architectures not supporting always lock-free atomic
  60. # ints before GCC 7
  61. config BR2_TOOLCHAIN_HAS_GCC_BUG_64735
  62. bool
  63. default y if BR2_nios2
  64. default y if BR2_ARM_CPU_ARMV4
  65. default y if BR2_ARM_CPU_ARMV5
  66. default y if BR2_sparc_v8
  67. default y if BR2_m68k_cf5208
  68. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
  69. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. This bug no
  70. # longer exists in gcc 8.x.
  71. config BR2_TOOLCHAIN_HAS_GCC_BUG_85180
  72. bool
  73. default y if BR2_microblaze
  74. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85862
  75. # An infinite loop exists in the find_base_term() logic of 6.x
  76. # on microblaze. http://autobuild.buildroot.net/results/158e8ebb39713e1b436a5cc1a1916f46c30694df/
  77. config BR2_TOOLCHAIN_HAS_GCC_BUG_85862
  78. bool
  79. default y if BR2_microblaze
  80. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
  81. config BR2_TOOLCHAIN_HAS_NATIVE_RPC
  82. bool
  83. config BR2_USE_WCHAR
  84. bool
  85. config BR2_ENABLE_LOCALE
  86. bool
  87. config BR2_INSTALL_LIBSTDCPP
  88. bool
  89. config BR2_TOOLCHAIN_HAS_FORTRAN
  90. bool
  91. config BR2_TOOLCHAIN_HAS_THREADS
  92. bool
  93. config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  94. bool
  95. config BR2_TOOLCHAIN_HAS_THREADS_NPTL
  96. bool
  97. config BR2_TOOLCHAIN_HAS_SSP
  98. bool
  99. config BR2_TOOLCHAIN_SUPPORTS_PIE
  100. bool
  101. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  102. bool "Copy gconv libraries"
  103. depends on BR2_TOOLCHAIN_USES_GLIBC
  104. help
  105. The gconv libraries are used to convert between different
  106. character sets (charsets).
  107. Say 'y' if you need to store and/or display different
  108. charsets.
  109. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST
  110. string "Gconv libraries to copy"
  111. depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  112. help
  113. Set to the list of gconv libraries to copy.
  114. Leave empty to copy all gconv libraries.
  115. Specify only the basename of the libraries, leave
  116. out the .so extension. Eg.:
  117. IBM850 ISO8859-15 UNICODE
  118. Note: the full set of gconv libs are ~8MiB (on ARM).
  119. # This boolean is true if the toolchain provides a built-in full
  120. # featured gettext implementation (glibc), and false if only a stub
  121. # gettext implementation is provided (uclibc, musl)
  122. config BR2_TOOLCHAIN_HAS_FULL_GETTEXT
  123. bool
  124. config BR2_USE_MMU
  125. bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL
  126. default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY
  127. help
  128. If your target has a MMU, you should say Y here. If you
  129. are unsure, just say Y.
  130. config BR2_TARGET_OPTIMIZATION
  131. string "Target Optimizations"
  132. default ""
  133. help
  134. Optimizations to use when building for the target host.
  135. NOTE: gcc optimization level is defined in build options.
  136. config BR2_TARGET_LDFLAGS
  137. string "Target linker options"
  138. help
  139. Extra options to pass to the linker when building for the
  140. target.
  141. Note that options with a '$' sign (eg.
  142. -Wl,-rpath='$ORIGIN/../lib') are not supported.
  143. config BR2_ECLIPSE_REGISTER
  144. bool "Register toolchain within Eclipse Buildroot plug-in"
  145. help
  146. This options tells Buildroot to generate the necessary
  147. configuration files to make your toolchain appear within
  148. Eclipse, through the Eclipse Buildroot plugin.
  149. # Options for packages to depend on, if they require at least a
  150. # specific version of the kernel headers.
  151. # Toolchains should choose the adequate option (ie. the highest
  152. # version, not all of them).
  153. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  154. bool
  155. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  156. bool
  157. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  158. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  159. bool
  160. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  161. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  162. bool
  163. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  164. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  165. bool
  166. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  167. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  168. bool
  169. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  170. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  171. bool
  172. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  173. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  174. bool
  175. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  176. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  177. bool
  178. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  179. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  180. bool
  181. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  182. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  183. bool
  184. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  185. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  186. bool
  187. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  188. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  189. bool
  190. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  191. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  192. bool
  193. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  194. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  195. bool
  196. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  197. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  198. bool
  199. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  200. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  201. bool
  202. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  203. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  204. bool
  205. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  206. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  207. bool
  208. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  209. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  210. bool
  211. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  212. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  213. bool
  214. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  215. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  216. bool
  217. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  218. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  219. bool
  220. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  221. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  222. bool
  223. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  224. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  225. bool
  226. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  227. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  228. bool
  229. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  230. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  231. bool
  232. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  233. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  234. bool
  235. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  236. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  237. bool
  238. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  239. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  240. bool
  241. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  242. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  243. bool
  244. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  245. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  246. bool
  247. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  248. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  249. bool
  250. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  251. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  252. bool
  253. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  254. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  255. bool
  256. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  257. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  258. bool
  259. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  260. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  261. bool
  262. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  263. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  264. bool
  265. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  266. # This order guarantees that the highest version is set, as kconfig
  267. # stops affecting a value on the first matching default.
  268. config BR2_TOOLCHAIN_HEADERS_AT_LEAST
  269. string
  270. default "4.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  271. default "4.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  272. default "4.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  273. default "4.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  274. default "4.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  275. default "4.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  276. default "4.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  277. default "4.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  278. default "4.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  279. default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  280. default "4.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  281. default "4.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  282. default "4.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  283. default "4.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  284. default "4.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  285. default "4.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  286. default "4.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  287. default "4.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  288. default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  289. default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  290. default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  291. default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  292. default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  293. default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  294. default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  295. default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  296. default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  297. default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  298. default "3.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  299. default "3.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  300. default "3.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  301. default "3.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  302. default "3.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  303. default "3.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  304. default "3.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  305. default "3.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  306. default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  307. default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  308. default "2.6"
  309. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  310. bool
  311. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  312. bool
  313. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  314. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  315. bool
  316. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  317. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  318. bool
  319. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  320. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  321. bool
  322. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  323. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  324. bool
  325. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  326. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  327. bool
  328. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  329. config BR2_TOOLCHAIN_GCC_AT_LEAST_5
  330. bool
  331. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  332. config BR2_TOOLCHAIN_GCC_AT_LEAST_6
  333. bool
  334. select BR2_TOOLCHAIN_GCC_AT_LEAST_5
  335. config BR2_TOOLCHAIN_GCC_AT_LEAST_7
  336. bool
  337. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  338. config BR2_TOOLCHAIN_GCC_AT_LEAST_8
  339. bool
  340. select BR2_TOOLCHAIN_GCC_AT_LEAST_7
  341. # This order guarantees that the highest version is set, as kconfig
  342. # stops affecting a value on the first matching default.
  343. config BR2_TOOLCHAIN_GCC_AT_LEAST
  344. string
  345. default "8" if BR2_TOOLCHAIN_GCC_AT_LEAST_8
  346. default "7" if BR2_TOOLCHAIN_GCC_AT_LEAST_7
  347. default "6" if BR2_TOOLCHAIN_GCC_AT_LEAST_6
  348. default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5
  349. default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  350. default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  351. default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  352. default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  353. default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  354. default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  355. default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  356. config BR2_TOOLCHAIN_HAS_MNAN_OPTION
  357. bool
  358. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  359. config BR2_TOOLCHAIN_HAS_SYNC_1
  360. bool
  361. default y
  362. depends on !BR2_m68k_cf
  363. depends on !BR2_microblaze
  364. depends on !BR2_sparc
  365. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  366. config BR2_TOOLCHAIN_HAS_SYNC_2
  367. bool
  368. default y if BR2_TOOLCHAIN_HAS_SYNC_1
  369. config BR2_TOOLCHAIN_HAS_SYNC_4
  370. bool
  371. default y
  372. depends on !BR2_m68k_cf
  373. depends on !BR2_sparc
  374. depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT)
  375. # The availability of __sync for 8-byte types on ARM is somewhat
  376. # complicated:
  377. #
  378. # - It appeared in gcc starting with gcc 4.7.
  379. #
  380. # - On ARMv7, there is no problem, it can be directly implemented in
  381. # userspace.
  382. #
  383. # - On < ARMv7, it requires help from the kernel. Unfortunately, the
  384. # libgcc code implementing 8-byte __sync with the help from the
  385. # kernel calls __write() when a failure occurs, which is a function
  386. # internal to glibc, not available in uClibc and musl. This means
  387. # that the 8-byte __sync operations are not available on < ARMv7
  388. # with uClibc and musl. This problem was fixed as part of gcc
  389. # PR68059, which was backported to the gcc 5 branch, but isn't yet
  390. # part of any gcc 5.x release.
  391. #
  392. config BR2_TOOLCHAIN_ARM_HAS_SYNC_8
  393. bool
  394. default y
  395. depends on BR2_arm || BR2_armeb
  396. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  397. depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_ARM_CPU_ARMV7A
  398. # 8-byte intrinsics available on most x86 CPUs, except a few old ones
  399. config BR2_TOOLCHAIN_X86_HAS_SYNC_8
  400. bool
  401. default y
  402. depends on BR2_i386
  403. depends on !BR2_x86_i486
  404. depends on !BR2_x86_c3
  405. depends on !BR2_x86_winchip_c6
  406. depends on !BR2_x86_winchip2
  407. # 8-byte intrinsics available:
  408. # - On all 64 bits architecture
  409. # - On a certain combinations of ARM platforms
  410. # - On certain x86 32 bits CPUs
  411. config BR2_TOOLCHAIN_HAS_SYNC_8
  412. bool
  413. default y if BR2_ARCH_IS_64
  414. default y if BR2_TOOLCHAIN_ARM_HAS_SYNC_8
  415. default y if BR2_TOOLCHAIN_X86_HAS_SYNC_8
  416. # libatomic is available since gcc 4.8, when thread support is
  417. # enabled. Also, libatomic doesn't recognize "uclinux" as a valid OS
  418. # part of the tuple, and is therefore not build on uclinux targets,
  419. # which is why BR2_BINFMT_FLAT configurations are excluded.
  420. config BR2_TOOLCHAIN_HAS_LIBATOMIC
  421. bool
  422. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 && \
  423. BR2_TOOLCHAIN_HAS_THREADS && \
  424. !BR2_BINFMT_FLAT
  425. # __atomic intrinsics are available:
  426. # - with gcc 4.8, either through built-ins or libatomic, on all
  427. # architectures. Since we don't want to separate the cases where
  428. # libatomic is needed vs. not needed, we simplify thing and only
  429. # support situations where libatomic is available, even if on some
  430. # architectures libatomic is not strictly needed as all __atomic
  431. # intrinsics might be built-in. The only case where libatomic is
  432. # missing entirely is when the toolchain does not have support for
  433. # threads. However, a package that does not need threads but still
  434. # uses atomics is quite a corner case, which does not warrant the
  435. # added complexity.
  436. # - with gcc 4.7, libatomic did not exist, so only built-ins are
  437. # available. This means that __atomic can only be used in a subset
  438. # of the architectures
  439. config BR2_TOOLCHAIN_HAS_ATOMIC
  440. bool
  441. default y if BR2_TOOLCHAIN_HAS_LIBATOMIC
  442. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_arm
  443. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_armeb
  444. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_xtensa
  445. default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 && BR2_ARCH_IS_64
  446. # - libquadmath is not needed/available on all architectures (but gcc
  447. # correctly handles this already).
  448. # - At least, libquadmath is available on:
  449. # - i*86
  450. # - x86_64
  451. # - When available, libquadmath requires wchar support.
  452. config BR2_TOOLCHAIN_HAS_LIBQUADMATH
  453. bool
  454. default y if BR2_i386 || BR2_x86_64
  455. endmenu