Config.in.host 5.4 KB

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