Config.in 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # Selection options for crosstool-NG
  2. if BR2_TOOLCHAIN_CTNG
  3. choice
  4. prompt "Crosstool-NG C library"
  5. config BR2_TOOLCHAIN_CTNG_uClibc
  6. bool "uClibc"
  7. # Although eglibc can be configured to opt-out some features,
  8. # let's not deal with that for the time being, it's complex...
  9. config BR2_TOOLCHAIN_CTNG_eglibc
  10. bool "eglibc"
  11. select BR2_LARGEFILE
  12. select BR2_INET_IPV6
  13. select BR2_INET_RPC
  14. select BR2_ENABLE_LOCALE
  15. select BR2_USE_WCHAR
  16. config BR2_TOOLCHAIN_CTNG_glibc
  17. bool "glibc"
  18. select BR2_LARGEFILE
  19. select BR2_INET_IPV6
  20. select BR2_INET_RPC
  21. select BR2_ENABLE_LOCALE
  22. select BR2_USE_WCHAR
  23. endchoice # C library
  24. config BR2_TOOLCHAIN_CTNG_LIBC
  25. string
  26. default "uClibc" if BR2_TOOLCHAIN_CTNG_uClibc
  27. default "eglibc" if BR2_TOOLCHAIN_CTNG_eglibc
  28. default "glibc" if BR2_TOOLCHAIN_CTNG_glibc
  29. config BR2_TOOLCHAIN_CTNG_CONFIG
  30. string "crosstool-NG configuration file to use"
  31. default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc" if BR2_TOOLCHAIN_CTNG_uClibc
  32. default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc" if BR2_TOOLCHAIN_CTNG_eglibc
  33. default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc" if BR2_TOOLCHAIN_CTNG_glibc
  34. help
  35. Enter here the crosstool-NG's .config file to use.
  36. To fine-tune your toolchain, you can also call:
  37. make ctng-menuconfig
  38. If unsure, keep the default value.
  39. if BR2_TOOLCHAIN_CTNG_uClibc
  40. comment "Toolchain Options"
  41. config BR2_TOOLCHAIN_CTNG_uClibc_LARGEFILE
  42. bool "Enable large file (files > 2 GB) support"
  43. select BR2_LARGEFILE
  44. help
  45. Enable this option if you want your toolchain to support
  46. files bigger than 2 GB.
  47. config BR2_TOOLCHAIN_CTNG_uClibc_INET_IPV6
  48. bool "Enable IPv6 support"
  49. select BR2_INET_IPV6
  50. help
  51. Enable this option if you want your toolchain to support
  52. IPv6.
  53. config BR2_TOOLCHAIN_CTNG_uClibc_INET_RPC
  54. bool "Enable RPC support"
  55. select BR2_INET_RPC
  56. help
  57. Enable this option if you want your toolchain to support
  58. RPC (needed for NFS, for example).
  59. config BR2_TOOLCHAIN_CTNG_uClibc_WCHAR
  60. bool "Enable WCHAR support"
  61. select BR2_USE_WCHAR
  62. help
  63. Enable this option if you want your toolchain to support
  64. wide characters (i.e characters longer than 8 bits, needed
  65. for locale support).
  66. config BR2_TOOLCHAIN_CTNG_uClibc_LOCALE
  67. bool "Enable toolchain locale/i18n support"
  68. select BR2_TOOLCHAIN_CTNG_uClibc_WCHAR
  69. select BR2_ENABLE_LOCALE
  70. help
  71. Enable this option if you want your toolchain to support
  72. localization and internationalization.
  73. endif # BR2_TOOLCHAIN_CTNG_uClibc
  74. config BR2_TOOLCHAIN_CTNG_CXX
  75. bool "Enable C++ support"
  76. select BR2_INSTALL_LIBSTDCPP
  77. help
  78. Enable this option if you want your toolchain to support the
  79. C++ language and you want C++ libraries to be installed on
  80. your target system.
  81. choice
  82. prompt "Thread library implementation"
  83. default BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS_OLD \
  84. if BR2_TOOLCHAIN_CTNG_uClibc
  85. default BR2_TOOLCHAIN_CTNG_THREADS_NPTL \
  86. if BR2_TOOLCHAIN_CTNG_eglibc || \
  87. BR2_TOOLCHAIN_CTNG_glibc
  88. help
  89. Enable thread support and select thread implementation. With
  90. glibc, thread support is mandatory but several
  91. implementations are available. With uClibc, thread support
  92. is optional, and when enabled, several implementations are
  93. available. However, not all thread variants work with all
  94. versions of uClibc for all architectures, the "linuxthreads
  95. (stable/old)" may be a working fallback.
  96. config BR2_TOOLCHAIN_CTNG_THREADS_NONE
  97. bool "none"
  98. depends on BR2_TOOLCHAIN_CTNG_uClibc
  99. config BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS
  100. bool "linuxthreads"
  101. select BR2_TOOLCHAIN_HAS_THREADS
  102. config BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS_OLD
  103. bool "linuxthreads (stable/old)"
  104. select BR2_TOOLCHAIN_HAS_THREADS
  105. depends on BR2_TOOLCHAIN_CTNG_uClibc
  106. config BR2_TOOLCHAIN_CTNG_THREADS_NPTL
  107. bool "Native POSIX Threading (NPTL)"
  108. select BR2_TOOLCHAIN_HAS_THREADS
  109. depends on BR2_TOOLCHAIN_CTNG_eglibc || \
  110. BR2_TOOLCHAIN_CTNG_glibc
  111. endchoice
  112. endif # BR2_TOOLCHAIN_CTNG