trinity: not available on musl
[buildroot-gz.git] / package / uclibc / Config.in
blobcbae096d6c93f880b3f78fc881db6cbc393419f9
1 if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
3 config BR2_PACKAGE_UCLIBC
4         bool
5         default y
6         select BR2_PACKAGE_LINUX_HEADERS
8 comment "uClibc Options"
10 config BR2_UCLIBC_CONFIG
11         string "uClibc configuration file to use?"
12         default "package/uclibc/uClibc-ng.config"
13         help
14           Some people may wish to use their own modified uClibc configuration
15           file and will specify their config file location with this option.
16           See also docs/README in this package.
17           If unsure, use the default.
19 config BR2_UCLIBC_CONFIG_FRAGMENT_FILES
20         string "Additional uClibc configuration fragment files"
21         help
22           A space-separated list of configuration fragment files,
23           that will be merged to the main uClibc configuration file.
25 config BR2_TOOLCHAIN_BUILDROOT_INET_RPC
26         bool "Enable RPC support"
27         select BR2_TOOLCHAIN_HAS_NATIVE_RPC
28         help
29           Enable this option if you want your toolchain to support
30           RPC (needed for NFS, for example).
32 config BR2_TOOLCHAIN_BUILDROOT_WCHAR
33         bool "Enable WCHAR support"
34         select BR2_USE_WCHAR
35         help
36           Enable this option if you want your toolchain to support
37           wide characters (i.e characters longer than 8 bits, needed
38           for locale support).
40 config BR2_TOOLCHAIN_BUILDROOT_LOCALE
41         bool "Enable toolchain locale/i18n support"
42         select BR2_TOOLCHAIN_BUILDROOT_WCHAR
43         select BR2_ENABLE_LOCALE
44         help
45           Enable this option if you want your toolchain to support
46           localization and internationalization.
48 choice
49         prompt "Thread library implementation"
50         help
51           Use this option to select the thread library implementation
52           that should be used in your toolchain.
54         config BR2_PTHREADS_NATIVE
55                 bool "Native POSIX Threading (NPTL)"
56                 select BR2_TOOLCHAIN_HAS_THREADS
57                 select BR2_TOOLCHAIN_HAS_THREADS_NPTL
58                 depends on BR2_USE_MMU
59                 depends on !BR2_m68k && !BR2_microblaze
61         config BR2_PTHREADS
62                 bool "linuxthreads"
63                 select BR2_TOOLCHAIN_HAS_THREADS
64                 depends on BR2_bfin || BR2_m68k || BR2_microblaze || BR2_arm || BR2_armeb || BR2_xtensa
66         config BR2_PTHREADS_NONE
67                 bool "none"
69 endchoice
71 config BR2_PTHREAD_DEBUG
72         bool "Thread library debugging"
73         depends on BR2_PTHREADS || BR2_PTHREADS_NATIVE
74         select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
75         help
76           Build the thread library with debugging enabled.
78 config BR2_TOOLCHAIN_BUILDROOT_USE_SSP
79         bool "Enable stack protection support"
80         select BR2_TOOLCHAIN_HAS_SSP
81         help
82           Enable stack smashing protection support using GCCs
83           -fstack-protector-all option in uClibc.
85           See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
86           for details.
88 config BR2_UCLIBC_INSTALL_UTILS
89         bool "Compile and install uClibc utilities"
90         default y
91         help
92           Enabling this option will compile and install the getconf,
93           ldconfig and ldd uClibc utilities for the target.
95           You can save ~32 KiB in target space by disabling them since
96           they're normally not needed.
98 config BR2_UCLIBC_INSTALL_TEST_SUITE
99         bool "Compile and install uClibc tests"
100         help
101           Enabling this option will compile and install the uClibc test suite.
102           This is useful if you want to check if the uClibc library is working
103           for your architecture and/or help developing uClibc.
105           The test suite will be installed into /root/uClibc directory. To run
106           the test suite enter the /root/uClibc/test directory and type
107           "sh uclibcng-testrunner.sh".
109           See the /root/uClibc/test/README for additional information.
111           This is not needed at all for normal builds, so you can safely say no
112           if you do not plan to dig into your C library.
114 # Mapping from the Buildroot architecture configuration options to the
115 # uClibc architecture names.
116 config BR2_UCLIBC_TARGET_ARCH
117         string
118         default "arc"      if BR2_arcle || BR2_arceb
119         default "arm"      if BR2_arm   || BR2_armeb
120         default "bfin"     if BR2_bfin
121         default "m68k"     if BR2_m68k
122         default "microblaze"   if BR2_microblaze
123         default "mips"     if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
124         default "powerpc"  if BR2_powerpc
125         default "sh"       if BR2_sh
126         default "sparc"    if BR2_sparc
127         default "xtensa"   if BR2_xtensa
128         default "i386"     if BR2_i386
129         default "x86_64"   if BR2_x86_64
131 config BR2_UCLIBC_ARC_TYPE
132         string
133         depends on BR2_UCLIBC_TARGET_ARCH = "arc"
134         default "ARC_CPU_700"   if BR2_arc750d
135         default "ARC_CPU_700"   if BR2_arc770d
136         default "ARC_CPU_HS"    if BR2_archs38
138 config BR2_UCLIBC_MIPS_ABI
139         string
140         depends on BR2_UCLIBC_TARGET_ARCH = "mips"
141         default "O32" if BR2_MIPS_OABI32
142         default "N32" if BR2_MIPS_NABI32
143         default "N64" if BR2_MIPS_NABI64
145 config BR2_UCLIBC_MIPS_ISA
146         string
147         depends on BR2_UCLIBC_TARGET_ARCH = "mips"
148         default "MIPS32" if BR2_MIPS_CPU_MIPS32
149         default "MIPS32R2" if BR2_MIPS_CPU_MIPS32R2
150         default "MIPS64" if BR2_MIPS_CPU_MIPS64
152 config BR2_UCLIBC_SH_TYPE
153         string
154         depends on BR2_UCLIBC_TARGET_ARCH = "sh"
155         default "SH2A" if BR2_sh2a
156         default "SH4"  if BR2_sh4 || BR2_sh4eb
158 config BR2_UCLIBC_SPARC_TYPE
159         string
160         depends on BR2_UCLIBC_TARGET_ARCH = "sparc"
161         default "V7"    if BR2_sparc_v7 || BR2_sparc_sparchfleon || BR2_sparc_sparcsfleon
162         default "V8"    if BR2_sparc_v8 || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleonv8
164 config BR2_UCLIBC_POWERPC_TYPE
165         string
166         depends on BR2_UCLIBC_TARGET_ARCH = "powerpc"
167         default "CLASSIC" if !BR2_powerpc_8540 && !BR2_powerpc_8548
168         default "E500"    if BR2_powerpc_8540 || BR2_powerpc_8548
170 config BR2_UCLIBC_X86_TYPE
171         string
172         depends on BR2_UCLIBC_TARGET_ARCH = "i386"
173         default "486"        if BR2_x86_i486
174         default "586"        if BR2_x86_i586
175         default "586MMX"     if BR2_x86_pentium_mmx
176         default "686"        if BR2_x86_i686 || BR2_x86_pentiumpro
177         default "PENTIUMII"  if BR2_x86_pentium2
178         default "PENTIUMIII" if BR2_x86_pentium3
179         default "PENTIUM4"   if BR2_x86_pentium4 || BR2_x86_pentium_m || \
180                                 BR2_x86_nocona || BR2_x86_core2 || BR2_x86_corei7
182 endif # BR2_TOOLCHAIN_BUILDROOT_UCLIBC