Config.in.host 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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_OR1K if BR2_or1k
  6. default BR2_GCC_VERSION_7_X
  7. help
  8. Select the version of gcc you wish to use.
  9. config BR2_GCC_VERSION_ARC
  10. bool "gcc arc (8.x)"
  11. # Only supported architecture
  12. depends on BR2_arc
  13. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  14. config BR2_GCC_VERSION_OR1K
  15. bool "gcc or1k (5.x)"
  16. # Only supported architecture
  17. depends on BR2_or1k
  18. select BR2_TOOLCHAIN_GCC_AT_LEAST_5
  19. config BR2_GCC_VERSION_4_9_X
  20. bool "gcc 4.9.x"
  21. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_5
  22. # Broken or unsupported architectures
  23. depends on !BR2_arc
  24. depends on !BR2_or1k
  25. # musl on microblaze, ppc64 and mips64 unsupported
  26. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_microblazeel || BR2_microblazebe))
  27. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
  28. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
  29. # glibc >= 2.26 needs gcc >= 6.2
  30. depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le)
  31. # glibc >= 2.27 needs gcc >= 5
  32. depends on !(BR2_TOOLCHAIN_USES_GLIBC && (BR2_aarch64 || BR2_aarch64_be))
  33. select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  34. config BR2_GCC_VERSION_5_X
  35. bool "gcc 5.x"
  36. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_6
  37. # Broken or unsupported architectures
  38. depends on !BR2_arc
  39. depends on !BR2_or1k
  40. # musl on ppc64 and mips64 unsupported
  41. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
  42. depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
  43. # glibc >= 2.26 needs gcc >= 6.2
  44. depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le)
  45. select BR2_TOOLCHAIN_GCC_AT_LEAST_5
  46. config BR2_GCC_VERSION_6_X
  47. bool "gcc 6.x"
  48. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_7
  49. # Broken or unsupported architectures
  50. depends on !BR2_arc
  51. depends on !BR2_or1k
  52. select BR2_TOOLCHAIN_GCC_AT_LEAST_6
  53. config BR2_GCC_VERSION_7_X
  54. bool "gcc 7.x"
  55. depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
  56. # Broken or unsupported architectures
  57. depends on !BR2_or1k
  58. select BR2_TOOLCHAIN_GCC_AT_LEAST_7
  59. config BR2_GCC_VERSION_8_X
  60. bool "gcc 8.x"
  61. # Broken or unsupported architectures
  62. depends on !BR2_or1k
  63. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  64. endchoice
  65. # libcilkrts was introduced in gcc 4.9 (oldest gcc version we
  66. # support), and removed in gcc 8.x
  67. config BR2_GCC_SUPPORTS_LIBCILKRTS
  68. bool
  69. default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
  70. config BR2_GCC_VERSION
  71. string
  72. default "4.9.4" if BR2_GCC_VERSION_4_9_X
  73. default "5.5.0" if BR2_GCC_VERSION_5_X
  74. default "6.4.0" if BR2_GCC_VERSION_6_X
  75. default "7.3.0" if BR2_GCC_VERSION_7_X
  76. default "8.2.0" if BR2_GCC_VERSION_8_X
  77. default "arc-2018.09-rc2" if BR2_GCC_VERSION_ARC
  78. default "or1k-musl-5.4.0-20170218" if BR2_GCC_VERSION_OR1K
  79. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  80. string "Additional gcc options"
  81. default ""
  82. help
  83. Any additional gcc configure options you may want to
  84. include. Those options are applied for all of the gcc
  85. initial, gcc intermediate and gcc final passes.
  86. config BR2_TOOLCHAIN_BUILDROOT_CXX
  87. bool "Enable C++ support"
  88. select BR2_INSTALL_LIBSTDCPP
  89. help
  90. Enable this option if you want your toolchain to support the
  91. C++ language and you want C++ libraries to be installed on
  92. your target system.
  93. comment "Fortran support needs a toolchain w/ wchar"
  94. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  95. depends on !BR2_USE_WCHAR # libquadmath
  96. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  97. bool "Enable Fortran support"
  98. # on architecture building libquadmath, wchar is required
  99. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  100. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  101. select BR2_TOOLCHAIN_HAS_FORTRAN
  102. help
  103. Enable this option if you want your toolchain to support the
  104. Fortran language and you want Fortran libraries to be
  105. installed on your target system.
  106. config BR2_GCC_ENABLE_LTO
  107. bool "Enable compiler link-time-optimization support"
  108. select BR2_BINUTILS_ENABLE_LTO
  109. help
  110. This option enables link-time optimization (LTO) support in
  111. gcc.
  112. config BR2_GCC_ENABLE_OPENMP
  113. bool "Enable compiler OpenMP support"
  114. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  115. help
  116. Enable OpenMP support for the compiler
  117. config BR2_GCC_ENABLE_LIBMUDFLAP
  118. bool "Enable libmudflap support"
  119. # There are architectures, or specific configurations for
  120. # which mudflap is not supported.
  121. depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
  122. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  123. help
  124. libmudflap is a gcc library used for the mudflap pointer
  125. debugging functionality. It is only needed if you intend to
  126. use the -fmudflap gcc flag.
  127. See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
  128. the help of the gcc -fmudflap option for more details.
  129. If you're unsure, leave this option disabled.
  130. config BR2_GCC_ENABLE_GRAPHITE
  131. bool "Enable graphite support"
  132. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  133. help
  134. This option enables the graphite optimizations in the
  135. compiler.
  136. comment "graphite support needs gcc >= 5.x"
  137. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5