Config.in.libc 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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_CR16 || \
  87. ADK_TARGET_ARCH_CRIS || \
  88. ADK_TARGET_ARCH_EPIPHANY || \
  89. ADK_TARGET_ARCH_FRV || \
  90. ADK_TARGET_ARCH_H8300 || \
  91. ADK_TARGET_ARCH_LM32 || \
  92. ADK_TARGET_ARCH_M32R || \
  93. ADK_TARGET_ARCH_M68K || \
  94. ADK_TARGET_ARCH_MICROBLAZE || \
  95. ADK_TARGET_ARCH_MIPS || \
  96. ADK_TARGET_ARCH_MN10300 || \
  97. ADK_TARGET_ARCH_MOXIE || \
  98. ADK_TARGET_ARCH_MSP430 || \
  99. ADK_TARGET_ARCH_NIOS2 || \
  100. ADK_TARGET_ARCH_NDS32 || \
  101. ADK_TARGET_ARCH_OR1K || \
  102. ADK_TARGET_ARCH_PPC || \
  103. ADK_TARGET_ARCH_SPARC || \
  104. ADK_TARGET_ARCH_V850 || \
  105. ADK_TARGET_ARCH_X86 || \
  106. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_BAREMETAL
  107. help
  108. https://sourceware.org/newlib/
  109. endchoice
  110. choice
  111. prompt "C library version"
  112. config ADK_TARGET_LIB_UCLIBC_NG_1_0_18
  113. bool "1.0.18"
  114. depends on ADK_TARGET_LIB_UCLIBC_NG
  115. config ADK_TARGET_LIB_UCLIBC_NG_1_0_17
  116. bool "1.0.17"
  117. depends on ADK_TARGET_LIB_UCLIBC_NG
  118. config ADK_TARGET_LIB_UCLIBC_NG_1_0_16
  119. bool "1.0.16"
  120. depends on ADK_TARGET_LIB_UCLIBC_NG
  121. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  122. bool "git"
  123. depends on ADK_TARGET_LIB_UCLIBC_NG
  124. config ADK_TARGET_LIB_GLIBC_2_24
  125. bool "2.24"
  126. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  127. config ADK_TARGET_LIB_GLIBC_2_23
  128. bool "2.23"
  129. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  130. config ADK_TARGET_LIB_GLIBC_2_22
  131. bool "2.22"
  132. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_HPPA \
  133. && !ADK_TARGET_ARCH_OR1K
  134. config ADK_TARGET_LIB_GLIBC_OR1K
  135. bool "2.20-or1k"
  136. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_OR1K
  137. config ADK_TARGET_LIB_GLIBC_GIT
  138. bool "git"
  139. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_OR1K
  140. config ADK_TARGET_LIB_MUSL_1_1_15
  141. bool "1.1.15"
  142. depends on ADK_TARGET_LIB_MUSL
  143. config ADK_TARGET_LIB_MUSL_1_1_14
  144. bool "1.1.14"
  145. depends on ADK_TARGET_LIB_MUSL
  146. config ADK_TARGET_LIB_MUSL_1_1_13
  147. bool "1.1.13"
  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_4_0
  153. bool "2.4.0"
  154. depends on ADK_TARGET_LIB_NEWLIB
  155. config ADK_TARGET_LIB_NEWLIB_2_3_0
  156. bool "2.3.0"
  157. depends on ADK_TARGET_LIB_NEWLIB
  158. config ADK_TARGET_LIB_NEWLIB_2_2_0
  159. bool "2.2.0"
  160. depends on ADK_TARGET_LIB_NEWLIB
  161. config ADK_TARGET_LIB_NEWLIB_GIT
  162. bool "git"
  163. depends on ADK_TARGET_LIB_NEWLIB
  164. endchoice
  165. choice
  166. prompt "Threading"
  167. depends on ADK_TARGET_LIB_UCLIBC_NG && !ADK_TARGET_WITHOUT_THREADS
  168. config ADK_TARGET_LIB_WITH_THREADS
  169. bool "enable threads"
  170. config ADK_TARGET_LIB_WITHOUT_THREADS
  171. bool "disable threads"
  172. endchoice
  173. config ADK_TARGET_WITH_LT
  174. bool
  175. config ADK_TARGET_WITH_NPTL
  176. bool
  177. config ADK_TARGET_WITHOUT_THREADS
  178. bool
  179. config ADK_TARGET_LIBC
  180. string
  181. default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
  182. default "glibc" if ADK_TARGET_LIB_GLIBC
  183. default "musl" if ADK_TARGET_LIB_MUSL
  184. default "newlib" if ADK_TARGET_LIB_NEWLIB
  185. config ADK_LIBC_VERSION
  186. string
  187. default "1.0.18" if ADK_TARGET_LIB_UCLIBC_NG_1_0_18
  188. default "1.0.17" if ADK_TARGET_LIB_UCLIBC_NG_1_0_17
  189. default "1.0.16" if ADK_TARGET_LIB_UCLIBC_NG_1_0_16
  190. default "1.1.15" if ADK_TARGET_LIB_MUSL_1_1_15
  191. default "1.1.14" if ADK_TARGET_LIB_MUSL_1_1_14
  192. default "1.1.13" if ADK_TARGET_LIB_MUSL_1_1_13
  193. default "2.23" if ADK_TARGET_LIB_GLIBC_2_23
  194. default "2.22" if ADK_TARGET_LIB_GLIBC_2_22
  195. default "2.21" if ADK_TARGET_LIB_GLIBC_2_21
  196. default "2.20-or1k" if ADK_TARGET_LIB_GLIBC_OR1K
  197. default "2.4.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
  198. default "2.3.0" if ADK_TARGET_LIB_NEWLIB_2_3_0
  199. default "2.2.0" if ADK_TARGET_LIB_NEWLIB_2_2_0
  200. default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
  201. ADK_TARGET_LIB_MUSL_GIT || \
  202. ADK_TARGET_LIB_GLIBC_GIT || \
  203. ADK_TARGET_LIB_NEWLIB_GIT
  204. config ADK_TARGET_SUFFIX
  205. string
  206. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  207. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
  208. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
  209. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
  210. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
  211. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
  212. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  213. default "gnu" if ADK_TARGET_LIB_GLIBC
  214. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  215. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  216. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
  217. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  218. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  219. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  220. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  221. default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
  222. default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  223. default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
  224. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
  225. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
  226. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
  227. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
  228. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  229. default "musl" if ADK_TARGET_LIB_MUSL
  230. default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
  231. default "elf" if ADK_TARGET_LIB_NEWLIB