Config.in.libc 7.9 KB

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