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