Config.in.libc 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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_X86 || \
  35. ADK_TARGET_ARCH_X86_64 || \
  36. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
  37. help
  38. http://uclibc-ng.org
  39. config ADK_TARGET_LIB_MUSL
  40. bool "musl C library"
  41. select ADK_PACKAGE_LIBGCC
  42. depends on (\
  43. ADK_TARGET_ARCH_AARCH64 || \
  44. ADK_TARGET_ARCH_ARM || \
  45. ADK_TARGET_ARCH_MICROBLAZE || \
  46. ADK_TARGET_ARCH_MIPS || \
  47. ADK_TARGET_ARCH_MIPS64 || \
  48. ADK_TARGET_ARCH_OR1K || \
  49. ADK_TARGET_ARCH_PPC || \
  50. ADK_TARGET_ARCH_PPC64 || \
  51. ADK_TARGET_ARCH_S390 || \
  52. ADK_TARGET_ARCH_SH || \
  53. ADK_TARGET_ARCH_X86 || \
  54. ADK_TARGET_ARCH_X86_64 || \
  55. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
  56. help
  57. http://musl-libc.org
  58. config ADK_TARGET_LIB_GLIBC
  59. bool "GNU C library"
  60. select ADK_PACKAGE_LIBGCC
  61. depends on (\
  62. ADK_TARGET_ARCH_AARCH64 || \
  63. ADK_TARGET_ARCH_ALPHA || \
  64. ADK_TARGET_ARCH_ARM || \
  65. ADK_TARGET_ARCH_HPPA || \
  66. ADK_TARGET_ARCH_IA64 || \
  67. ADK_TARGET_ARCH_MICROBLAZE || \
  68. ADK_TARGET_ARCH_MIPS || \
  69. ADK_TARGET_ARCH_MIPS64 || \
  70. ADK_TARGET_ARCH_NIOS2 || \
  71. ADK_TARGET_ARCH_OR1K || \
  72. ADK_TARGET_ARCH_PPC || \
  73. ADK_TARGET_ARCH_PPC64 || \
  74. ADK_TARGET_ARCH_S390 || \
  75. ADK_TARGET_ARCH_SH || \
  76. ADK_TARGET_ARCH_SPARC || \
  77. ADK_TARGET_ARCH_SPARC64 || \
  78. ADK_TARGET_ARCH_TILE || \
  79. ADK_TARGET_ARCH_X86 || \
  80. ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
  81. help
  82. http://www.gnu.org/libc
  83. config ADK_TARGET_LIB_NEWLIB
  84. bool "newlib C library"
  85. select ADK_TARGET_WITHOUT_THREADS
  86. depends on (\
  87. ADK_TARGET_ARCH_AARCH64 || \
  88. ADK_TARGET_ARCH_ARC || \
  89. ADK_TARGET_ARCH_ARM || \
  90. ADK_TARGET_ARCH_BFIN || \
  91. ADK_TARGET_ARCH_CR16 || \
  92. ADK_TARGET_ARCH_CRIS || \
  93. ADK_TARGET_ARCH_EPIPHANY || \
  94. ADK_TARGET_ARCH_FRV || \
  95. ADK_TARGET_ARCH_H8300 || \
  96. ADK_TARGET_ARCH_LM32 || \
  97. ADK_TARGET_ARCH_M32R || \
  98. ADK_TARGET_ARCH_M68K || \
  99. ADK_TARGET_ARCH_MICROBLAZE || \
  100. ADK_TARGET_ARCH_MIPS || \
  101. ADK_TARGET_ARCH_MN10300 || \
  102. ADK_TARGET_ARCH_MOXIE || \
  103. ADK_TARGET_ARCH_MSP430 || \
  104. ADK_TARGET_ARCH_NIOS2 || \
  105. ADK_TARGET_ARCH_NDS32 || \
  106. ADK_TARGET_ARCH_OR1K || \
  107. ADK_TARGET_ARCH_PPC || \
  108. ADK_TARGET_ARCH_SPARC || \
  109. ADK_TARGET_ARCH_V850 || \
  110. ADK_TARGET_ARCH_X86 || \
  111. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_BAREMETAL
  112. help
  113. https://sourceware.org/newlib/
  114. endchoice
  115. choice
  116. prompt "C library version"
  117. config ADK_TARGET_LIB_UCLIBC_NG_1_0_19
  118. bool "1.0.19"
  119. depends on ADK_TARGET_LIB_UCLIBC_NG
  120. config ADK_TARGET_LIB_UCLIBC_NG_1_0_18
  121. bool "1.0.18"
  122. depends on ADK_TARGET_LIB_UCLIBC_NG
  123. config ADK_TARGET_LIB_UCLIBC_NG_1_0_17
  124. bool "1.0.17"
  125. depends on ADK_TARGET_LIB_UCLIBC_NG
  126. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  127. bool "git"
  128. depends on ADK_TARGET_LIB_UCLIBC_NG
  129. config ADK_TARGET_LIB_GLIBC_2_24
  130. bool "2.24"
  131. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  132. config ADK_TARGET_LIB_GLIBC_2_23
  133. bool "2.23"
  134. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  135. config ADK_TARGET_LIB_GLIBC_2_22
  136. bool "2.22"
  137. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_HPPA \
  138. && !ADK_TARGET_ARCH_OR1K
  139. config ADK_TARGET_LIB_GLIBC_OR1K
  140. bool "2.20-or1k"
  141. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_OR1K
  142. config ADK_TARGET_LIB_GLIBC_GIT
  143. bool "git"
  144. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  145. config ADK_TARGET_LIB_MUSL_1_1_15
  146. bool "1.1.15"
  147. depends on ADK_TARGET_LIB_MUSL
  148. config ADK_TARGET_LIB_MUSL_1_1_14
  149. bool "1.1.14"
  150. depends on ADK_TARGET_LIB_MUSL
  151. config ADK_TARGET_LIB_MUSL_1_1_13
  152. bool "1.1.13"
  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_2_4_0
  158. bool "2.4.0"
  159. depends on ADK_TARGET_LIB_NEWLIB
  160. config ADK_TARGET_LIB_NEWLIB_2_3_0
  161. bool "2.3.0"
  162. depends on ADK_TARGET_LIB_NEWLIB
  163. config ADK_TARGET_LIB_NEWLIB_2_2_0
  164. bool "2.2.0"
  165. depends on ADK_TARGET_LIB_NEWLIB
  166. config ADK_TARGET_LIB_NEWLIB_GIT
  167. bool "git"
  168. depends on ADK_TARGET_LIB_NEWLIB
  169. endchoice
  170. choice
  171. prompt "Threading"
  172. config ADK_TARGET_WITH_NPTL
  173. bool "enable NPTL"
  174. depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
  175. config ADK_TARGET_WITH_LT
  176. bool "enable Linuxthreads"
  177. depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS && ADK_TARGET_LIB_UCLIBC_NG
  178. config ADK_TARGET_WITHOUT_THREADS
  179. bool "disable threads"
  180. depends on ADK_TARGET_LIB_UCLIBC_NG
  181. endchoice
  182. config ADK_TARGET_SUPPORTS_THREADS
  183. bool
  184. config ADK_TARGET_SUPPORTS_NPTL
  185. bool
  186. config ADK_TARGET_SUPPORTS_LT
  187. bool
  188. config ADK_TARGET_LIBC
  189. string
  190. default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
  191. default "glibc" if ADK_TARGET_LIB_GLIBC
  192. default "musl" if ADK_TARGET_LIB_MUSL
  193. default "newlib" if ADK_TARGET_LIB_NEWLIB
  194. config ADK_LIBC_VERSION
  195. string
  196. default "1.0.19" if ADK_TARGET_LIB_UCLIBC_NG_1_0_19
  197. default "1.0.18" if ADK_TARGET_LIB_UCLIBC_NG_1_0_18
  198. default "1.0.17" if ADK_TARGET_LIB_UCLIBC_NG_1_0_17
  199. default "1.1.15" if ADK_TARGET_LIB_MUSL_1_1_15
  200. default "1.1.14" if ADK_TARGET_LIB_MUSL_1_1_14
  201. default "1.1.13" if ADK_TARGET_LIB_MUSL_1_1_13
  202. default "2.23" if ADK_TARGET_LIB_GLIBC_2_23
  203. default "2.22" if ADK_TARGET_LIB_GLIBC_2_22
  204. default "2.21" if ADK_TARGET_LIB_GLIBC_2_21
  205. default "2.20-or1k" if ADK_TARGET_LIB_GLIBC_OR1K
  206. default "2.4.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
  207. default "2.3.0" if ADK_TARGET_LIB_NEWLIB_2_3_0
  208. default "2.2.0" if ADK_TARGET_LIB_NEWLIB_2_2_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 "gnu" if ADK_TARGET_LIB_GLIBC
  223. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  224. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  225. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
  226. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  227. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  228. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  229. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  230. default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
  231. default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  232. default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
  233. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
  234. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
  235. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
  236. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
  237. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  238. default "musl" if ADK_TARGET_LIB_MUSL
  239. default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
  240. default "elf" if ADK_TARGET_LIB_NEWLIB