Config.in.host 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. comment "GCC Options"
  2. config BR2_GCC_NEEDS_MPC
  3. bool
  4. config BR2_GCC_SUPPORTS_GRAPHITE
  5. bool
  6. choice
  7. prompt "GCC compiler Version"
  8. default BR2_GCC_VERSION_ARC if BR2_arc
  9. default BR2_GCC_VERSION_5_X
  10. help
  11. Select the version of gcc you wish to use.
  12. config BR2_GCC_VERSION_4_7_X
  13. bool "gcc 4.7.x"
  14. depends on BR2_DEPRECATED_SINCE_2016_05
  15. # Broken or unsupported architectures
  16. depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc \
  17. && !BR2_powerpc64le && !BR2_nios2 && !BR2_bfin
  18. # Broken or unsupported ARM cores
  19. depends on !BR2_cortex_a12 && !BR2_pj4 && !BR2_cortex_a17
  20. # Broken or unsupported PPC cores
  21. depends on !BR2_powerpc_e5500 && !BR2_powerpc_e6500 && \
  22. !BR2_powerpc_power8
  23. # SPARC -mcpu=leon3 appeared in gcc 4.8.x
  24. depends on !BR2_sparc_leon3
  25. # Broken or unsupported x86 cores
  26. depends on !BR2_x86_jaguar && !BR2_x86_steamroller
  27. # Unsupported MIPS cores
  28. depends on !BR2_mips_interaptiv
  29. # Unsupported for MIPS R5
  30. depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5
  31. # Unsupported for MIPS R6
  32. depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
  33. # musl ppc64 unsupported
  34. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
  35. select BR2_GCC_NEEDS_MPC
  36. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
  37. config BR2_GCC_VERSION_4_8_X
  38. bool "gcc 4.8.x"
  39. # Broken or unsupported architectures
  40. depends on !BR2_microblaze && !BR2_arc \
  41. && !BR2_powerpc64le && !BR2_nios2 && !BR2_bfin
  42. # Broken or unsupported ARM cores
  43. depends on !BR2_cortex_a12 && !BR2_cortex_a17
  44. # Broken or unsupported PPC cores
  45. depends on !BR2_powerpc_power8
  46. # Unsupported MIPS cores
  47. depends on !BR2_mips_interaptiv
  48. # gcc-4.8.x + binutils-2.25 is broken for MIPS
  49. depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_BINUTILS_VERSION_2_25_X)
  50. # Unsupported for MIPS R5
  51. depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5
  52. # Unsupported for MIPS R6
  53. depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
  54. # musl ppc64 unsupported
  55. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
  56. # musl mips64 unsupported
  57. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
  58. select BR2_GCC_NEEDS_MPC
  59. select BR2_GCC_SUPPORTS_GRAPHITE
  60. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  61. config BR2_GCC_VERSION_ARC
  62. bool "gcc arc (6.x)"
  63. # Only supported architecture
  64. depends on BR2_arc
  65. select BR2_GCC_NEEDS_MPC
  66. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  67. config BR2_GCC_VERSION_4_9_X
  68. bool "gcc 4.9.x"
  69. # Broken or unsupported architectures
  70. depends on !BR2_arc && !BR2_bfin
  71. # Broken or unsupported ARM cores
  72. depends on !BR2_cortex_a17
  73. # Unsupported MIPS cores
  74. depends on !BR2_mips_interaptiv
  75. # Unsupported for MIPS R5
  76. depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5
  77. # Unsupported for MIPS R6
  78. depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
  79. # musl ppc64 unsupported
  80. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
  81. # musl mips64 unsupported
  82. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
  83. # PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
  84. select BR2_GCC_NEEDS_MPC
  85. select BR2_GCC_SUPPORTS_GRAPHITE
  86. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  87. config BR2_GCC_VERSION_5_X
  88. bool "gcc 5.x"
  89. # Broken or unsupported architectures
  90. depends on !BR2_arc && !BR2_bfin
  91. # musl ppc64 unsupported
  92. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
  93. # Unsupported MIPS cores
  94. depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
  95. !BR2_mips_m5101 && !BR2_mips_i6400 && !BR2_mips_p6600
  96. # musl mips64 unsupported
  97. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
  98. select BR2_GCC_NEEDS_MPC
  99. select BR2_GCC_SUPPORTS_GRAPHITE
  100. select BR2_TOOLCHAIN_GCC_AT_LEAST_5
  101. config BR2_GCC_VERSION_6_X
  102. bool "gcc 6.x"
  103. # Broken or unsupported architectures
  104. depends on !BR2_arc
  105. # Unsupported MIPS cores
  106. depends on !BR2_mips_p6600
  107. select BR2_GCC_NEEDS_MPC
  108. select BR2_GCC_SUPPORTS_GRAPHITE
  109. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  110. endchoice
  111. # Indicates if GCC for architecture supports --with-{arch,cpu,..} to
  112. # set default CFLAGS, otherwise values will be used by toolchain
  113. # wrapper.
  114. config BR2_GCC_ARCH_HAS_CONFIGURABLE_DEFAULTS
  115. bool
  116. default y if !BR2_bfin
  117. config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
  118. bool
  119. default y
  120. config BR2_GCC_VERSION
  121. string
  122. default "4.7.4" if BR2_GCC_VERSION_4_7_X
  123. default "4.8.5" if BR2_GCC_VERSION_4_8_X
  124. default "4.9.4" if BR2_GCC_VERSION_4_9_X
  125. default "5.4.0" if BR2_GCC_VERSION_5_X
  126. default "6.2.0" if BR2_GCC_VERSION_6_X
  127. default "arc-2016.09-eng015" if BR2_GCC_VERSION_ARC
  128. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  129. string "Additional gcc options"
  130. default ""
  131. help
  132. Any additional gcc configure options you may want to
  133. include. Those options are applied for all of the gcc
  134. initial, gcc intermediate and gcc final passes.
  135. config BR2_TOOLCHAIN_BUILDROOT_CXX
  136. bool "Enable C++ support"
  137. select BR2_INSTALL_LIBSTDCPP
  138. help
  139. Enable this option if you want your toolchain to support the
  140. C++ language and you want C++ libraries to be installed on
  141. your target system.
  142. comment "Fortran support needs a toolchain w/ wchar"
  143. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  144. depends on !BR2_USE_WCHAR # libquadmath
  145. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  146. bool "Enable Fortran support"
  147. # on architecture building libquadmath, wchar is required
  148. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  149. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  150. select BR2_TOOLCHAIN_HAS_FORTRAN
  151. help
  152. Enable this option if you want your toolchain to support the
  153. Fortran language and you want Fortran libraries to be
  154. installed on your target system.
  155. config BR2_GCC_ENABLE_LTO
  156. bool "Enable compiler link-time-optimization support"
  157. select BR2_BINUTILS_ENABLE_LTO
  158. help
  159. This option enables link-time optimization (LTO) support in
  160. gcc.
  161. config BR2_GCC_ENABLE_OPENMP
  162. bool "Enable compiler OpenMP support"
  163. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  164. help
  165. Enable OpenMP support for the compiler
  166. config BR2_GCC_ENABLE_LIBMUDFLAP
  167. bool "Enable libmudflap support"
  168. # There are architectures, or specific configurations for
  169. # which mudflap is not supported.
  170. depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
  171. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  172. help
  173. libmudflap is a gcc library used for the mudflap pointer
  174. debugging functionality. It is only needed if you intend to
  175. use the -fmudflap gcc flag.
  176. See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
  177. the help of the gcc -fmudflap option for more details.
  178. If you're unsure, leave this option disabled.
  179. config BR2_GCC_ENABLE_GRAPHITE
  180. bool "Enable graphite support"
  181. depends on BR2_GCC_SUPPORTS_GRAPHITE
  182. help
  183. This option enables the graphite optimizations in the
  184. compiler.