Config.in.libc 7.7 KB

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