Config.in.libc 8.3 KB

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