Config.in.host 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. comment "GCC Options"
  2. choice
  3. prompt "GCC compiler Version"
  4. default BR2_GCC_VERSION_ARC if BR2_arc
  5. default BR2_GCC_VERSION_POWERPC_SPE if BR2_powerpc_SPE
  6. default BR2_GCC_VERSION_10_X
  7. help
  8. Select the version of gcc you wish to use.
  9. config BR2_GCC_VERSION_ARC
  10. bool "gcc arc (10.x)"
  11. # Only supported architecture
  12. depends on BR2_arc
  13. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  14. config BR2_GCC_VERSION_POWERPC_SPE
  15. bool "gcc powerpc spe"
  16. # powerpc spe support has been deprecated since gcc 8.x.
  17. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  18. depends on BR2_powerpc_SPE
  19. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  20. config BR2_GCC_VERSION_9_X
  21. bool "gcc 9.x"
  22. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_10
  23. # powerpc spe support has been deprecated since gcc 8.x.
  24. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  25. depends on !BR2_powerpc_SPE
  26. # C-SKY sk610 needs abiv1, which is not supported in
  27. # upstream gcc. C-SKY gcc upstream support not tested
  28. # with upstream binutils and glibc.
  29. depends on !BR2_csky
  30. # ARC HS48 rel 31 only supported by gcc arc fork.
  31. depends on !BR2_archs4x_rel31
  32. select BR2_TOOLCHAIN_GCC_AT_LEAST_9
  33. config BR2_GCC_VERSION_10_X
  34. bool "gcc 10.x"
  35. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_11
  36. # powerpc spe support has been deprecated since gcc 8.x.
  37. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  38. depends on !BR2_powerpc_SPE
  39. # C-SKY sk610 needs abiv1, which is not supported in
  40. # upstream gcc. C-SKY gcc upstream support not tested
  41. # with upstream binutils and glibc.
  42. depends on !BR2_csky
  43. # ARC HS48 rel 31 only supported by gcc arc fork.
  44. depends on !BR2_archs4x_rel31
  45. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  46. config BR2_GCC_VERSION_11_X
  47. bool "gcc 11.x"
  48. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12
  49. # powerpc spe support has been deprecated since gcc 8.x.
  50. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  51. depends on !BR2_powerpc_SPE
  52. # uClibc-ng broken on sparc due to recent gcc changes
  53. # that need to be reverted since gcc 8.4, 9.3 and 10.1.
  54. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784
  55. depends on !BR2_sparc
  56. # ARC HS48 rel 31 only supported by gcc arc fork.
  57. depends on !BR2_archs4x_rel31
  58. select BR2_TOOLCHAIN_GCC_AT_LEAST_11
  59. config BR2_GCC_VERSION_12_X
  60. bool "gcc 12.x"
  61. # powerpc spe support has been deprecated since gcc 8.x.
  62. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  63. depends on !BR2_powerpc_SPE
  64. # uClibc-ng broken on sparc due to recent gcc changes
  65. # that need to be reverted since gcc 8.4, 9.3 and 10.1.
  66. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784
  67. depends on !BR2_sparc
  68. # ARC HS48 rel 31 only supported by gcc arc fork.
  69. depends on !BR2_archs4x_rel31
  70. select BR2_TOOLCHAIN_GCC_AT_LEAST_12
  71. endchoice
  72. # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
  73. config BR2_GCC_SUPPORTS_LIBCILKRTS
  74. bool
  75. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  76. config BR2_GCC_SUPPORTS_DLANG
  77. bool
  78. default y if BR2_aarch64
  79. default y if BR2_arm
  80. default y if BR2_i386
  81. default y if BR2_mips || BR2_mipsel
  82. default y if BR2_mips64 || BR2_mips64el
  83. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  84. default y if BR2_x86_64
  85. default y if BR2_riscv && !BR2_RISCV_64
  86. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
  87. depends on BR2_TOOLCHAIN_USES_GLIBC
  88. config BR2_GCC_VERSION
  89. string
  90. default "8.4.0" if BR2_GCC_VERSION_POWERPC_SPE
  91. default "9.4.0" if BR2_GCC_VERSION_9_X
  92. default "10.3.0" if BR2_GCC_VERSION_10_X
  93. default "11.3.0" if BR2_GCC_VERSION_11_X
  94. default "12.1.0" if BR2_GCC_VERSION_12_X
  95. default "arc-2020.09-release" if BR2_GCC_VERSION_ARC
  96. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  97. string "Additional gcc options"
  98. default ""
  99. help
  100. Any additional gcc configure options you may want to
  101. include. Those options are applied for all of the gcc
  102. initial, gcc intermediate and gcc final passes.
  103. config BR2_TOOLCHAIN_BUILDROOT_CXX
  104. bool "Enable C++ support"
  105. select BR2_INSTALL_LIBSTDCPP
  106. help
  107. Enable this option if you want your toolchain to support the
  108. C++ language and you want C++ libraries to be installed on
  109. your target system.
  110. comment "Fortran support needs a toolchain w/ wchar"
  111. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  112. depends on !BR2_USE_WCHAR # libquadmath
  113. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  114. bool "Enable Fortran support"
  115. # on architecture building libquadmath, wchar is required
  116. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  117. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  118. select BR2_TOOLCHAIN_HAS_FORTRAN
  119. help
  120. Enable this option if you want your toolchain to support the
  121. Fortran language and you want Fortran libraries to be
  122. installed on your target system.
  123. config BR2_TOOLCHAIN_BUILDROOT_DLANG
  124. bool "Enable D language support"
  125. depends on BR2_GCC_SUPPORTS_DLANG
  126. select BR2_TOOLCHAIN_HAS_DLANG
  127. help
  128. Enable this option if you want your toolchain to support the
  129. D language and you want D libraries to be installed on your
  130. target system.
  131. config BR2_GCC_ENABLE_LTO
  132. bool "Enable compiler link-time-optimization support"
  133. select BR2_BINUTILS_ENABLE_LTO
  134. help
  135. This option enables link-time optimization (LTO) support in
  136. gcc.
  137. config BR2_GCC_ENABLE_OPENMP
  138. bool "Enable compiler OpenMP support"
  139. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  140. select BR2_TOOLCHAIN_HAS_OPENMP
  141. help
  142. Enable OpenMP support for the compiler
  143. config BR2_GCC_ENABLE_GRAPHITE
  144. bool "Enable graphite support"
  145. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  146. help
  147. This option enables the graphite optimizations in the
  148. compiler.
  149. comment "graphite support needs gcc >= 5.x"
  150. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5