Config.in.host 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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_CSKY if BR2_csky
  6. default BR2_GCC_VERSION_8_X
  7. help
  8. Select the version of gcc you wish to use.
  9. config BR2_GCC_VERSION_ARC
  10. bool "gcc arc (9.x)"
  11. # Only supported architecture
  12. depends on BR2_arc
  13. select BR2_TOOLCHAIN_GCC_AT_LEAST_9
  14. config BR2_GCC_VERSION_CSKY
  15. bool "gcc csky"
  16. # Only supported architecture
  17. depends on BR2_csky
  18. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  19. config BR2_GCC_VERSION_7_X
  20. bool "gcc 7.x"
  21. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
  22. # Broken or unsupported architectures
  23. depends on !BR2_or1k
  24. select BR2_TOOLCHAIN_GCC_AT_LEAST_7
  25. config BR2_GCC_VERSION_8_X
  26. bool "gcc 8.x"
  27. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9
  28. # Broken or unsupported architectures
  29. depends on !BR2_or1k
  30. # powerpc spe support has been deprecated since gcc 8.x.
  31. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  32. depends on !BR2_powerpc_SPE
  33. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  34. config BR2_GCC_VERSION_9_X
  35. bool "gcc 9.x"
  36. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_10
  37. # or1k needs binutils >= 2.32
  38. depends on !(BR2_or1k && BR2_BINUTILS_VERSION_2_31_X)
  39. # powerpc spe support has been deprecated since gcc 8.x.
  40. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  41. depends on !BR2_powerpc_SPE
  42. # C-SKY sk610 needs abiv1, which is not supported in
  43. # upstream gcc. C-SKY gcc upstream support not tested
  44. # with upstream binutils and glibc.
  45. depends on !BR2_csky
  46. select BR2_TOOLCHAIN_GCC_AT_LEAST_9
  47. config BR2_GCC_VERSION_10_X
  48. bool "gcc 10.x"
  49. # or1k needs binutils >= 2.32
  50. depends on !(BR2_or1k && BR2_BINUTILS_VERSION_2_31_X)
  51. # powerpc spe support has been deprecated since gcc 8.x.
  52. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  53. depends on !BR2_powerpc_SPE
  54. # C-SKY sk610 needs abiv1, which is not supported in
  55. # upstream gcc. C-SKY gcc upstream support not tested
  56. # with upstream binutils and glibc.
  57. depends on !BR2_csky
  58. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  59. endchoice
  60. # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
  61. config BR2_GCC_SUPPORTS_LIBCILKRTS
  62. bool
  63. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  64. config BR2_GCC_SUPPORTS_DLANG
  65. bool
  66. default y if BR2_aarch64
  67. default y if BR2_arm
  68. default y if BR2_i386
  69. default y if BR2_mips || BR2_mipsel
  70. default y if BR2_mips64 || BR2_mips64el
  71. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  72. default y if BR2_x86_64
  73. default y if BR2_riscv && !BR2_RISCV_64
  74. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
  75. depends on BR2_TOOLCHAIN_USES_GLIBC
  76. config BR2_GCC_VERSION
  77. string
  78. default "7.5.0" if BR2_GCC_VERSION_7_X
  79. default "8.4.0" if BR2_GCC_VERSION_8_X
  80. default "9.3.0" if BR2_GCC_VERSION_9_X
  81. default "10.1.0" if BR2_GCC_VERSION_10_X
  82. default "arc-2020.03-release" if BR2_GCC_VERSION_ARC
  83. default "48152afb96c59733d5bc79e3399bb7b3d4b44266" if BR2_GCC_VERSION_CSKY
  84. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  85. string "Additional gcc options"
  86. default ""
  87. help
  88. Any additional gcc configure options you may want to
  89. include. Those options are applied for all of the gcc
  90. initial, gcc intermediate and gcc final passes.
  91. config BR2_TOOLCHAIN_BUILDROOT_CXX
  92. bool "Enable C++ support"
  93. select BR2_INSTALL_LIBSTDCPP
  94. help
  95. Enable this option if you want your toolchain to support the
  96. C++ language and you want C++ libraries to be installed on
  97. your target system.
  98. comment "Fortran support needs a toolchain w/ wchar"
  99. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  100. depends on !BR2_USE_WCHAR # libquadmath
  101. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  102. bool "Enable Fortran support"
  103. # on architecture building libquadmath, wchar is required
  104. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  105. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  106. select BR2_TOOLCHAIN_HAS_FORTRAN
  107. help
  108. Enable this option if you want your toolchain to support the
  109. Fortran language and you want Fortran libraries to be
  110. installed on your target system.
  111. config BR2_TOOLCHAIN_BUILDROOT_DLANG
  112. bool "Enable D language support"
  113. depends on BR2_GCC_SUPPORTS_DLANG
  114. select BR2_TOOLCHAIN_HAS_DLANG
  115. help
  116. Enable this option if you want your toolchain to support the
  117. D language and you want D libraries to be installed on your
  118. target system.
  119. config BR2_GCC_ENABLE_LTO
  120. bool "Enable compiler link-time-optimization support"
  121. select BR2_BINUTILS_ENABLE_LTO
  122. help
  123. This option enables link-time optimization (LTO) support in
  124. gcc.
  125. config BR2_GCC_ENABLE_OPENMP
  126. bool "Enable compiler OpenMP support"
  127. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  128. select BR2_TOOLCHAIN_HAS_OPENMP
  129. help
  130. Enable OpenMP support for the compiler
  131. config BR2_GCC_ENABLE_GRAPHITE
  132. bool "Enable graphite support"
  133. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  134. help
  135. This option enables the graphite optimizations in the
  136. compiler.
  137. comment "graphite support needs gcc >= 5.x"
  138. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5