1
0

Config.in.libc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. depends on (\
  9. ADK_TARGET_ARCH_ALPHA || \
  10. ADK_TARGET_ARCH_ARC || \
  11. ADK_TARGET_ARCH_ARM || \
  12. ADK_TARGET_ARCH_AVR32 || \
  13. ADK_TARGET_ARCH_BFIN || \
  14. ADK_TARGET_ARCH_C6X || \
  15. ADK_TARGET_ARCH_CRIS || \
  16. ADK_TARGET_ARCH_FRV || \
  17. ADK_TARGET_ARCH_H8300 || \
  18. ADK_TARGET_ARCH_HPPA || \
  19. ADK_TARGET_ARCH_IA64 || \
  20. ADK_TARGET_ARCH_LM32 || \
  21. ADK_TARGET_ARCH_M68K || \
  22. ADK_TARGET_ARCH_METAG || \
  23. ADK_TARGET_ARCH_MICROBLAZE || \
  24. ADK_TARGET_ARCH_MIPS || \
  25. ADK_TARGET_ARCH_MIPS64 || \
  26. ADK_TARGET_ARCH_NDS32 || \
  27. ADK_TARGET_ARCH_NIOS2 || \
  28. ADK_TARGET_ARCH_OR1K || \
  29. ADK_TARGET_ARCH_PPC || \
  30. ADK_TARGET_ARCH_SH || \
  31. ADK_TARGET_ARCH_SPARC || \
  32. ADK_TARGET_ARCH_X86 || \
  33. ADK_TARGET_ARCH_X86_64 || \
  34. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
  35. help
  36. http://uclibc-ng.org
  37. config ADK_TARGET_LIB_MUSL
  38. bool "musl C library"
  39. depends on (\
  40. ADK_TARGET_ARCH_AARCH64 || \
  41. ADK_TARGET_ARCH_ARM || \
  42. ADK_TARGET_ARCH_MICROBLAZE || \
  43. ADK_TARGET_ARCH_MIPS || \
  44. ADK_TARGET_ARCH_MIPS64 || \
  45. ADK_TARGET_ARCH_OR1K || \
  46. ADK_TARGET_ARCH_PPC || \
  47. ADK_TARGET_ARCH_PPC64 || \
  48. ADK_TARGET_ARCH_SH || \
  49. ADK_TARGET_ARCH_X86 || \
  50. ADK_TARGET_ARCH_X86_64 || \
  51. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
  52. help
  53. http://musl-libc.org
  54. config ADK_TARGET_LIB_GLIBC
  55. bool "GNU C library"
  56. depends on (\
  57. ADK_TARGET_ARCH_AARCH64 || \
  58. ADK_TARGET_ARCH_ALPHA || \
  59. ADK_TARGET_ARCH_ARM || \
  60. ADK_TARGET_ARCH_HPPA || \
  61. ADK_TARGET_ARCH_IA64 || \
  62. ADK_TARGET_ARCH_MICROBLAZE || \
  63. ADK_TARGET_ARCH_MIPS || \
  64. ADK_TARGET_ARCH_MIPS64 || \
  65. ADK_TARGET_ARCH_NIOS2 || \
  66. ADK_TARGET_ARCH_OR1K || \
  67. ADK_TARGET_ARCH_PPC || \
  68. ADK_TARGET_ARCH_PPC64 || \
  69. ADK_TARGET_ARCH_S390 || \
  70. ADK_TARGET_ARCH_SH || \
  71. ADK_TARGET_ARCH_SPARC || \
  72. ADK_TARGET_ARCH_SPARC64 || \
  73. ADK_TARGET_ARCH_TILE || \
  74. ADK_TARGET_ARCH_X86 || \
  75. ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
  76. help
  77. http://www.gnu.org/libc
  78. config ADK_TARGET_LIB_NEWLIB
  79. bool "newlib C library"
  80. select ADK_TARGET_WITHOUT_THREADS
  81. depends on (\
  82. ADK_TARGET_ARCH_AARCH64 || \
  83. ADK_TARGET_ARCH_ARC || \
  84. ADK_TARGET_ARCH_ARM || \
  85. ADK_TARGET_ARCH_BFIN || \
  86. ADK_TARGET_ARCH_CRIS || \
  87. ADK_TARGET_ARCH_EPIPHANY || \
  88. ADK_TARGET_ARCH_FRV || \
  89. ADK_TARGET_ARCH_H8300 || \
  90. ADK_TARGET_ARCH_LM32 || \
  91. ADK_TARGET_ARCH_M32R || \
  92. ADK_TARGET_ARCH_M68K || \
  93. ADK_TARGET_ARCH_MICROBLAZE || \
  94. ADK_TARGET_ARCH_MIPS || \
  95. ADK_TARGET_ARCH_MN10300 || \
  96. ADK_TARGET_ARCH_MOXIE || \
  97. ADK_TARGET_ARCH_MSP430 || \
  98. ADK_TARGET_ARCH_NIOS2 || \
  99. ADK_TARGET_ARCH_NDS32 || \
  100. ADK_TARGET_ARCH_OR1K || \
  101. ADK_TARGET_ARCH_PPC || \
  102. ADK_TARGET_ARCH_SPARC || \
  103. ADK_TARGET_ARCH_V850 || \
  104. ADK_TARGET_ARCH_X86 || \
  105. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_BAREMETAL
  106. help
  107. https://sourceware.org/newlib/
  108. endchoice
  109. choice
  110. prompt "C library version"
  111. config ADK_TARGET_LIB_UCLIBC_NG_1_0_15
  112. bool "1.0.15"
  113. depends on ADK_TARGET_LIB_UCLIBC_NG
  114. config ADK_TARGET_LIB_UCLIBC_NG_1_0_14
  115. bool "1.0.14"
  116. depends on ADK_TARGET_LIB_UCLIBC_NG
  117. config ADK_TARGET_LIB_UCLIBC_NG_1_0_13
  118. bool "1.0.13"
  119. depends on ADK_TARGET_LIB_UCLIBC_NG
  120. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  121. bool "git"
  122. depends on ADK_TARGET_LIB_UCLIBC_NG
  123. config ADK_TARGET_LIB_GLIBC_2_23
  124. bool "2.23"
  125. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  126. config ADK_TARGET_LIB_GLIBC_2_22
  127. bool "2.22"
  128. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_HPPA \
  129. && !ADK_TARGET_ARCH_OR1K
  130. config ADK_TARGET_LIB_GLIBC_2_21
  131. bool "2.21"
  132. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_HPPA \
  133. && !ADK_TARGET_ARCH_OR1K
  134. config ADK_TARGET_LIB_GLIBC_2_18
  135. bool "2.18"
  136. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_HPPA \
  137. && !ADK_TARGET_ARCH_OR1K
  138. config ADK_TARGET_LIB_GLIBC_OR1K
  139. bool "2.20-or1k"
  140. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_OR1K
  141. config ADK_TARGET_LIB_GLIBC_GIT
  142. bool "git"
  143. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  144. config ADK_TARGET_LIB_MUSL_1_1_14
  145. bool "1.1.14"
  146. depends on ADK_TARGET_LIB_MUSL
  147. config ADK_TARGET_LIB_MUSL_1_1_13
  148. bool "1.1.13"
  149. depends on ADK_TARGET_LIB_MUSL
  150. config ADK_TARGET_LIB_MUSL_1_1_12
  151. bool "1.1.12"
  152. depends on ADK_TARGET_LIB_MUSL
  153. config ADK_TARGET_LIB_MUSL_GIT
  154. bool "git"
  155. depends on ADK_TARGET_LIB_MUSL
  156. config ADK_TARGET_LIB_NEWLIB_2_4_0
  157. bool "2.4.0"
  158. depends on ADK_TARGET_LIB_NEWLIB
  159. config ADK_TARGET_LIB_NEWLIB_2_3_0
  160. bool "2.3.0"
  161. depends on ADK_TARGET_LIB_NEWLIB
  162. config ADK_TARGET_LIB_NEWLIB_2_2_0
  163. bool "2.2.0"
  164. depends on ADK_TARGET_LIB_NEWLIB
  165. config ADK_TARGET_LIB_NEWLIB_GIT
  166. bool "git"
  167. depends on ADK_TARGET_LIB_NEWLIB
  168. endchoice
  169. choice
  170. prompt "Threading"
  171. depends on ADK_TARGET_LIB_UCLIBC_NG && !ADK_TARGET_WITHOUT_THREADS
  172. config ADK_TARGET_LIB_WITH_THREADS
  173. bool "enable threads"
  174. config ADK_TARGET_LIB_WITHOUT_THREADS
  175. bool "disable threads"
  176. endchoice
  177. config ADK_TARGET_WITH_LT
  178. bool
  179. config ADK_TARGET_WITH_NPTL
  180. bool
  181. config ADK_TARGET_WITHOUT_THREADS
  182. bool
  183. config ADK_TARGET_LIBC
  184. string
  185. default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
  186. default "glibc" if ADK_TARGET_LIB_GLIBC
  187. default "musl" if ADK_TARGET_LIB_MUSL
  188. default "newlib" if ADK_TARGET_LIB_NEWLIB
  189. config ADK_LIBC_VERSION
  190. string
  191. default "1.0.15" if ADK_TARGET_LIB_UCLIBC_NG_1_0_15
  192. default "1.0.14" if ADK_TARGET_LIB_UCLIBC_NG_1_0_14
  193. default "1.0.13" if ADK_TARGET_LIB_UCLIBC_NG_1_0_13
  194. default "1.1.14" if ADK_TARGET_LIB_MUSL_1_1_14
  195. default "1.1.13" if ADK_TARGET_LIB_MUSL_1_1_13
  196. default "1.1.12" if ADK_TARGET_LIB_MUSL_1_1_12
  197. default "2.23" if ADK_TARGET_LIB_GLIBC_2_23
  198. default "2.22" if ADK_TARGET_LIB_GLIBC_2_22
  199. default "2.21" if ADK_TARGET_LIB_GLIBC_2_21
  200. default "2.18" if ADK_TARGET_LIB_GLIBC_2_18
  201. default "2.20-or1k" if ADK_TARGET_LIB_GLIBC_OR1K
  202. default "2.4.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
  203. default "2.3.0" if ADK_TARGET_LIB_NEWLIB_2_3_0
  204. default "2.2.0" if ADK_TARGET_LIB_NEWLIB_2_2_0
  205. default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
  206. ADK_TARGET_LIB_MUSL_GIT || \
  207. ADK_TARGET_LIB_GLIBC_GIT || \
  208. ADK_TARGET_LIB_NEWLIB_GIT
  209. config ADK_TARGET_SUFFIX
  210. string
  211. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  212. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
  213. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
  214. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
  215. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
  216. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
  217. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  218. default "gnu" if ADK_TARGET_LIB_GLIBC
  219. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  220. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  221. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
  222. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  223. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  224. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  225. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  226. default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
  227. default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  228. default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
  229. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
  230. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
  231. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
  232. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
  233. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  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