Config.in.host 4.2 KB

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