riscv64: update uClibc-ng config, use standard name for kernel
[openadk.git] / target / config / Config.in.libc
bloba2d0516df7be69b0245ec58b4f2c06b0fa2646c4
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 choice
5 prompt "Target C library"
6 depends on !ADK_TARGET_CHOOSE_ARCH
7 default ADK_TARGET_LIB_UCLIBC_NG if ADK_TARGET_OS_LINUX
9 config ADK_TARGET_LIB_UCLIBC_NG
10         bool "uClibc-ng"
11         select ADK_PACKAGE_LIBGCC
12         depends on (\
13                 ADK_TARGET_ARCH_AARCH64 || \
14                 ADK_TARGET_ARCH_ALPHA || \
15                 ADK_TARGET_ARCH_ARC || \
16                 ADK_TARGET_ARCH_ARM || \
17                 ADK_TARGET_ARCH_AVR32 || \
18                 ADK_TARGET_ARCH_BFIN || \
19                 ADK_TARGET_ARCH_C6X || \
20                 ADK_TARGET_ARCH_CRIS || \
21                 ADK_TARGET_ARCH_CSKY || \
22                 ADK_TARGET_ARCH_FRV || \
23                 ADK_TARGET_ARCH_H8300 || \
24                 ADK_TARGET_ARCH_HPPA || \
25                 ADK_TARGET_ARCH_IA64 || \
26                 ADK_TARGET_ARCH_LM32 || \
27                 ADK_TARGET_ARCH_M68K || \
28                 ADK_TARGET_ARCH_METAG || \
29                 ADK_TARGET_ARCH_MICROBLAZE || \
30                 ADK_TARGET_ARCH_MIPS || \
31                 ADK_TARGET_ARCH_MIPS64 || \
32                 ADK_TARGET_ARCH_NDS32 || \
33                 ADK_TARGET_ARCH_NIOS2 || \
34                 ADK_TARGET_ARCH_OR1K || \
35                 ADK_TARGET_ARCH_PPC || \
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
47 config ADK_TARGET_LIB_MUSL
48         bool "musl"
49         select ADK_PACKAGE_LIBGCC
50         depends on (\
51                 ADK_TARGET_ARCH_AARCH64 || \
52                 ADK_TARGET_ARCH_ARM || \
53                 ADK_TARGET_ARCH_M68K || \
54                 ADK_TARGET_ARCH_MICROBLAZE || \
55                 ADK_TARGET_ARCH_MIPS || \
56                 ADK_TARGET_ARCH_MIPS64 || \
57                 ADK_TARGET_ARCH_OR1K || \
58                 ADK_TARGET_ARCH_PPC || \
59                 ADK_TARGET_ARCH_PPC64 || \
60                 ADK_TARGET_ARCH_RISCV64 || \
61                 ADK_TARGET_ARCH_S390 || \
62                 ADK_TARGET_ARCH_SH || \
63                 ADK_TARGET_ARCH_X86 || \
64                 ADK_TARGET_ARCH_X86_64 ) && ADK_TARGET_OS_LINUX
65         help
66           http://musl-libc.org
68 config ADK_TARGET_LIB_GLIBC
69         bool "glibc"
70         select ADK_PACKAGE_LIBGCC
71         depends on (\
72                 ADK_TARGET_ARCH_AARCH64 || \
73                 ADK_TARGET_ARCH_ALPHA || \
74                 ADK_TARGET_ARCH_ARM || \
75                 ADK_TARGET_ARCH_CSKY || \
76                 ADK_TARGET_ARCH_HPPA || \
77                 ADK_TARGET_ARCH_IA64 || \
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_PPC || \
84                 ADK_TARGET_ARCH_PPC64 || \
85                 ADK_TARGET_ARCH_S390 || \
86                 ADK_TARGET_CPU_SH_SH4 || \
87                 ADK_TARGET_CPU_SH_SH4A || \
88                 ADK_TARGET_ARCH_SPARC64 || \
89                 ADK_TARGET_ARCH_TILE || \
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
97 config ADK_TARGET_LIB_NEWLIB
98         bool "newlib"
99         select ADK_TARGET_WITHOUT_THREADS
100         depends on (\
101                 ADK_TARGET_ARCH_AARCH64 || \
102                 ADK_TARGET_ARCH_ARC || \
103                 ADK_TARGET_ARCH_ARM || \
104                 ADK_TARGET_ARCH_BFIN || \
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/
140 endchoice
142 choice
143 prompt "Target C library version"
144 depends on !ADK_TARGET_CHOOSE_ARCH
146 config ADK_TARGET_LIB_UCLIBC_NG_1_0_32
147         bool "1.0.32"
148         depends on ADK_TARGET_LIB_UCLIBC_NG
150 config ADK_TARGET_LIB_UCLIBC_NG_GIT
151         bool "git"
152         depends on ADK_TARGET_LIB_UCLIBC_NG && ADK_EXPERIMENTAL
154 config ADK_TARGET_LIB_GLIBC_2_30
155         bool "2.30"
156         depends on ADK_TARGET_LIB_GLIBC
158 config ADK_TARGET_LIB_GLIBC_GIT
159         bool "git"
160         depends on ADK_TARGET_LIB_GLIBC && ADK_EXPERIMENTAL
162 config ADK_TARGET_LIB_MUSL_1_1_23
163         bool "1.1.23"
164         depends on ADK_TARGET_LIB_MUSL
166 config ADK_TARGET_LIB_MUSL_GIT
167         bool "git"
168         depends on ADK_TARGET_LIB_MUSL && ADK_EXPERIMENTAL
170 config ADK_TARGET_LIB_NEWLIB_3_0_0
171         bool "3.0.0"
172         depends on ADK_TARGET_LIB_NEWLIB \
173                 && !ADK_TARGET_ARCH_XTENSA
175 config ADK_TARGET_LIB_NEWLIB_XTENSA
176         bool "xtensa"
177         depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
179 config ADK_TARGET_LIB_NEWLIB_GIT
180         bool "git"
181         depends on ADK_TARGET_LIB_NEWLIB && ADK_EXPERIMENTAL
183 endchoice
185 config ADK_TARGET_LIBC_UTILS
186         bool
187         default n if ADK_TARGET_ARCH_C6X
188         default n if ADK_TARGET_ARCH_LM32
189         default n if ADK_TARGET_ARCH_H8300
190         default y
192 config ADK_TARGET_LIBC
193         string
194         default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
195         default "glibc" if ADK_TARGET_LIB_GLIBC
196         default "musl" if ADK_TARGET_LIB_MUSL
197         default "newlib" if ADK_TARGET_LIB_NEWLIB
199 config ADK_LIBC_VERSION
200         string
201         default "1.0.32" if ADK_TARGET_LIB_UCLIBC_NG_1_0_32
202         default "1.1.23" if ADK_TARGET_LIB_MUSL_1_1_23
203         default "2.30" if ADK_TARGET_LIB_GLIBC_2_30
204         default "3.0.0" if ADK_TARGET_LIB_NEWLIB_3_0_0
205         default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
206                          ADK_TARGET_LIB_MUSL_GIT || \
207                          ADK_TARGET_LIB_GLIBC_GIT || \
208                          ADK_TARGET_LIB_NEWLIB_GIT
210 config ADK_TARGET_SUFFIX
211         string
212         default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
213         default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
214         default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
215         default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
216         default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
217         default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
218         default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
219         default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
220         default "gnu" if ADK_TARGET_LIB_GLIBC
221         default "uclinuxfdpiceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_BINFMT_FDPIC
222         default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
223         default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
224         default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_UCLINUX
225         default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
226         default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
227         default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
228         default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
229         default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
230         default "uclibcabiv2" if ADK_TARGET_LIB_UCLIBC_NG && (ADK_TARGET_CPU_CSKY_CK807 || ADK_TARGET_CPU_CSKY_CK810)
231         default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
232         default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
233         default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
234         default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
235         default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
236         default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
237         default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
238         default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
239         default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
240         default "musl" if ADK_TARGET_LIB_MUSL
241         default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
242         default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL