2
1

Config.in.host 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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_11_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_10_X
  21. bool "gcc 10.x"
  22. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_11
  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. # ARC HS48 rel 31 only supported by gcc arc fork.
  27. depends on !BR2_archs4x_rel31
  28. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  29. config BR2_GCC_VERSION_11_X
  30. bool "gcc 11.x"
  31. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12
  32. # powerpc spe support has been deprecated since gcc 8.x.
  33. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  34. depends on !BR2_powerpc_SPE
  35. # uClibc-ng broken on sparc due to recent gcc changes
  36. # that need to be reverted since gcc 8.4, 9.3 and 10.1.
  37. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784
  38. depends on !BR2_sparc
  39. # ARC HS48 rel 31 only supported by gcc arc fork.
  40. depends on !BR2_archs4x_rel31
  41. select BR2_TOOLCHAIN_GCC_AT_LEAST_11
  42. config BR2_GCC_VERSION_12_X
  43. bool "gcc 12.x"
  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_12
  54. endchoice
  55. # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
  56. config BR2_GCC_SUPPORTS_LIBCILKRTS
  57. bool
  58. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  59. config BR2_GCC_SUPPORTS_DLANG
  60. bool
  61. default y if BR2_aarch64
  62. default y if BR2_arm
  63. default y if BR2_i386
  64. default y if BR2_mips || BR2_mipsel
  65. default y if BR2_mips64 || BR2_mips64el
  66. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  67. default y if BR2_x86_64
  68. default y if BR2_riscv && !BR2_RISCV_64
  69. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
  70. depends on BR2_TOOLCHAIN_USES_GLIBC
  71. config BR2_GCC_VERSION
  72. string
  73. default "8.4.0" if BR2_GCC_VERSION_POWERPC_SPE
  74. default "10.4.0" if BR2_GCC_VERSION_10_X
  75. default "11.3.0" if BR2_GCC_VERSION_11_X
  76. default "12.2.0" if BR2_GCC_VERSION_12_X
  77. default "arc-2020.09-release" if BR2_GCC_VERSION_ARC
  78. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  79. string "Additional gcc options"
  80. default ""
  81. help
  82. Any additional gcc configure options you may want to
  83. include. Those options are applied for all of the gcc
  84. initial, gcc intermediate and gcc final passes.
  85. config BR2_TOOLCHAIN_BUILDROOT_CXX
  86. bool "Enable C++ support"
  87. select BR2_INSTALL_LIBSTDCPP
  88. help
  89. Enable this option if you want your toolchain to support the
  90. C++ language and you want C++ libraries to be installed on
  91. your target system.
  92. comment "Fortran support needs a toolchain w/ wchar"
  93. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  94. depends on !BR2_USE_WCHAR # libquadmath
  95. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  96. bool "Enable Fortran support"
  97. # on architecture building libquadmath, wchar is required
  98. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  99. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  100. select BR2_TOOLCHAIN_HAS_FORTRAN
  101. help
  102. Enable this option if you want your toolchain to support the
  103. Fortran language and you want Fortran libraries to be
  104. installed on your target system.
  105. config BR2_TOOLCHAIN_BUILDROOT_DLANG
  106. bool "Enable D language support"
  107. depends on BR2_GCC_SUPPORTS_DLANG
  108. select BR2_TOOLCHAIN_HAS_DLANG
  109. help
  110. Enable this option if you want your toolchain to support the
  111. D language and you want D libraries to be installed on your
  112. target system.
  113. config BR2_GCC_ENABLE_OPENMP
  114. bool "Enable compiler OpenMP support"
  115. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  116. select BR2_TOOLCHAIN_HAS_OPENMP
  117. help
  118. Enable OpenMP support for the compiler
  119. config BR2_GCC_ENABLE_GRAPHITE
  120. bool "Enable graphite support"
  121. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  122. help
  123. This option enables the graphite optimizations in the
  124. compiler.
  125. comment "graphite support needs gcc >= 5.x"
  126. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5