toolchain-common.in 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # Generic toolchain options
  2. # we want gdb config in the middle of both source and external
  3. # toolchains, but mconf won't let us source the same file twice,
  4. # so put it here instead
  5. source "toolchain/gdb/Config.in"
  6. config BR2_LARGEFILE
  7. bool
  8. config BR2_INET_IPV6
  9. bool
  10. config BR2_TOOLCHAIN_HAS_NATIVE_RPC
  11. bool
  12. config BR2_USE_WCHAR
  13. bool
  14. config BR2_ENABLE_LOCALE
  15. bool
  16. config BR2_INSTALL_LIBSTDCPP
  17. bool
  18. config BR2_TOOLCHAIN_HAS_THREADS
  19. bool
  20. config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  21. select BR2_TOOLCHAIN_HAS_THREADS_DEBUG_IF_NEEDED
  22. bool
  23. config BR2_TOOLCHAIN_HAS_THREADS_DEBUG_IF_NEEDED
  24. default y if !BR2_TOOLCHAIN_HAS_THREADS
  25. bool
  26. config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
  27. bool
  28. config BR2_ENABLE_LOCALE_PURGE
  29. bool "Purge unwanted locales"
  30. help
  31. Explicitly specify what locales to install on target. If N
  32. then all locales supported by packages are installed.
  33. config BR2_ENABLE_LOCALE_WHITELIST
  34. string "Locales to keep"
  35. default "C en_US de fr"
  36. depends on BR2_ENABLE_LOCALE_PURGE
  37. help
  38. Whitespace seperated list of locales to allow on target.
  39. Locales not listed here will be removed from the target.
  40. See 'locale -a' on your host for a list of locales available
  41. on your build host, or have a look in /usr/share/locale in
  42. the target file system for available locales.
  43. Notice that listing a locale here doesn't guarantee that it
  44. will be available on the target - That purely depends on the
  45. support for that locale in the selected packages.
  46. config BR2_GENERATE_LOCALE
  47. string "Generate locale data"
  48. default ""
  49. # Pre-built uClibc external toolchains and uClibc toolchains
  50. # built by the Crosstool-NG backend cannot be supported,
  51. # because the list of locales to support must be defined at
  52. # build time.
  53. depends on \
  54. BR2_TOOLCHAIN_BUILDROOT || \
  55. BR2_TOOLCHAIN_EXTERNAL_GLIBC || \
  56. BR2_TOOLCHAIN_CTNG_eglibc || \
  57. BR2_TOOLCHAIN_CTNG_glibc
  58. help
  59. Generate support for a list of locales. Locales can be
  60. specified with or without encoding, when no encoding is
  61. specified, UTF-8 is assumed. Examples of locales: en_US,
  62. fr_FR.UTF-8.
  63. # glibc and eglibc directly include gettext, so a separatly compiled
  64. # gettext isn't needed and shouldn't be built to avoid conflicts. Some
  65. # packages always need gettext, other packages only need gettext when
  66. # locale support is enabled. See the documentation for how packages
  67. # should rely on the following two options.
  68. config BR2_NEEDS_GETTEXT
  69. bool
  70. default y if BR2_TOOLCHAIN_BUILDROOT
  71. default y if BR2_TOOLCHAIN_EXTERNAL_UCLIBC
  72. default y if BR2_TOOLCHAIN_CTNG_uClibc
  73. config BR2_NEEDS_GETTEXT_IF_LOCALE
  74. bool
  75. default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
  76. config BR2_USE_MMU
  77. bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh || BR2_xtensa
  78. default y if !BR2_bfin
  79. help
  80. If your target has a MMU, you should say Y here. If you
  81. are unsure, just say Y.
  82. config BR2_PREFER_SOFT_FLOAT
  83. bool
  84. default y if BR2_arm
  85. default y if BR2_armeb
  86. default y if BR2_avr32
  87. default y if BR2_mips
  88. default y if BR2_mipsel
  89. config BR2_SOFT_FLOAT
  90. bool "Use software floating point by default"
  91. depends on BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_powerpc
  92. # External toolchains will automatically do soft float or hard
  93. # float depending on their configuration
  94. depends on BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_CTNG
  95. default $(BR2_PREFER_SOFT_FLOAT)
  96. help
  97. If your target CPU does not have a Floating Point Unit (FPU) or a
  98. kernel FPU emulator, but you still wish to support floating point
  99. functions, then everything will need to be compiled with soft
  100. floating point support (-msoft-float).
  101. config BR2_TARGET_OPTIMIZATION
  102. string "Target Optimizations"
  103. default "-pipe"
  104. help
  105. Optimizations to use when building for the target host.
  106. NOTE: gcc optimization level is defined in build options.
  107. config BR2_TARGET_LDFLAGS
  108. string "Target linker options"
  109. help
  110. Extra options to pass to the linker when building for the target.