Config.in.libc 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. choice
  4. prompt "C library"
  5. default ADK_TARGET_LIB_UCLIBC_NG if ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX
  6. config ADK_TARGET_LIB_UCLIBC_NG
  7. bool "uClibc-ng embedded C library"
  8. select ADK_PACKAGE_LIBGCC
  9. depends on (\
  10. ADK_TARGET_ARCH_AARCH64 || \
  11. ADK_TARGET_ARCH_ALPHA || \
  12. ADK_TARGET_ARCH_ARC || \
  13. ADK_TARGET_ARCH_ARM || \
  14. ADK_TARGET_ARCH_AVR32 || \
  15. ADK_TARGET_ARCH_BFIN || \
  16. ADK_TARGET_ARCH_C6X || \
  17. ADK_TARGET_ARCH_CRIS || \
  18. ADK_TARGET_ARCH_CSKY || \
  19. ADK_TARGET_ARCH_FRV || \
  20. ADK_TARGET_ARCH_H8300 || \
  21. ADK_TARGET_ARCH_HPPA || \
  22. ADK_TARGET_ARCH_IA64 || \
  23. ADK_TARGET_ARCH_LM32 || \
  24. ADK_TARGET_ARCH_M68K || \
  25. ADK_TARGET_ARCH_METAG || \
  26. ADK_TARGET_ARCH_MICROBLAZE || \
  27. ADK_TARGET_ARCH_MIPS || \
  28. ADK_TARGET_ARCH_MIPS64 || \
  29. ADK_TARGET_ARCH_NDS32 || \
  30. ADK_TARGET_ARCH_NIOS2 || \
  31. ADK_TARGET_ARCH_OR1K || \
  32. ADK_TARGET_ARCH_PPC || \
  33. ADK_TARGET_ARCH_SH || \
  34. ADK_TARGET_ARCH_SPARC || \
  35. ADK_TARGET_ARCH_SPARC64 || \
  36. ADK_TARGET_ARCH_TILE || \
  37. ADK_TARGET_ARCH_X86 || \
  38. ADK_TARGET_ARCH_X86_64 || \
  39. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX
  40. help
  41. https://uclibc-ng.org
  42. config ADK_TARGET_LIB_MUSL
  43. bool "musl C library"
  44. select ADK_PACKAGE_LIBGCC
  45. depends on (\
  46. ADK_TARGET_ARCH_AARCH64 || \
  47. ADK_TARGET_ARCH_ARM || \
  48. ADK_TARGET_ARCH_MICROBLAZE || \
  49. ADK_TARGET_ARCH_MIPS || \
  50. ADK_TARGET_ARCH_MIPS64 || \
  51. ADK_TARGET_ARCH_OR1K || \
  52. ADK_TARGET_ARCH_PPC || \
  53. ADK_TARGET_ARCH_PPC64 || \
  54. ADK_TARGET_ARCH_S390 || \
  55. ADK_TARGET_ARCH_SH || \
  56. ADK_TARGET_ARCH_X86 || \
  57. ADK_TARGET_ARCH_X86_64 ) && ADK_TARGET_OS_LINUX
  58. help
  59. http://musl-libc.org
  60. config ADK_TARGET_LIB_GLIBC
  61. bool "GNU C library"
  62. select ADK_PACKAGE_LIBGCC
  63. depends on (\
  64. ADK_TARGET_ARCH_AARCH64 || \
  65. ADK_TARGET_ARCH_ALPHA || \
  66. ADK_TARGET_ARCH_ARM || \
  67. ADK_TARGET_ARCH_CSKY || \
  68. ADK_TARGET_ARCH_HPPA || \
  69. ADK_TARGET_ARCH_IA64 || \
  70. ADK_TARGET_ARCH_M68K || \
  71. ADK_TARGET_ARCH_MICROBLAZE || \
  72. ADK_TARGET_ARCH_MIPS || \
  73. ADK_TARGET_ARCH_MIPS64 || \
  74. ADK_TARGET_ARCH_NIOS2 || \
  75. ADK_TARGET_ARCH_PPC || \
  76. ADK_TARGET_ARCH_PPC64 || \
  77. ADK_TARGET_ARCH_S390 || \
  78. ADK_TARGET_CPU_SH_SH4 || \
  79. ADK_TARGET_CPU_SH_SH4A || \
  80. ADK_TARGET_ARCH_SPARC64 || \
  81. ADK_TARGET_ARCH_TILE || \
  82. ADK_TARGET_ARCH_RISCV32 || \
  83. ADK_TARGET_ARCH_RISCV64 || \
  84. ADK_TARGET_ARCH_X86 || \
  85. ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
  86. help
  87. http://www.gnu.org/libc
  88. config ADK_TARGET_LIB_NEWLIB
  89. bool "newlib C library"
  90. select ADK_TARGET_WITHOUT_THREADS
  91. depends on (\
  92. ADK_TARGET_ARCH_AARCH64 || \
  93. ADK_TARGET_ARCH_ARC || \
  94. ADK_TARGET_ARCH_ARM || \
  95. ADK_TARGET_ARCH_BFIN || \
  96. ADK_TARGET_ARCH_CR16 || \
  97. ADK_TARGET_ARCH_CRIS || \
  98. ADK_TARGET_ARCH_CSKY || \
  99. ADK_TARGET_ARCH_EPIPHANY || \
  100. ADK_TARGET_ARCH_FRV || \
  101. ADK_TARGET_ARCH_FT32 || \
  102. ADK_TARGET_ARCH_H8300 || \
  103. ADK_TARGET_ARCH_IA64 || \
  104. ADK_TARGET_ARCH_LM32 || \
  105. ADK_TARGET_ARCH_M32C || \
  106. ADK_TARGET_ARCH_M32R || \
  107. ADK_TARGET_ARCH_M68K || \
  108. ADK_TARGET_ARCH_MICROBLAZE || \
  109. ADK_TARGET_ARCH_MIPS || \
  110. ADK_TARGET_ARCH_MN10300 || \
  111. ADK_TARGET_ARCH_MOXIE || \
  112. ADK_TARGET_ARCH_MSP430 || \
  113. ADK_TARGET_ARCH_NIOS2 || \
  114. ADK_TARGET_ARCH_NDS32 || \
  115. ADK_TARGET_ARCH_OR1K || \
  116. ADK_TARGET_ARCH_PPC || \
  117. ADK_TARGET_ARCH_RISCV32 || \
  118. ADK_TARGET_ARCH_RISCV64 || \
  119. ADK_TARGET_ARCH_RX || \
  120. ADK_TARGET_ARCH_SH || \
  121. ADK_TARGET_ARCH_SPARC || \
  122. ADK_TARGET_ARCH_SPARC64 || \
  123. ADK_TARGET_ARCH_V850 || \
  124. ADK_TARGET_ARCH_X86 || \
  125. ADK_TARGET_ARCH_X86_64 || \
  126. ADK_TARGET_ARCH_XTENSA) && \
  127. (ADK_TARGET_OS_BAREMETAL || \
  128. ADK_TARGET_OS_FROSTED || \
  129. ADK_TARGET_OS_RTEMS || \
  130. ADK_TARGET_OS_ZEPHYR )
  131. help
  132. https://sourceware.org/newlib/
  133. endchoice
  134. choice
  135. prompt "C library version"
  136. config ADK_TARGET_LIB_UCLIBC_NG_1_0_30
  137. bool "1.0.30"
  138. depends on ADK_TARGET_LIB_UCLIBC_NG
  139. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  140. bool "git"
  141. depends on ADK_TARGET_LIB_UCLIBC_NG
  142. config ADK_TARGET_LIB_GLIBC_2_27
  143. bool "2.27"
  144. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY
  145. config ADK_TARGET_LIB_GLIBC_CSKY
  146. bool "csky"
  147. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_CSKY
  148. config ADK_TARGET_LIB_GLIBC_GIT
  149. bool "git"
  150. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY
  151. config ADK_TARGET_LIB_MUSL_1_1_19
  152. bool "1.1.19"
  153. depends on ADK_TARGET_LIB_MUSL
  154. config ADK_TARGET_LIB_MUSL_GIT
  155. bool "git"
  156. depends on ADK_TARGET_LIB_MUSL
  157. config ADK_TARGET_LIB_NEWLIB_3_0_0
  158. bool "3.0.0"
  159. depends on ADK_TARGET_LIB_NEWLIB \
  160. && !ADK_TARGET_ARCH_XTENSA \
  161. && !ADK_TARGET_OS_FROSTED \
  162. && !ADK_TARGET_OS_RTEMS
  163. config ADK_TARGET_LIB_NEWLIB_XTENSA
  164. bool "xtensa"
  165. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
  166. config ADK_TARGET_LIB_NEWLIB_FROSTED
  167. bool "frosted-git"
  168. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED
  169. config ADK_TARGET_LIB_NEWLIB_GIT
  170. bool "git"
  171. depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_OS_FROSTED
  172. endchoice
  173. choice
  174. prompt "Threading"
  175. depends on ADK_TARGET_LIB_UCLIBC_NG
  176. config ADK_TARGET_WITH_NPTL
  177. bool "enable NPTL"
  178. depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
  179. config ADK_TARGET_WITH_LT
  180. bool "enable Linuxthreads"
  181. depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS
  182. config ADK_TARGET_WITHOUT_THREADS
  183. bool "disable threads"
  184. endchoice
  185. config ADK_TARGET_SUPPORTS_THREADS
  186. bool
  187. config ADK_TARGET_SUPPORTS_NPTL
  188. bool
  189. config ADK_TARGET_SUPPORTS_LT
  190. bool
  191. config ADK_TARGET_LIBC_UTILS
  192. bool
  193. default n if ADK_TARGET_ARCH_C6X
  194. default n if ADK_TARGET_ARCH_LM32
  195. default n if ADK_TARGET_ARCH_H8300
  196. default y
  197. config ADK_TARGET_LIBC
  198. string
  199. default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
  200. default "glibc" if ADK_TARGET_LIB_GLIBC
  201. default "musl" if ADK_TARGET_LIB_MUSL
  202. default "newlib" if ADK_TARGET_LIB_NEWLIB
  203. config ADK_LIBC_VERSION
  204. string
  205. default "1.0.30" if ADK_TARGET_LIB_UCLIBC_NG_1_0_30
  206. default "1.1.19" if ADK_TARGET_LIB_MUSL_1_1_19
  207. default "2.27" if ADK_TARGET_LIB_GLIBC_2_27
  208. default "3.0.0" if ADK_TARGET_LIB_NEWLIB_3_0_0
  209. default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
  210. ADK_TARGET_LIB_MUSL_GIT || \
  211. ADK_TARGET_LIB_GLIBC_GIT || \
  212. ADK_TARGET_LIB_NEWLIB_GIT
  213. config ADK_TARGET_SUFFIX
  214. string
  215. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  216. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
  217. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
  218. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
  219. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
  220. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
  221. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  222. default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
  223. default "gnu" if ADK_TARGET_LIB_GLIBC
  224. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  225. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  226. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
  227. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  228. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  229. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  230. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  231. default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
  232. default "uclibcabiv2" if ADK_TARGET_LIB_UCLIBC_NG && (ADK_TARGET_CPU_CSKY_CK807 || ADK_TARGET_CPU_CSKY_CK810)
  233. default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
  234. default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  235. default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
  236. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
  237. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
  238. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
  239. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
  240. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  241. default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
  242. default "musl" if ADK_TARGET_LIB_MUSL
  243. default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
  244. default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL