1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
6 default ADK_TARGET_LIB_UCLIBC_NG if ADK_TARGET_OS_LINUX
8 config ADK_TARGET_LIB_UCLIBC_NG
9 bool "uClibc-ng embedded C library"
10 select ADK_PACKAGE_LIBGCC
12 ADK_TARGET_ARCH_AARCH64 || \
13 ADK_TARGET_ARCH_ALPHA || \
14 ADK_TARGET_ARCH_ARC || \
15 ADK_TARGET_ARCH_ARM || \
16 ADK_TARGET_ARCH_AVR32 || \
17 ADK_TARGET_ARCH_BFIN || \
18 ADK_TARGET_ARCH_C6X || \
19 ADK_TARGET_ARCH_CRIS || \
20 ADK_TARGET_ARCH_CSKY || \
21 ADK_TARGET_ARCH_FRV || \
22 ADK_TARGET_ARCH_H8300 || \
23 ADK_TARGET_ARCH_HPPA || \
24 ADK_TARGET_ARCH_IA64 || \
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_SH || \
36 ADK_TARGET_ARCH_SPARC || \
37 ADK_TARGET_ARCH_SPARC64 || \
38 ADK_TARGET_ARCH_X86 || \
39 ADK_TARGET_ARCH_X86_64 || \
40 ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX
44 config ADK_TARGET_LIB_MUSL
46 select ADK_PACKAGE_LIBGCC
48 ADK_TARGET_ARCH_AARCH64 || \
49 ADK_TARGET_ARCH_ARM || \
50 ADK_TARGET_ARCH_MICROBLAZE || \
51 ADK_TARGET_ARCH_MIPS || \
52 ADK_TARGET_ARCH_MIPS64 || \
53 ADK_TARGET_ARCH_OR1K || \
54 ADK_TARGET_ARCH_PPC || \
55 ADK_TARGET_ARCH_PPC64 || \
56 ADK_TARGET_ARCH_S390 || \
57 ADK_TARGET_ARCH_SH || \
58 ADK_TARGET_ARCH_X86 || \
59 ADK_TARGET_ARCH_X86_64 ) && ADK_TARGET_OS_LINUX
63 config ADK_TARGET_LIB_GLIBC
65 select ADK_PACKAGE_LIBGCC
67 ADK_TARGET_ARCH_AARCH64 || \
68 ADK_TARGET_ARCH_ALPHA || \
69 ADK_TARGET_ARCH_ARM || \
70 ADK_TARGET_ARCH_CSKY || \
71 ADK_TARGET_ARCH_HPPA || \
72 ADK_TARGET_ARCH_IA64 || \
73 ADK_TARGET_ARCH_M68K || \
74 ADK_TARGET_ARCH_MICROBLAZE || \
75 ADK_TARGET_ARCH_MIPS || \
76 ADK_TARGET_ARCH_MIPS64 || \
77 ADK_TARGET_ARCH_NIOS2 || \
78 ADK_TARGET_ARCH_PPC || \
79 ADK_TARGET_ARCH_PPC64 || \
80 ADK_TARGET_ARCH_S390 || \
81 ADK_TARGET_CPU_SH_SH4 || \
82 ADK_TARGET_CPU_SH_SH4A || \
83 ADK_TARGET_ARCH_SPARC64 || \
84 ADK_TARGET_ARCH_TILE || \
85 ADK_TARGET_ARCH_RISCV32 || \
86 ADK_TARGET_ARCH_RISCV64 || \
87 ADK_TARGET_ARCH_X86 || \
88 ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
90 http://www.gnu.org/libc
92 config ADK_TARGET_LIB_NEWLIB
93 bool "newlib C library"
94 select ADK_TARGET_WITHOUT_THREADS
96 ADK_TARGET_ARCH_AARCH64 || \
97 ADK_TARGET_ARCH_ARC || \
98 ADK_TARGET_ARCH_ARM || \
99 ADK_TARGET_ARCH_BFIN || \
100 ADK_TARGET_ARCH_CR16 || \
101 ADK_TARGET_ARCH_CRIS || \
102 ADK_TARGET_ARCH_CSKY || \
103 ADK_TARGET_ARCH_EPIPHANY || \
104 ADK_TARGET_ARCH_FRV || \
105 ADK_TARGET_ARCH_FT32 || \
106 ADK_TARGET_ARCH_H8300 || \
107 ADK_TARGET_ARCH_IA64 || \
108 ADK_TARGET_ARCH_LM32 || \
109 ADK_TARGET_ARCH_M32C || \
110 ADK_TARGET_ARCH_M32R || \
111 ADK_TARGET_ARCH_M68K || \
112 ADK_TARGET_ARCH_MICROBLAZE || \
113 ADK_TARGET_ARCH_MIPS || \
114 ADK_TARGET_ARCH_MN10300 || \
115 ADK_TARGET_ARCH_MOXIE || \
116 ADK_TARGET_ARCH_MSP430 || \
117 ADK_TARGET_ARCH_NIOS2 || \
118 ADK_TARGET_ARCH_NDS32 || \
119 ADK_TARGET_ARCH_OR1K || \
120 ADK_TARGET_ARCH_PPC || \
121 ADK_TARGET_ARCH_RISCV32 || \
122 ADK_TARGET_ARCH_RISCV64 || \
123 ADK_TARGET_ARCH_RX || \
124 ADK_TARGET_ARCH_SH || \
125 ADK_TARGET_ARCH_SPARC || \
126 ADK_TARGET_ARCH_SPARC64 || \
127 ADK_TARGET_ARCH_V850 || \
128 ADK_TARGET_ARCH_X86 || \
129 ADK_TARGET_ARCH_X86_64 || \
130 ADK_TARGET_ARCH_XTENSA) && \
131 (ADK_TARGET_OS_BAREMETAL || \
132 ADK_TARGET_OS_FROSTED || \
133 ADK_TARGET_OS_RTEMS || \
134 ADK_TARGET_OS_ZEPHYR )
136 https://sourceware.org/newlib/
141 prompt "C library version"
143 config ADK_TARGET_LIB_UCLIBC_NG_1_0_28
145 depends on ADK_TARGET_LIB_UCLIBC_NG
147 config ADK_TARGET_LIB_UCLIBC_NG_GIT
149 depends on ADK_TARGET_LIB_UCLIBC_NG
151 config ADK_TARGET_LIB_GLIBC_2_27
153 depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY
155 config ADK_TARGET_LIB_GLIBC_CSKY
157 depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_CSKY
159 config ADK_TARGET_LIB_GLIBC_GIT
161 depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY
163 config ADK_TARGET_LIB_MUSL_1_1_18
165 depends on ADK_TARGET_LIB_MUSL
167 config ADK_TARGET_LIB_MUSL_GIT
169 depends on ADK_TARGET_LIB_MUSL
171 config ADK_TARGET_LIB_NEWLIB_3_0_0
173 depends on ADK_TARGET_LIB_NEWLIB \
174 && !ADK_TARGET_ARCH_XTENSA \
175 && !ADK_TARGET_OS_FROSTED \
176 && !ADK_TARGET_OS_RTEMS
178 config ADK_TARGET_LIB_NEWLIB_XTENSA
180 depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
182 config ADK_TARGET_LIB_NEWLIB_FROSTED
184 depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED
186 config ADK_TARGET_LIB_NEWLIB_GIT
188 depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_OS_FROSTED
194 depends on ADK_TARGET_LIB_UCLIBC_NG
196 config ADK_TARGET_WITH_NPTL
198 depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
200 config ADK_TARGET_WITH_LT
201 bool "enable Linuxthreads"
202 depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS
204 config ADK_TARGET_WITHOUT_THREADS
205 bool "disable threads"
209 config ADK_TARGET_SUPPORTS_THREADS
212 config ADK_TARGET_SUPPORTS_NPTL
215 config ADK_TARGET_SUPPORTS_LT
218 config ADK_TARGET_LIBC_UTILS
220 default n if ADK_TARGET_ARCH_C6X
221 default n if ADK_TARGET_ARCH_LM32
222 default n if ADK_TARGET_ARCH_H8300
225 config ADK_TARGET_LIBC
227 default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
228 default "glibc" if ADK_TARGET_LIB_GLIBC
229 default "musl" if ADK_TARGET_LIB_MUSL
230 default "newlib" if ADK_TARGET_LIB_NEWLIB
232 config ADK_LIBC_VERSION
234 default "1.0.28" if ADK_TARGET_LIB_UCLIBC_NG_1_0_28
235 default "1.1.18" if ADK_TARGET_LIB_MUSL_1_1_18
236 default "2.27" if ADK_TARGET_LIB_GLIBC_2_27
237 default "3.0.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
238 default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
239 ADK_TARGET_LIB_MUSL_GIT || \
240 ADK_TARGET_LIB_GLIBC_GIT || \
241 ADK_TARGET_LIB_NEWLIB_GIT
243 config ADK_TARGET_SUFFIX
245 default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
246 default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
247 default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
248 default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
249 default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
250 default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
251 default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
252 default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
253 default "gnu" if ADK_TARGET_LIB_GLIBC
254 default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
255 default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
256 default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
257 default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
258 default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
259 default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
260 default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
261 default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
262 default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
263 default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
264 default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
265 default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
266 default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
267 default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
268 default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
269 default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
270 default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
271 default "musl" if ADK_TARGET_LIB_MUSL
272 default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
273 default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL