summaryrefslogtreecommitdiff
path: root/target/config/Config.in.libc
blob: 445d30c30104e42a706d95920e2ff916e281f88d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

choice
prompt "Target C library"
depends on !ADK_TARGET_CHOOSE_ARCH
default ADK_TARGET_LIB_UCLIBC_NG if ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX

config ADK_TARGET_LIB_UCLIBC_NG
	bool "uClibc-ng"
	select ADK_PACKAGE_LIBGCC
	depends on (\
		ADK_TARGET_ARCH_AARCH64 || \
		ADK_TARGET_ARCH_ALPHA || \
		ADK_TARGET_ARCH_ARC || \
		ADK_TARGET_ARCH_ARM || \
		ADK_TARGET_ARCH_AVR32 || \
		ADK_TARGET_ARCH_BFIN || \
		ADK_TARGET_ARCH_C6X || \
		ADK_TARGET_ARCH_CRIS || \
		ADK_TARGET_ARCH_CSKY || \
		ADK_TARGET_ARCH_FRV || \
		ADK_TARGET_ARCH_H8300 || \
		ADK_TARGET_ARCH_HPPA || \
		ADK_TARGET_ARCH_IA64 || \
		ADK_TARGET_ARCH_LM32 || \
		ADK_TARGET_ARCH_M68K || \
		ADK_TARGET_ARCH_METAG || \
		ADK_TARGET_ARCH_MICROBLAZE || \
		ADK_TARGET_ARCH_MIPS || \
		ADK_TARGET_ARCH_MIPS64 || \
		ADK_TARGET_ARCH_NDS32 || \
		ADK_TARGET_ARCH_NIOS2 || \
		ADK_TARGET_ARCH_OR1K || \
		ADK_TARGET_ARCH_PPC || \
		ADK_TARGET_ARCH_RISCV64 || \
		ADK_TARGET_ARCH_SH || \
		ADK_TARGET_ARCH_SPARC || \
		ADK_TARGET_ARCH_SPARC64 || \
		ADK_TARGET_ARCH_TILE || \
		ADK_TARGET_ARCH_X86 || \
		ADK_TARGET_ARCH_X86_64 || \
		ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX
	help
	  https://uclibc-ng.org

config ADK_TARGET_LIB_MUSL
	bool "musl"
	select ADK_PACKAGE_LIBGCC
	depends on (\
		ADK_TARGET_ARCH_AARCH64 || \
		ADK_TARGET_ARCH_ARM || \
		ADK_TARGET_ARCH_MICROBLAZE || \
		ADK_TARGET_ARCH_MIPS || \
		ADK_TARGET_ARCH_MIPS64 || \
		ADK_TARGET_ARCH_OR1K || \
		ADK_TARGET_ARCH_PPC || \
		ADK_TARGET_ARCH_PPC64 || \
		ADK_TARGET_ARCH_S390 || \
		ADK_TARGET_ARCH_SH || \
		ADK_TARGET_ARCH_X86 || \
		ADK_TARGET_ARCH_X86_64 ) && ADK_TARGET_OS_LINUX
	help
 	  http://musl-libc.org

config ADK_TARGET_LIB_GLIBC
	bool "glibc"
	select ADK_PACKAGE_LIBGCC
	depends on (\
		ADK_TARGET_ARCH_AARCH64 || \
		ADK_TARGET_ARCH_ALPHA || \
		ADK_TARGET_ARCH_ARM || \
		ADK_TARGET_ARCH_CSKY || \
		ADK_TARGET_ARCH_HPPA || \
		ADK_TARGET_ARCH_IA64 || \
		ADK_TARGET_ARCH_M68K || \
		ADK_TARGET_ARCH_MICROBLAZE || \
		ADK_TARGET_ARCH_MIPS || \
		ADK_TARGET_ARCH_MIPS64 || \
		ADK_TARGET_ARCH_NIOS2 || \
		ADK_TARGET_ARCH_PPC || \
		ADK_TARGET_ARCH_PPC64 || \
		ADK_TARGET_ARCH_S390 || \
		ADK_TARGET_CPU_SH_SH4 || \
		ADK_TARGET_CPU_SH_SH4A || \
		ADK_TARGET_ARCH_SPARC64 || \
		ADK_TARGET_ARCH_TILE || \
		ADK_TARGET_ARCH_RISCV32 || \
		ADK_TARGET_ARCH_RISCV64 || \
		ADK_TARGET_ARCH_X86 || \
		ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
	help
	  http://www.gnu.org/libc

config ADK_TARGET_LIB_NEWLIB
	bool "newlib"
	select ADK_TARGET_WITHOUT_THREADS
	depends on (\
		ADK_TARGET_ARCH_AARCH64 || \
		ADK_TARGET_ARCH_ARC || \
		ADK_TARGET_ARCH_ARM || \
		ADK_TARGET_ARCH_BFIN || \
		ADK_TARGET_ARCH_CR16 || \
		ADK_TARGET_ARCH_CRIS || \
		ADK_TARGET_ARCH_CSKY || \
		ADK_TARGET_ARCH_EPIPHANY || \
		ADK_TARGET_ARCH_FRV || \
		ADK_TARGET_ARCH_FT32 || \
		ADK_TARGET_ARCH_H8300 || \
		ADK_TARGET_ARCH_IA64 || \
		ADK_TARGET_ARCH_LM32 || \
		ADK_TARGET_ARCH_M32C || \
		ADK_TARGET_ARCH_M32R || \
		ADK_TARGET_ARCH_M68K || \
		ADK_TARGET_ARCH_MICROBLAZE || \
		ADK_TARGET_ARCH_MIPS || \
		ADK_TARGET_ARCH_MN10300 || \
		ADK_TARGET_ARCH_MOXIE || \
		ADK_TARGET_ARCH_MSP430 || \
		ADK_TARGET_ARCH_NIOS2 || \
		ADK_TARGET_ARCH_NDS32 || \
		ADK_TARGET_ARCH_OR1K || \
		ADK_TARGET_ARCH_PPC || \
		ADK_TARGET_ARCH_RISCV32 || \
		ADK_TARGET_ARCH_RISCV64 || \
		ADK_TARGET_ARCH_RX || \
		ADK_TARGET_ARCH_SH || \
		ADK_TARGET_ARCH_SPARC || \
		ADK_TARGET_ARCH_SPARC64 || \
		ADK_TARGET_ARCH_V850 || \
		ADK_TARGET_ARCH_X86 || \
		ADK_TARGET_ARCH_X86_64 || \
		ADK_TARGET_ARCH_XTENSA) && \
		(ADK_TARGET_OS_BAREMETAL || \
		 ADK_TARGET_OS_FROSTED || \
		 ADK_TARGET_OS_RTEMS || \
		 ADK_TARGET_OS_ZEPHYR )
	help
	  https://sourceware.org/newlib/

endchoice

choice
prompt "Target C library version"
depends on !ADK_TARGET_CHOOSE_ARCH

config ADK_TARGET_LIB_UCLIBC_NG_1_0_30
	bool "1.0.30"
	depends on ADK_TARGET_LIB_UCLIBC_NG

config ADK_TARGET_LIB_UCLIBC_NG_GIT
	bool "git"
	depends on ADK_TARGET_LIB_UCLIBC_NG && ADK_EXPERIMENTAL

config ADK_TARGET_LIB_GLIBC_2_27
	bool "2.27"
	depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY

config ADK_TARGET_LIB_GLIBC_CSKY
        bool "csky"
        depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_CSKY

config ADK_TARGET_LIB_GLIBC_GIT
	bool "git"
	depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_CSKY && ADK_EXPERIMENTAL

config ADK_TARGET_LIB_MUSL_1_1_19
	bool "1.1.19"
	depends on ADK_TARGET_LIB_MUSL

config ADK_TARGET_LIB_MUSL_GIT
	bool "git"
	depends on ADK_TARGET_LIB_MUSL && ADK_EXPERIMENTAL

config ADK_TARGET_LIB_NEWLIB_3_0_0
	bool "3.0.0"
	depends on ADK_TARGET_LIB_NEWLIB \
		&& !ADK_TARGET_ARCH_XTENSA \
		&& !ADK_TARGET_OS_FROSTED \
		&& !ADK_TARGET_OS_RTEMS

config ADK_TARGET_LIB_NEWLIB_XTENSA
	bool "xtensa"
	depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_XTENSA

config ADK_TARGET_LIB_NEWLIB_FROSTED
	bool "frosted-git"
	depends on ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_FROSTED

config ADK_TARGET_LIB_NEWLIB_GIT
	bool "git"
	depends on ADK_TARGET_LIB_NEWLIB && !ADK_TARGET_OS_FROSTED && ADK_EXPERIMENTAL

endchoice

config ADK_TARGET_LIBC_UTILS
	bool
	default n if ADK_TARGET_ARCH_C6X
	default n if ADK_TARGET_ARCH_LM32
	default n if ADK_TARGET_ARCH_H8300
	default y

config ADK_TARGET_LIBC
	string
	default "uclibc-ng" if ADK_TARGET_LIB_UCLIBC_NG
	default "glibc" if ADK_TARGET_LIB_GLIBC
	default "musl" if ADK_TARGET_LIB_MUSL
	default "newlib" if ADK_TARGET_LIB_NEWLIB

config ADK_LIBC_VERSION
	string
	default "1.0.30" if ADK_TARGET_LIB_UCLIBC_NG_1_0_30
	default "1.1.19" if ADK_TARGET_LIB_MUSL_1_1_19
	default "2.27" if ADK_TARGET_LIB_GLIBC_2_27
	default "3.0.0" if ADK_TARGET_LIB_NEWLIB_3_0_0
	default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
		         ADK_TARGET_LIB_MUSL_GIT || \
		         ADK_TARGET_LIB_GLIBC_GIT || \
			 ADK_TARGET_LIB_NEWLIB_GIT

config ADK_TARGET_SUFFIX
	string
	default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
	default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_ARM
	default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N64
	default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_N32
	default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_O64
	default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_32 && ADK_LINUX_64
	default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ABI_X32 && ADK_LINUX_64
	default "gnuspe" if ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
	default "gnu" if ADK_TARGET_LIB_GLIBC
	default "uclibceabihf" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
	default "uclibceabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM
	default "uclinuxeabi" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_ARM && ADK_TARGET_UCLINUX
	default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N64
	default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_N32
	default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_O32
	default "uclibc32" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ABI_32 && ADK_LINUX_64
	default "uclibcspe" if ADK_TARGET_LIB_UCLIBC_NG && ADK_TARGET_ARCH_PPC && ADK_TARGET_ARCH_PPC_WITH_SPE
	default "uclibcabiv2" if ADK_TARGET_LIB_UCLIBC_NG && (ADK_TARGET_CPU_CSKY_CK807 || ADK_TARGET_CPU_CSKY_CK810)
	default "uclibc" if ADK_TARGET_LIB_UCLIBC_NG
	default "musleabihf" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
	default "musleabi" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_ARM
	default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N64
	default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_N32
	default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
	default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
	default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
	default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
	default "musl" if ADK_TARGET_LIB_MUSL
	default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
	default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL