Config.in.host 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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_CPU_HAS_SPE
  7. default BR2_GCC_VERSION_12_X
  8. help
  9. Select the version of gcc you wish to use.
  10. config BR2_GCC_VERSION_ARC
  11. bool "gcc arc (13.1)"
  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_CPU_HAS_SPE
  20. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  21. config BR2_GCC_VERSION_11_X
  22. bool "gcc 11.x"
  23. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12
  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_CPU_HAS_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_11
  30. config BR2_GCC_VERSION_12_X
  31. bool "gcc 12.x"
  32. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_13
  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_CPU_HAS_SPE
  36. # ARC HS48 rel 31 only supported by gcc arc fork.
  37. depends on !BR2_archs4x_rel31
  38. select BR2_TOOLCHAIN_GCC_AT_LEAST_12
  39. config BR2_GCC_VERSION_13_X
  40. bool "gcc 13.x"
  41. # powerpc spe support has been deprecated since gcc 8.x.
  42. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  43. depends on !BR2_POWERPC_CPU_HAS_SPE
  44. select BR2_TOOLCHAIN_GCC_AT_LEAST_13
  45. endchoice
  46. # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
  47. config BR2_GCC_SUPPORTS_LIBCILKRTS
  48. bool
  49. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  50. config BR2_GCC_SUPPORTS_DLANG
  51. bool
  52. default y if BR2_aarch64
  53. default y if BR2_arm
  54. default y if BR2_i386
  55. default y if BR2_mips || BR2_mipsel
  56. default y if BR2_mips64 || BR2_mips64el
  57. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  58. default y if BR2_x86_64
  59. default y if BR2_riscv && !BR2_RISCV_64
  60. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
  61. depends on BR2_TOOLCHAIN_USES_GLIBC
  62. # "The D front-end is now itself written in D, in order to build GDC, you
  63. # will need a working GDC compiler (GCC version 9.1 or later)."
  64. # https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5
  65. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_12
  66. config BR2_GCC_VERSION
  67. string
  68. default "8.4.0" if BR2_GCC_VERSION_POWERPC_SPE
  69. default "11.4.0" if BR2_GCC_VERSION_11_X
  70. default "12.3.0" if BR2_GCC_VERSION_12_X
  71. default "13.2.0" if BR2_GCC_VERSION_13_X
  72. default "arc-2023.09-release" if BR2_GCC_VERSION_ARC
  73. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  74. string "Additional gcc options"
  75. default ""
  76. help
  77. Any additional gcc configure options you may want to
  78. include. Those options are applied for all of the gcc
  79. initial, gcc intermediate and gcc final passes.
  80. config BR2_TOOLCHAIN_BUILDROOT_CXX
  81. bool "Enable C++ support"
  82. select BR2_INSTALL_LIBSTDCPP
  83. help
  84. Enable this option if you want your toolchain to support the
  85. C++ language and you want C++ libraries to be installed on
  86. your target system.
  87. comment "Fortran support needs a toolchain w/ wchar"
  88. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  89. depends on !BR2_USE_WCHAR # libquadmath
  90. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  91. bool "Enable Fortran support"
  92. # on architecture building libquadmath, wchar is required
  93. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  94. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  95. select BR2_TOOLCHAIN_HAS_FORTRAN
  96. help
  97. Enable this option if you want your toolchain to support the
  98. Fortran language and you want Fortran libraries to be
  99. installed on your target system.
  100. config BR2_TOOLCHAIN_BUILDROOT_DLANG
  101. bool "Enable D language support"
  102. depends on BR2_GCC_SUPPORTS_DLANG
  103. select BR2_TOOLCHAIN_HAS_DLANG
  104. help
  105. Enable this option if you want your toolchain to support the
  106. D language and you want D libraries to be installed on your
  107. target system.
  108. config BR2_GCC_ENABLE_OPENMP
  109. bool "Enable compiler OpenMP support"
  110. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  111. select BR2_TOOLCHAIN_HAS_OPENMP
  112. help
  113. Enable OpenMP support for the compiler
  114. config BR2_GCC_ENABLE_GRAPHITE
  115. bool "Enable graphite support"
  116. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  117. help
  118. This option enables the graphite optimizations in the
  119. compiler.
  120. comment "graphite support needs gcc >= 5.x"
  121. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5