Config.in.libc 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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
  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_X86 || \
  37. ADK_TARGET_ARCH_X86_64 || \
  38. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
  39. help
  40. http://uclibc-ng.org
  41. config ADK_TARGET_LIB_MUSL
  42. bool "musl C library"
  43. select ADK_PACKAGE_LIBGCC
  44. depends on (\
  45. ADK_TARGET_ARCH_AARCH64 || \
  46. ADK_TARGET_ARCH_ARM || \
  47. ADK_TARGET_ARCH_MICROBLAZE || \
  48. ADK_TARGET_ARCH_MIPS || \
  49. ADK_TARGET_ARCH_MIPS64 || \
  50. ADK_TARGET_ARCH_OR1K || \
  51. ADK_TARGET_ARCH_PPC || \
  52. ADK_TARGET_ARCH_PPC64 || \
  53. ADK_TARGET_ARCH_S390 || \
  54. ADK_TARGET_ARCH_SH || \
  55. ADK_TARGET_ARCH_X86 || \
  56. ADK_TARGET_ARCH_X86_64 ) && ADK_TARGET_OS_LINUX
  57. help
  58. http://musl-libc.org
  59. config ADK_TARGET_LIB_GLIBC
  60. bool "GNU C library"
  61. select ADK_PACKAGE_LIBGCC
  62. depends on (\
  63. ADK_TARGET_ARCH_AARCH64 || \
  64. ADK_TARGET_ARCH_ALPHA || \
  65. ADK_TARGET_ARCH_ARM || \
  66. ADK_TARGET_ARCH_CSKY || \
  67. ADK_TARGET_ARCH_HPPA || \
  68. ADK_TARGET_ARCH_IA64 || \
  69. ADK_TARGET_ARCH_M68K || \
  70. ADK_TARGET_ARCH_MICROBLAZE || \
  71. ADK_TARGET_ARCH_MIPS || \
  72. ADK_TARGET_ARCH_MIPS64 || \
  73. ADK_TARGET_ARCH_NIOS2 || \
  74. ADK_TARGET_ARCH_PPC || \
  75. ADK_TARGET_ARCH_PPC64 || \
  76. ADK_TARGET_ARCH_S390 || \
  77. ADK_TARGET_CPU_SH_SH4 || \
  78. ADK_TARGET_CPU_SH_SH4A || \
  79. ADK_TARGET_ARCH_SPARC64 || \
  80. ADK_TARGET_ARCH_TILE || \
  81. ADK_TARGET_ARCH_RISCV32 || \
  82. ADK_TARGET_ARCH_RISCV64 || \
  83. ADK_TARGET_ARCH_X86 || \
  84. ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
  85. help
  86. http://www.gnu.org/libc
  87. config ADK_TARGET_LIB_NEWLIB
  88. bool "newlib C library"
  89. select ADK_TARGET_WITHOUT_THREADS
  90. depends on (\
  91. ADK_TARGET_ARCH_AARCH64 || \
  92. ADK_TARGET_ARCH_ARC || \
  93. ADK_TARGET_ARCH_ARM || \
  94. ADK_TARGET_ARCH_BFIN || \
  95. ADK_TARGET_ARCH_CR16 || \
  96. ADK_TARGET_ARCH_CRIS || \
  97. ADK_TARGET_ARCH_CSKY || \
  98. ADK_TARGET_ARCH_EPIPHANY || \
  99. ADK_TARGET_ARCH_FRV || \
  100. ADK_TARGET_ARCH_FT32 || \
  101. ADK_TARGET_ARCH_H8300 || \
  102. ADK_TARGET_ARCH_IA64 || \
  103. ADK_TARGET_ARCH_LM32 || \
  104. ADK_TARGET_ARCH_M32C || \
  105. ADK_TARGET_ARCH_M32R || \
  106. ADK_TARGET_ARCH_M68K || \
  107. ADK_TARGET_ARCH_MICROBLAZE || \
  108. ADK_TARGET_ARCH_MIPS || \
  109. ADK_TARGET_ARCH_MN10300 || \
  110. ADK_TARGET_ARCH_MOXIE || \
  111. ADK_TARGET_ARCH_MSP430 || \
  112. ADK_TARGET_ARCH_NIOS2 || \
  113. ADK_TARGET_ARCH_NDS32 || \
  114. ADK_TARGET_ARCH_OR1K || \
  115. ADK_TARGET_ARCH_PPC || \
  116. ADK_TARGET_ARCH_RISCV32 || \
  117. ADK_TARGET_ARCH_RISCV64 || \
  118. ADK_TARGET_ARCH_RX || \
  119. ADK_TARGET_ARCH_SH || \
  120. ADK_TARGET_ARCH_SPARC || \
  121. ADK_TARGET_ARCH_SPARC64 || \
  122. ADK_TARGET_ARCH_V850 || \
  123. ADK_TARGET_ARCH_X86 || \
  124. ADK_TARGET_ARCH_X86_64 || \
  125. ADK_TARGET_ARCH_XTENSA) && \
  126. (ADK_TARGET_OS_BAREMETAL || \
  127. ADK_TARGET_OS_FROSTED || \
  128. ADK_TARGET_OS_RTEMS || \
  129. ADK_TARGET_OS_ZEPHYR )
  130. help
  131. https://sourceware.org/newlib/
  132. endchoice
  133. choice
  134. prompt "C library version"
  135. config ADK_TARGET_LIB_UCLIBC_NG_1_0_27
  136. bool "1.0.27"
  137. depends on ADK_TARGET_LIB_UCLIBC_NG
  138. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  139. bool "git"
  140. depends on ADK_TARGET_LIB_UCLIBC_NG
  141. config ADK_TARGET_LIB_GLIBC_2_26
  142. bool "2.26"
  143. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_RISCV32 && !ADK_TARGET_ARCH_RISCV64 && !ADK_TARGET_ARCH_CSKY
  144. config ADK_TARGET_LIB_GLIBC_RISCV
  145. bool "riscv"
  146. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_RISCV32 || ADK_TARGET_ARCH_RISCV64
  147. config ADK_TARGET_LIB_GLIBC_CSKY
  148. bool "csky"
  149. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_CSKY
  150. config ADK_TARGET_LIB_GLIBC_GIT
  151. bool "git"
  152. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_RISCV32 && !ADK_TARGET_ARCH_RISCV64 && !ADK_TARGET_ARCH_CSKY
  153. config ADK_TARGET_LIB_MUSL_1_1_18
  154. bool "1.1.18"
  155. depends on ADK_TARGET_LIB_MUSL
  156. config ADK_TARGET_LIB_MUSL_GIT
  157. bool "git"
  158. depends on ADK_TARGET_LIB_MUSL
  159. config ADK_TARGET_LIB_NEWLIB_2_5_0
  160. bool "2.5.0"
  161. depends on ADK_TARGET_LIB_NEWLIB \
  162. && !ADK_TARGET_ARCH_RISCV \
  163. && !ADK_TARGET_ARCH_XTENSA \
  164. && !ADK_TARGET_OS_FROSTED \
  165. && !ADK_TARGET_OS_RTEMS
  166. config ADK_TARGET_LIB_NEWLIB_RISCV
  167. bool "2.4.0-riscv"
  168. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_RISCV
  169. config ADK_TARGET_LIB_NEWLIB_XTENSA
  170. bool "xtensa"
  171. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
  172. config ADK_TARGET_LIB_NEWLIB_FROSTED
  173. bool "frosted-git"
  174. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED
  175. config ADK_TARGET_LIB_NEWLIB_GIT
  176. bool "git"
  177. depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_ARCH_RISCV && !ADK_TARGET_OS_FROSTED
  178. endchoice
  179. choice
  180. prompt "Threading"
  181. depends on ADK_TARGET_LIB_UCLIBC_NG
  182. config ADK_TARGET_WITH_NPTL
  183. bool "enable NPTL"
  184. depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
  185. config ADK_TARGET_WITH_LT
  186. bool "enable Linuxthreads"
  187. depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS
  188. config ADK_TARGET_WITHOUT_THREADS
  189. bool "disable threads"
  190. endchoice
  191. config ADK_TARGET_SUPPORTS_THREADS
  192. bool
  193. config ADK_TARGET_SUPPORTS_NPTL
  194. bool
  195. config ADK_TARGET_SUPPORTS_LT
  196. bool
  197. config ADK_TARGET_LIBC_UTILS
  198. bool
  199. default n if ADK_TARGET_ARCH_C6X
  200. default n if ADK_TARGET_ARCH_LM32
  201. default n if ADK_TARGET_ARCH_H8300
  202. default y
  203. config ADK_TARGET_LIBC
  204. string
  205. default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
  206. default "glibc" if ADK_TARGET_LIB_GLIBC
  207. default "musl" if ADK_TARGET_LIB_MUSL
  208. default "newlib" if ADK_TARGET_LIB_NEWLIB
  209. config ADK_LIBC_VERSION
  210. string
  211. default "1.0.27" if ADK_TARGET_LIB_UCLIBC_NG_1_0_27
  212. default "1.1.18" if ADK_TARGET_LIB_MUSL_1_1_18
  213. default "2.26" if ADK_TARGET_LIB_GLIBC_2_26
  214. default "2.4.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
  215. default "2.4.0-riscv" if ADK_TARGET_LIB_NEWLIB_RISCV
  216. default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
  217. ADK_TARGET_LIB_MUSL_GIT || \
  218. ADK_TARGET_LIB_GLIBC_GIT || \
  219. ADK_TARGET_LIB_NEWLIB_GIT
  220. config ADK_TARGET_SUFFIX
  221. string
  222. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  223. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
  224. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
  225. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
  226. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
  227. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
  228. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  229. default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
  230. default "gnu" if ADK_TARGET_LIB_GLIBC
  231. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  232. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  233. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
  234. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  235. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  236. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  237. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  238. default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
  239. default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
  240. default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  241. default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
  242. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
  243. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
  244. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
  245. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
  246. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  247. default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
  248. default "musl" if ADK_TARGET_LIB_MUSL
  249. default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
  250. default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL