Config.in.libc 7.8 KB

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