Config.in.libc 7.7 KB

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