Config.in.libc 7.7 KB

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