toolchain-common.in 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. # Generic toolchain options
  2. # we want gdb config in the middle of both source and external
  3. # toolchains, but mconf won't let us source the same file twice,
  4. # so put it here instead
  5. source "package/gdb/Config.in.host"
  6. config BR2_TOOLCHAIN_HAS_GCC_BUG_58595
  7. bool
  8. config BR2_TOOLCHAIN_HAS_GCC_BUG_58854
  9. bool
  10. config BR2_TOOLCHAIN_HAS_NATIVE_RPC
  11. bool
  12. config BR2_USE_WCHAR
  13. bool
  14. config BR2_ENABLE_LOCALE
  15. bool
  16. config BR2_INSTALL_LIBSTDCPP
  17. bool
  18. config BR2_TOOLCHAIN_HAS_THREADS
  19. bool
  20. config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  21. bool
  22. config BR2_TOOLCHAIN_HAS_THREADS_NPTL
  23. bool
  24. config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
  25. bool
  26. config BR2_TOOLCHAIN_HAS_SSP
  27. bool
  28. config BR2_ENABLE_LOCALE_PURGE
  29. bool "Purge unwanted locales"
  30. help
  31. Explicitly specify what locales to install on target. If N
  32. then all locales supported by packages are installed.
  33. config BR2_ENABLE_LOCALE_WHITELIST
  34. string "Locales to keep"
  35. default "C en_US de fr"
  36. depends on BR2_ENABLE_LOCALE_PURGE
  37. help
  38. Whitespace seperated list of locales to allow on target.
  39. Locales not listed here will be removed from the target.
  40. See 'locale -a' on your host for a list of locales available
  41. on your build host, or have a look in /usr/share/locale in
  42. the target file system for available locales.
  43. Notice that listing a locale here doesn't guarantee that it
  44. will be available on the target - That purely depends on the
  45. support for that locale in the selected packages.
  46. config BR2_GENERATE_LOCALE
  47. string "Generate locale data"
  48. default ""
  49. depends on \
  50. (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
  51. BR2_TOOLCHAIN_USES_GLIBC
  52. help
  53. Generate support for a list of locales. Locales can be
  54. specified with or without encoding, when no encoding is
  55. specified, UTF-8 is assumed. Examples of locales: en_US,
  56. fr_FR.UTF-8.
  57. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  58. bool "Copy gconv libraries"
  59. depends on BR2_TOOLCHAIN_USES_GLIBC
  60. help
  61. The gconv libraries are used to convert between different
  62. character sets (charsets).
  63. Say 'y' if you need to store and/or display different charsets.
  64. config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST
  65. string "Gconv libraries to copy"
  66. depends on BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY
  67. help
  68. Set to the list of gconv libraries to copy.
  69. Leave empty to copy all gconv libraries.
  70. Specify only the basename of the libraries, leave
  71. out the .so extension. Eg.:
  72. IBM850 ISO8859-15 UNICODE
  73. Note: the full set of gconv libs are ~8MiB (on ARM).
  74. # glibc and eglibc directly include gettext, so a separatly compiled
  75. # gettext isn't needed and shouldn't be built to avoid conflicts. Some
  76. # packages always need gettext, other packages only need gettext when
  77. # locale support is enabled. See the documentation for how packages
  78. # should rely on the following two options.
  79. config BR2_NEEDS_GETTEXT
  80. bool
  81. default y if BR2_TOOLCHAIN_USES_UCLIBC
  82. config BR2_NEEDS_GETTEXT_IF_LOCALE
  83. bool
  84. default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
  85. config BR2_USE_MMU
  86. bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL
  87. default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY
  88. help
  89. If your target has a MMU, you should say Y here. If you
  90. are unsure, just say Y.
  91. config BR2_TARGET_OPTIMIZATION
  92. string "Target Optimizations"
  93. default ""
  94. help
  95. Optimizations to use when building for the target host.
  96. NOTE: gcc optimization level is defined in build options.
  97. config BR2_TARGET_LDFLAGS
  98. string "Target linker options"
  99. help
  100. Extra options to pass to the linker when building for the target.
  101. Note that options with a '$' sign (eg. -Wl,-rpath='$ORIGIN/../lib')
  102. are not supported.
  103. config BR2_ECLIPSE_REGISTER
  104. bool "Register toolchain within Eclipse Buildroot plug-in"
  105. help
  106. This options tells Buildroot to generate the necessary
  107. configuration files to make your toolchain appear within
  108. Eclipse, through the Eclipse Buildroot plugin.
  109. # Options for packages to depend on, if they require at least a
  110. # specific version of the kernel headers.
  111. # Toolchains should choose the adequate option (ie. the highest
  112. # version, not all of them).
  113. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  114. bool
  115. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  116. bool
  117. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  118. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  119. bool
  120. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  121. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  122. bool
  123. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  124. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  125. bool
  126. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  127. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  128. bool
  129. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  130. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  131. bool
  132. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  133. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  134. bool
  135. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  136. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  137. bool
  138. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  139. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  140. bool
  141. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  142. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  143. bool
  144. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  145. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  146. bool
  147. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  148. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  149. bool
  150. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  151. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  152. bool
  153. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  154. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  155. bool
  156. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  157. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  158. bool
  159. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  160. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  161. bool
  162. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  163. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  164. bool
  165. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  166. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  167. bool
  168. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  169. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  170. bool
  171. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  172. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  173. bool
  174. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  175. config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  176. bool
  177. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  178. # This order guarantees that the highest version is set, as kconfig
  179. # stops affecting a value on the first matching default.
  180. config BR2_TOOLCHAIN_HEADERS_AT_LEAST
  181. string
  182. default "4.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  183. default "4.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  184. default "3.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  185. default "3.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  186. default "3.17" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  187. default "3.16" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  188. default "3.15" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  189. default "3.14" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  190. default "3.13" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  191. default "3.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  192. default "3.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  193. default "3.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  194. default "3.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  195. default "3.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  196. default "3.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  197. default "3.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  198. default "3.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  199. default "3.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  200. default "3.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  201. default "3.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  202. default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  203. default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  204. default "2.6"
  205. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  206. bool
  207. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  208. bool
  209. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
  210. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  211. bool
  212. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  213. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  214. bool
  215. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  216. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  217. bool
  218. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  219. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  220. bool
  221. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  222. config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  223. bool
  224. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  225. config BR2_TOOLCHAIN_GCC_AT_LEAST_5
  226. bool
  227. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  228. # This order guarantees that the highest version is set, as kconfig
  229. # stops affecting a value on the first matching default.
  230. config BR2_TOOLCHAIN_GCC_AT_LEAST
  231. string
  232. default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5
  233. default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  234. default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  235. default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  236. default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
  237. default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
  238. default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
  239. default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3