Config.in.libc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 "Target C library"
  5. depends on !ADK_TARGET_CHOOSE_ARCH
  6. default ADK_TARGET_LIB_UCLIBC_NG if ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX
  7. config ADK_TARGET_LIB_UCLIBC_NG
  8. bool "uClibc-ng"
  9. select ADK_PACKAGE_LIBGCC
  10. depends on (\
  11. ADK_TARGET_ARCH_AARCH64 || \
  12. ADK_TARGET_ARCH_ALPHA || \
  13. ADK_TARGET_ARCH_ARC || \
  14. ADK_TARGET_ARCH_ARM || \
  15. ADK_TARGET_ARCH_AVR32 || \
  16. ADK_TARGET_ARCH_BFIN || \
  17. ADK_TARGET_ARCH_C6X || \
  18. ADK_TARGET_ARCH_CRIS || \
  19. ADK_TARGET_ARCH_CSKY || \
  20. ADK_TARGET_ARCH_FRV || \
  21. ADK_TARGET_ARCH_H8300 || \
  22. ADK_TARGET_ARCH_HPPA || \
  23. ADK_TARGET_ARCH_IA64 || \
  24. ADK_TARGET_ARCH_LM32 || \
  25. ADK_TARGET_ARCH_M68K || \
  26. ADK_TARGET_ARCH_METAG || \
  27. ADK_TARGET_ARCH_MICROBLAZE || \
  28. ADK_TARGET_ARCH_MIPS || \
  29. ADK_TARGET_ARCH_MIPS64 || \
  30. ADK_TARGET_ARCH_NDS32 || \
  31. ADK_TARGET_ARCH_NIOS2 || \
  32. ADK_TARGET_ARCH_OR1K || \
  33. ADK_TARGET_ARCH_PPC || \
  34. ADK_TARGET_ARCH_SH || \
  35. ADK_TARGET_ARCH_SPARC || \
  36. ADK_TARGET_ARCH_SPARC64 || \
  37. ADK_TARGET_ARCH_TILE || \
  38. ADK_TARGET_ARCH_X86 || \
  39. ADK_TARGET_ARCH_X86_64 || \
  40. ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX
  41. help
  42. https://uclibc-ng.org
  43. config ADK_TARGET_LIB_MUSL
  44. bool "musl"
  45. select ADK_PACKAGE_LIBGCC
  46. depends on (\
  47. ADK_TARGET_ARCH_AARCH64 || \
  48. ADK_TARGET_ARCH_ARM || \
  49. ADK_TARGET_ARCH_MICROBLAZE || \
  50. ADK_TARGET_ARCH_MIPS || \
  51. ADK_TARGET_ARCH_MIPS64 || \
  52. ADK_TARGET_ARCH_OR1K || \
  53. ADK_TARGET_ARCH_PPC || \
  54. ADK_TARGET_ARCH_PPC64 || \
  55. ADK_TARGET_ARCH_S390 || \
  56. ADK_TARGET_ARCH_SH || \
  57. ADK_TARGET_ARCH_X86 || \
  58. ADK_TARGET_ARCH_X86_64 ) && ADK_TARGET_OS_LINUX
  59. help
  60. http://musl-libc.org
  61. config ADK_TARGET_LIB_GLIBC
  62. bool "glibc"
  63. select ADK_PACKAGE_LIBGCC
  64. depends on (\
  65. ADK_TARGET_ARCH_AARCH64 || \
  66. ADK_TARGET_ARCH_ALPHA || \
  67. ADK_TARGET_ARCH_ARM || \
  68. ADK_TARGET_ARCH_CSKY || \
  69. ADK_TARGET_ARCH_HPPA || \
  70. ADK_TARGET_ARCH_IA64 || \
  71. ADK_TARGET_ARCH_M68K || \
  72. ADK_TARGET_ARCH_MICROBLAZE || \
  73. ADK_TARGET_ARCH_MIPS || \
  74. ADK_TARGET_ARCH_MIPS64 || \
  75. ADK_TARGET_ARCH_NIOS2 || \
  76. ADK_TARGET_ARCH_PPC || \
  77. ADK_TARGET_ARCH_PPC64 || \
  78. ADK_TARGET_ARCH_S390 || \
  79. ADK_TARGET_CPU_SH_SH4 || \
  80. ADK_TARGET_CPU_SH_SH4A || \
  81. ADK_TARGET_ARCH_SPARC64 || \
  82. ADK_TARGET_ARCH_TILE || \
  83. ADK_TARGET_ARCH_RISCV32 || \
  84. ADK_TARGET_ARCH_RISCV64 || \
  85. ADK_TARGET_ARCH_X86 || \
  86. ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
  87. help
  88. http://www.gnu.org/libc
  89. config ADK_TARGET_LIB_NEWLIB
  90. bool "newlib"
  91. select ADK_TARGET_WITHOUT_THREADS
  92. depends on (\
  93. ADK_TARGET_ARCH_AARCH64 || \
  94. ADK_TARGET_ARCH_ARC || \
  95. ADK_TARGET_ARCH_ARM || \
  96. ADK_TARGET_ARCH_BFIN || \
  97. ADK_TARGET_ARCH_CR16 || \
  98. ADK_TARGET_ARCH_CRIS || \
  99. ADK_TARGET_ARCH_CSKY || \
  100. ADK_TARGET_ARCH_EPIPHANY || \
  101. ADK_TARGET_ARCH_FRV || \
  102. ADK_TARGET_ARCH_FT32 || \
  103. ADK_TARGET_ARCH_H8300 || \
  104. ADK_TARGET_ARCH_IA64 || \
  105. ADK_TARGET_ARCH_LM32 || \
  106. ADK_TARGET_ARCH_M32C || \
  107. ADK_TARGET_ARCH_M32R || \
  108. ADK_TARGET_ARCH_M68K || \
  109. ADK_TARGET_ARCH_MICROBLAZE || \
  110. ADK_TARGET_ARCH_MIPS || \
  111. ADK_TARGET_ARCH_MN10300 || \
  112. ADK_TARGET_ARCH_MOXIE || \
  113. ADK_TARGET_ARCH_MSP430 || \
  114. ADK_TARGET_ARCH_NIOS2 || \
  115. ADK_TARGET_ARCH_NDS32 || \
  116. ADK_TARGET_ARCH_OR1K || \
  117. ADK_TARGET_ARCH_PPC || \
  118. ADK_TARGET_ARCH_RISCV32 || \
  119. ADK_TARGET_ARCH_RISCV64 || \
  120. ADK_TARGET_ARCH_RX || \
  121. ADK_TARGET_ARCH_SH || \
  122. ADK_TARGET_ARCH_SPARC || \
  123. ADK_TARGET_ARCH_SPARC64 || \
  124. ADK_TARGET_ARCH_V850 || \
  125. ADK_TARGET_ARCH_X86 || \
  126. ADK_TARGET_ARCH_X86_64 || \
  127. ADK_TARGET_ARCH_XTENSA) && \
  128. (ADK_TARGET_OS_BAREMETAL || \
  129. ADK_TARGET_OS_FROSTED || \
  130. ADK_TARGET_OS_RTEMS || \
  131. ADK_TARGET_OS_ZEPHYR )
  132. help
  133. https://sourceware.org/newlib/
  134. endchoice
  135. choice
  136. prompt "Target C library version"
  137. depends on !ADK_TARGET_CHOOSE_ARCH
  138. config ADK_TARGET_LIB_UCLIBC_NG_1_0_30
  139. bool "1.0.30"
  140. depends on ADK_TARGET_LIB_UCLIBC_NG
  141. config ADK_TARGET_LIB_UCLIBC_NG_GIT
  142. bool "git"
  143. depends on ADK_TARGET_LIB_UCLIBC_NG && ADK_EXPERIMENTAL
  144. config ADK_TARGET_LIB_GLIBC_2_27
  145. bool "2.27"
  146. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY
  147. config ADK_TARGET_LIB_GLIBC_CSKY
  148. bool "csky"
  149. depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_CSKY
  150. config ADK_TARGET_LIB_GLIBC_GIT
  151. bool "git"
  152. depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY && ADK_EXPERIMENTAL
  153. config ADK_TARGET_LIB_MUSL_1_1_19
  154. bool "1.1.19"
  155. depends on ADK_TARGET_LIB_MUSL
  156. config ADK_TARGET_LIB_MUSL_GIT
  157. bool "git"
  158. depends on ADK_TARGET_LIB_MUSL && ADK_EXPERIMENTAL
  159. config ADK_TARGET_LIB_NEWLIB_3_0_0
  160. bool "3.0.0"
  161. depends on ADK_TARGET_LIB_NEWLIB \
  162. && !ADK_TARGET_ARCH_XTENSA \
  163. && !ADK_TARGET_OS_FROSTED \
  164. && !ADK_TARGET_OS_RTEMS
  165. config ADK_TARGET_LIB_NEWLIB_XTENSA
  166. bool "xtensa"
  167. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
  168. config ADK_TARGET_LIB_NEWLIB_FROSTED
  169. bool "frosted-git"
  170. depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED
  171. config ADK_TARGET_LIB_NEWLIB_GIT
  172. bool "git"
  173. depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_OS_FROSTED && ADK_EXPERIMENTAL
  174. endchoice
  175. config ADK_TARGET_LIBC_UTILS
  176. bool
  177. default n if ADK_TARGET_ARCH_C6X
  178. default n if ADK_TARGET_ARCH_LM32
  179. default n if ADK_TARGET_ARCH_H8300
  180. default y
  181. config ADK_TARGET_LIBC
  182. string
  183. default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
  184. default "glibc" if ADK_TARGET_LIB_GLIBC
  185. default "musl" if ADK_TARGET_LIB_MUSL
  186. default "newlib" if ADK_TARGET_LIB_NEWLIB
  187. config ADK_LIBC_VERSION
  188. string
  189. default "1.0.30" if ADK_TARGET_LIB_UCLIBC_NG_1_0_30
  190. default "1.1.19" if ADK_TARGET_LIB_MUSL_1_1_19
  191. default "2.27" if ADK_TARGET_LIB_GLIBC_2_27
  192. default "3.0.0" if ADK_TARGET_LIB_NEWLIB_3_0_0
  193. default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
  194. ADK_TARGET_LIB_MUSL_GIT || \
  195. ADK_TARGET_LIB_GLIBC_GIT || \
  196. ADK_TARGET_LIB_NEWLIB_GIT
  197. config ADK_TARGET_SUFFIX
  198. string
  199. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  200. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
  201. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
  202. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
  203. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
  204. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
  205. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  206. default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
  207. default "gnu" if ADK_TARGET_LIB_GLIBC
  208. default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  209. default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
  210. default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_UCLINUX
  211. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
  212. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
  213. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
  214. default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
  215. default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
  216. default "uclibcabiv2" if ADK_TARGET_LIB_UCLIBC_NG && (ADK_TARGET_CPU_CSKY_CK807 || ADK_TARGET_CPU_CSKY_CK810)
  217. default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
  218. default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  219. default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
  220. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
  221. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
  222. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
  223. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
  224. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
  225. default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
  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 && ADK_TARGET_OS_BAREMETAL