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_26
153 depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_RISCV32 && !ADK_TARGET_ARCH_RISCV64 && !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_2_5_0
173 depends on ADK_TARGET_LIB_NEWLIB \
174 && !ADK_TARGET_ARCH_RISCV \
175 && !ADK_TARGET_ARCH_XTENSA \
176 && !ADK_TARGET_OS_FROSTED \
177 && !ADK_TARGET_OS_RTEMS
179 config ADK_TARGET_LIB_NEWLIB_RISCV
181 depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_RISCV
183 config ADK_TARGET_LIB_NEWLIB_XTENSA
185 depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
187 config ADK_TARGET_LIB_NEWLIB_FROSTED
189 depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED
191 config ADK_TARGET_LIB_NEWLIB_GIT
193 depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_ARCH_RISCV && !ADK_TARGET_OS_FROSTED
199 depends on ADK_TARGET_LIB_UCLIBC_NG
201 config ADK_TARGET_WITH_NPTL
203 depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
205 config ADK_TARGET_WITH_LT
206 bool "enable Linuxthreads"
207 depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS
209 config ADK_TARGET_WITHOUT_THREADS
210 bool "disable threads"
214 config ADK_TARGET_SUPPORTS_THREADS
217 config ADK_TARGET_SUPPORTS_NPTL
220 config ADK_TARGET_SUPPORTS_LT
223 config ADK_TARGET_LIBC_UTILS
225 default n if ADK_TARGET_ARCH_C6X
226 default n if ADK_TARGET_ARCH_LM32
227 default n if ADK_TARGET_ARCH_H8300
230 config ADK_TARGET_LIBC
232 default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
233 default "glibc" if ADK_TARGET_LIB_GLIBC
234 default "musl" if ADK_TARGET_LIB_MUSL
235 default "newlib" if ADK_TARGET_LIB_NEWLIB
237 config ADK_LIBC_VERSION
239 default "1.0.27" if ADK_TARGET_LIB_UCLIBC_NG_1_0_27
240 default "1.1.18" if ADK_TARGET_LIB_MUSL_1_1_18
241 default "2.26" if ADK_TARGET_LIB_GLIBC_2_26
242 default "2.4.0" if ADK_TARGET_LIB_NEWLIB_2_4_0
243 default "2.4.0-riscv" if ADK_TARGET_LIB_NEWLIB_RISCV
244 default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
245 ADK_TARGET_LIB_MUSL_GIT || \
246 ADK_TARGET_LIB_GLIBC_GIT || \
247 ADK_TARGET_LIB_NEWLIB_GIT
249 config ADK_TARGET_SUFFIX
251 default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
252 default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
253 default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
254 default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
255 default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
256 default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
257 default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
258 default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
259 default "gnu" if ADK_TARGET_LIB_GLIBC
260 default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
261 default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
262 default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_WITHOUT_MMU
263 default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
264 default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
265 default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
266 default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
267 default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
268 default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
269 default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
270 default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
271 default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
272 default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
273 default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
274 default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
275 default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
276 default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
277 default "musl" if ADK_TARGET_LIB_MUSL
278 default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
279 default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL