Config.in.libc 7.1 KB

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