Config.in.libc 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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_SH || \
  52. ADK_TARGET_ARCH_X86 || \
  53. ADK_TARGET_ARCH_X86_64 || \
  54. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
  55. help
  56. http://musl-libc.org
  57. config ADK_TARGET_LIB_GLIBC
  58. bool "GNU C library"
  59. select ADK_PACKAGE_LIBGCC
  60. depends on (\
  61. ADK_TARGET_ARCH_AARCH64 || \
  62. ADK_TARGET_ARCH_ALPHA || \
  63. ADK_TARGET_ARCH_ARM || \
  64. ADK_TARGET_ARCH_HPPA || \
  65. ADK_TARGET_ARCH_IA64 || \
  66. ADK_TARGET_ARCH_MICROBLAZE || \
  67. ADK_TARGET_ARCH_MIPS || \
  68. ADK_TARGET_ARCH_MIPS64 || \
  69. ADK_TARGET_ARCH_NIOS2 || \
  70. ADK_TARGET_ARCH_OR1K || \
  71. ADK_TARGET_ARCH_PPC || \
  72. ADK_TARGET_ARCH_PPC64 || \
  73. ADK_TARGET_ARCH_S390 || \
  74. ADK_TARGET_ARCH_SH || \
  75. ADK_TARGET_ARCH_SPARC || \
  76. ADK_TARGET_ARCH_SPARC64 || \
  77. ADK_TARGET_ARCH_TILE || \
  78. ADK_TARGET_ARCH_X86 || \
  79. ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
  80. help
  81. http://www.gnu.org/libc
  82. config ADK_TARGET_LIB_NEWLIB
  83. bool "newlib C library"
  84. select ADK_TARGET_WITHOUT_THREADS
  85. depends on (\
  86. ADK_TARGET_ARCH_AARCH64 || \
  87. ADK_TARGET_ARCH_ARC || \
  88. ADK_TARGET_ARCH_ARM || \
  89. ADK_TARGET_ARCH_BFIN || \
  90. ADK_TARGET_ARCH_CR16 || \
  91. ADK_TARGET_ARCH_CRIS || \
  92. ADK_TARGET_ARCH_EPIPHANY || \
  93. ADK_TARGET_ARCH_FRV || \
  94. ADK_TARGET_ARCH_H8300 || \
  95. ADK_TARGET_ARCH_LM32 || \
  96. ADK_TARGET_ARCH_M32R || \
  97. ADK_TARGET_ARCH_M68K || \
  98. ADK_TARGET_ARCH_MICROBLAZE || \
  99. ADK_TARGET_ARCH_MIPS || \
  100. ADK_TARGET_ARCH_MN10300 || \
  101. ADK_TARGET_ARCH_MOXIE || \
  102. ADK_TARGET_ARCH_MSP430 || \
  103. ADK_TARGET_ARCH_NIOS2 || \
  104. ADK_TARGET_ARCH_NDS32 || \
  105. ADK_TARGET_ARCH_OR1K || \
  106. ADK_TARGET_ARCH_PPC || \
  107. ADK_TARGET_ARCH_SPARC || \
  108. ADK_TARGET_ARCH_V850 || \
  109. ADK_TARGET_ARCH_X86 || \
  110. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_BAREMETAL
  111. help
  112. https://sourceware.org/newlib/
  113. endchoice
  114. choice
  115. prompt "C library version"
  116. config ADK_TARGET_LIB_UCLIBC_NG_1_0_18
  117. bool "1.0.18"
  118. depends on ADK_TARGET_LIB_UCLIBC_NG
  119. config ADK_TARGET_LIB_UCLIBC_NG_1_0_17
  120. bool "1.0.17"
  121. depends on ADK_TARGET_LIB_UCLIBC_NG
  122. config ADK_TARGET_LIB_UCLIBC_NG_1_0_16
  123. bool "1.0.16"
  124. depends on ADK_TARGET_LIB_UCLIBC_NG
  125. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  126. bool "git"
  127. depends on ADK_TARGET_LIB_UCLIBC_NG
  128. config ADK_TARGET_LIB_GLIBC_2_24
  129. bool "2.24"
  130. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  131. config ADK_TARGET_LIB_GLIBC_2_23
  132. bool "2.23"
  133. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  134. config ADK_TARGET_LIB_GLIBC_2_22
  135. bool "2.22"
  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_15
  145. bool "1.1.15"
  146. depends on ADK_TARGET_LIB_MUSL
  147. config ADK_TARGET_LIB_MUSL_1_1_14
  148. bool "1.1.14"
  149. depends on ADK_TARGET_LIB_MUSL
  150. config ADK_TARGET_LIB_MUSL_1_1_13
  151. bool "1.1.13"
  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.18" if ADK_TARGET_LIB_UCLIBC_NG_1_0_18
  192. default "1.0.17" if ADK_TARGET_LIB_UCLIBC_NG_1_0_17
  193. default "1.0.16" if ADK_TARGET_LIB_UCLIBC_NG_1_0_16
  194. default "1.1.15" if ADK_TARGET_LIB_MUSL_1_1_15
  195. default "1.1.14" if ADK_TARGET_LIB_MUSL_1_1_14
  196. default "1.1.13" if ADK_TARGET_LIB_MUSL_1_1_13
  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.20-or1k" if ADK_TARGET_LIB_GLIBC_OR1K
  201. default "2.4.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
  202. default "2.3.0" if ADK_TARGET_LIB_NEWLIB_2_3_0
  203. default "2.2.0" if ADK_TARGET_LIB_NEWLIB_2_2_0
  204. default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
  205. ADK_TARGET_LIB_MUSL_GIT || \
  206. ADK_TARGET_LIB_GLIBC_GIT || \
  207. ADK_TARGET_LIB_NEWLIB_GIT
  208. config ADK_TARGET_SUFFIX
  209. string
  210. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  211. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
  212. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
  213. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
  214. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
  215. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
  216. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  217. default "gnu" if ADK_TARGET_LIB_GLIBC
  218. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  219. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  220. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
  221. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  222. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  223. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  224. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  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 "musl" if ADK_TARGET_LIB_MUSL
  234. default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
  235. default "elf" if ADK_TARGET_LIB_NEWLIB