Config.in.host 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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_9_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_8_X
  20. bool "gcc 8.x"
  21. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9
  22. # Broken or unsupported architectures
  23. depends on !BR2_or1k
  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. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  28. config BR2_GCC_VERSION_9_X
  29. bool "gcc 9.x"
  30. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_10
  31. # powerpc spe support has been deprecated since gcc 8.x.
  32. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  33. depends on !BR2_powerpc_SPE
  34. # C-SKY sk610 needs abiv1, which is not supported in
  35. # upstream gcc. C-SKY gcc upstream support not tested
  36. # with upstream binutils and glibc.
  37. depends on !BR2_csky
  38. select BR2_TOOLCHAIN_GCC_AT_LEAST_9
  39. config BR2_GCC_VERSION_10_X
  40. bool "gcc 10.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_SPE
  44. # C-SKY sk610 needs abiv1, which is not supported in
  45. # upstream gcc. C-SKY gcc upstream support not tested
  46. # with upstream binutils and glibc.
  47. depends on !BR2_csky
  48. select BR2_TOOLCHAIN_GCC_AT_LEAST_10
  49. endchoice
  50. # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
  51. config BR2_GCC_SUPPORTS_LIBCILKRTS
  52. bool
  53. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  54. config BR2_GCC_SUPPORTS_DLANG
  55. bool
  56. default y if BR2_aarch64
  57. default y if BR2_arm
  58. default y if BR2_i386
  59. default y if BR2_mips || BR2_mipsel
  60. default y if BR2_mips64 || BR2_mips64el
  61. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  62. default y if BR2_x86_64
  63. default y if BR2_riscv && !BR2_RISCV_64
  64. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
  65. depends on BR2_TOOLCHAIN_USES_GLIBC
  66. config BR2_GCC_VERSION
  67. string
  68. default "8.4.0" if BR2_GCC_VERSION_8_X
  69. default "9.3.0" if BR2_GCC_VERSION_9_X
  70. default "10.2.0" if BR2_GCC_VERSION_10_X
  71. default "arc-2020.03-release" if BR2_GCC_VERSION_ARC
  72. default "48152afb96c59733d5bc79e3399bb7b3d4b44266" if BR2_GCC_VERSION_CSKY
  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_LTO
  109. bool "Enable compiler link-time-optimization support"
  110. select BR2_BINUTILS_ENABLE_LTO
  111. help
  112. This option enables link-time optimization (LTO) support in
  113. gcc.
  114. config BR2_GCC_ENABLE_OPENMP
  115. bool "Enable compiler OpenMP support"
  116. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  117. select BR2_TOOLCHAIN_HAS_OPENMP
  118. help
  119. Enable OpenMP support for the compiler
  120. config BR2_GCC_ENABLE_GRAPHITE
  121. bool "Enable graphite support"
  122. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  123. help
  124. This option enables the graphite optimizations in the
  125. compiler.
  126. comment "graphite support needs gcc >= 5.x"
  127. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5