gcc/binutils: update to latest releases, improve riscv support
[openadk.git] / target / config / Config.in.libc
blob391dbdd606c2807498d0d1b6ca29735a69591a0d
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 "C library"
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
11         depends on (\
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
41         help
42           http://uclibc-ng.org
44 config ADK_TARGET_LIB_MUSL
45         bool "musl C library"
46         select ADK_PACKAGE_LIBGCC
47         depends on (\
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
60         help
61           http://musl-libc.org
63 config ADK_TARGET_LIB_GLIBC
64         bool "GNU C library"
65         select ADK_PACKAGE_LIBGCC
66         depends on (\
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
89         help
90           http://www.gnu.org/libc
92 config ADK_TARGET_LIB_NEWLIB
93         bool "newlib C library"
94         select ADK_TARGET_WITHOUT_THREADS
95         depends on (\
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 )
135         help
136           https://sourceware.org/newlib/
138 endchoice
140 choice
141 prompt "C library version"
143 config ADK_TARGET_LIB_UCLIBC_NG_1_0_28
144         bool "1.0.28"
145         depends on ADK_TARGET_LIB_UCLIBC_NG
147 config ADK_TARGET_LIB_UCLIBC_NG_GIT
148         bool "git"
149         depends on ADK_TARGET_LIB_UCLIBC_NG
151 config ADK_TARGET_LIB_GLIBC_2_26
152         bool "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
156         bool "csky"
157         depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_CSKY
159 config ADK_TARGET_LIB_GLIBC_GIT
160         bool "git"
161         depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY
163 config ADK_TARGET_LIB_MUSL_1_1_18
164         bool "1.1.18"
165         depends on ADK_TARGET_LIB_MUSL
167 config ADK_TARGET_LIB_MUSL_GIT
168         bool "git"
169         depends on ADK_TARGET_LIB_MUSL
171 config ADK_TARGET_LIB_NEWLIB_2_5_0
172         bool "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
180         bool "2.4.0-riscv"
181         depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_RISCV
183 config ADK_TARGET_LIB_NEWLIB_XTENSA
184         bool "xtensa"
185         depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA
187 config ADK_TARGET_LIB_NEWLIB_FROSTED
188         bool "frosted-git"
189         depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED
191 config ADK_TARGET_LIB_NEWLIB_GIT
192         bool "git"
193         depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_ARCH_RISCV && !ADK_TARGET_OS_FROSTED
195 endchoice
197 choice
198 prompt "Threading"
199 depends on ADK_TARGET_LIB_UCLIBC_NG
201 config ADK_TARGET_WITH_NPTL
202         bool "enable 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"
212 endchoice
214 config ADK_TARGET_SUPPORTS_THREADS
215         bool
217 config ADK_TARGET_SUPPORTS_NPTL
218         bool
220 config ADK_TARGET_SUPPORTS_LT
221         bool
223 config ADK_TARGET_LIBC_UTILS
224         bool
225         default n if ADK_TARGET_ARCH_C6X
226         default n if ADK_TARGET_ARCH_LM32
227         default n if ADK_TARGET_ARCH_H8300
228         default y
230 config ADK_TARGET_LIBC
231         string
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
238         string
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
250         string
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