Config.in.host 5.5 KB

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