Config.in.libc 7.5 KB

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