Config.in.host 4.5 KB

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