Config.in 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  2. comment "uClibc Options"
  3. config BR2_PACKAGE_UCLIBC
  4. bool
  5. default y
  6. select BR2_PACKAGE_LINUX_HEADERS
  7. config BR2_UCLIBC_CONFIG
  8. string "uClibc configuration file to use?"
  9. default "package/uclibc/uClibc-ng.config"
  10. help
  11. Some people may wish to use their own modified uClibc
  12. configuration file and will specify their config file
  13. location with this option. See also docs/README in this
  14. package. If unsure, use the default.
  15. config BR2_UCLIBC_CONFIG_FRAGMENT_FILES
  16. string "Additional uClibc configuration fragment files"
  17. help
  18. A space-separated list of configuration fragment files, that
  19. will be merged to the main uClibc configuration file.
  20. config BR2_TOOLCHAIN_BUILDROOT_WCHAR
  21. bool "Enable WCHAR support"
  22. select BR2_USE_WCHAR
  23. help
  24. Enable this option if you want your toolchain to support
  25. wide characters (i.e characters longer than 8 bits, needed
  26. for locale support).
  27. config BR2_TOOLCHAIN_BUILDROOT_LOCALE
  28. bool "Enable toolchain locale/i18n support"
  29. select BR2_TOOLCHAIN_BUILDROOT_WCHAR
  30. select BR2_ENABLE_LOCALE
  31. select BR2_NEEDS_HOST_UTF8_LOCALE
  32. help
  33. Enable this option if you want your toolchain to support
  34. localization and internationalization.
  35. choice
  36. prompt "Thread library implementation"
  37. help
  38. Use this option to select the thread library implementation
  39. that should be used in your toolchain.
  40. config BR2_PTHREADS_NATIVE
  41. bool "Native POSIX Threading (NPTL)"
  42. depends on BR2_USE_MMU
  43. select BR2_TOOLCHAIN_HAS_THREADS
  44. select BR2_TOOLCHAIN_HAS_THREADS_NPTL
  45. config BR2_PTHREADS
  46. bool "linuxthreads"
  47. depends on BR2_m68k || BR2_microblaze || BR2_or1k || BR2_arm || BR2_armeb || BR2_xtensa
  48. select BR2_TOOLCHAIN_HAS_THREADS
  49. config BR2_PTHREADS_NONE
  50. bool "none"
  51. endchoice
  52. config BR2_PTHREAD_DEBUG
  53. bool "Thread library debugging"
  54. depends on BR2_PTHREADS || BR2_PTHREADS_NATIVE
  55. select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  56. help
  57. Build the thread library with debugging enabled.
  58. config BR2_TOOLCHAIN_BUILDROOT_USE_SSP
  59. bool "Enable stack protection support"
  60. depends on BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI
  61. select BR2_TOOLCHAIN_HAS_SSP
  62. help
  63. Enable stack smashing protection support using GCCs
  64. -fstack-protector-all option in uClibc.
  65. See
  66. http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  67. for details.
  68. config BR2_UCLIBC_INSTALL_UTILS
  69. bool "Compile and install uClibc utilities"
  70. default y
  71. help
  72. Enabling this option will compile and install the getconf,
  73. ldconfig and ldd uClibc utilities for the target.
  74. You can save ~32 KiB in target space by disabling them since
  75. they're normally not needed.
  76. # Mapping from the Buildroot architecture configuration options to the
  77. # uClibc architecture names.
  78. config BR2_UCLIBC_TARGET_ARCH
  79. string
  80. default "arc" if BR2_arcle || BR2_arceb
  81. default "arm" if BR2_arm || BR2_armeb
  82. default "m68k" if BR2_m68k
  83. default "microblaze" if BR2_microblaze
  84. default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  85. default "or1k" if BR2_or1k
  86. default "powerpc" if BR2_powerpc
  87. default "sh" if BR2_sh
  88. default "sparc" if BR2_sparc
  89. default "xtensa" if BR2_xtensa
  90. default "i386" if BR2_i386
  91. default "x86_64" if BR2_x86_64
  92. default "riscv64" if BR2_RISCV_64
  93. config BR2_UCLIBC_MIPS_ABI
  94. string
  95. default "O32" if BR2_MIPS_OABI32
  96. default "N32" if BR2_MIPS_NABI32
  97. default "N64" if BR2_MIPS_NABI64
  98. depends on BR2_UCLIBC_TARGET_ARCH = "mips"
  99. config BR2_UCLIBC_MIPS_NAN
  100. string
  101. default "LEGACY" if BR2_MIPS_NAN_LEGACY
  102. default "2008" if BR2_MIPS_NAN_2008
  103. depends on BR2_UCLIBC_TARGET_ARCH = "mips"
  104. config BR2_UCLIBC_SH_TYPE
  105. string
  106. default "SH2A" if BR2_sh2a
  107. default "SH4" if BR2_sh4 || BR2_sh4eb
  108. depends on BR2_UCLIBC_TARGET_ARCH = "sh"
  109. config BR2_UCLIBC_SPARC_TYPE
  110. string
  111. default "V7" if BR2_sparc_v7 || BR2_sparc_sparchfleon || BR2_sparc_sparcsfleon
  112. default "V8" if BR2_sparc_v8 || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleonv8
  113. depends on BR2_UCLIBC_TARGET_ARCH = "sparc"
  114. config BR2_UCLIBC_POWERPC_TYPE
  115. string
  116. default "CLASSIC" if !BR2_powerpc_8540 && !BR2_powerpc_8548
  117. default "E500" if BR2_powerpc_8540 || BR2_powerpc_8548
  118. depends on BR2_UCLIBC_TARGET_ARCH = "powerpc"
  119. config BR2_UCLIBC_X86_TYPE
  120. string
  121. default "486" if BR2_x86_i486
  122. default "586" if BR2_x86_i586
  123. default "586MMX" if BR2_x86_pentium_mmx
  124. default "686" if BR2_x86_i686 || BR2_x86_pentiumpro
  125. default "PENTIUMII" if BR2_x86_pentium2
  126. default "PENTIUMIII" if BR2_x86_pentium3
  127. default "PENTIUM4" if BR2_x86_pentium4 || BR2_x86_pentium_m || \
  128. BR2_x86_nocona || BR2_x86_core2 || BR2_x86_corei7
  129. depends on BR2_UCLIBC_TARGET_ARCH = "i386"
  130. endif # BR2_TOOLCHAIN_BUILDROOT_UCLIBC