Config.in.libc 7.8 KB

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