1 if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
3 comment "uClibc Options"
5 config BR2_PACKAGE_UCLIBC
8 select BR2_PACKAGE_LINUX_HEADERS
10 config BR2_UCLIBC_CONFIG
11 string "uClibc configuration file to use?"
12 default "package/uclibc/uClibc-ng.config"
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"
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
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"
36 Enable this option if you want your toolchain to support
37 wide characters (i.e characters longer than 8 bits, needed
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 select BR2_NEEDS_HOST_UTF8_LOCALE
46 Enable this option if you want your toolchain to support
47 localization and internationalization.
50 prompt "Thread library implementation"
52 Use this option to select the thread library implementation
53 that should be used in your toolchain.
55 config BR2_PTHREADS_NATIVE
56 bool "Native POSIX Threading (NPTL)"
57 select BR2_TOOLCHAIN_HAS_THREADS
58 select BR2_TOOLCHAIN_HAS_THREADS_NPTL
59 depends on BR2_USE_MMU
60 depends on !BR2_m68k && !BR2_microblaze && !BR2_or1k
64 select BR2_TOOLCHAIN_HAS_THREADS
65 depends on BR2_bfin || BR2_m68k || BR2_microblaze || BR2_or1k || BR2_arm || BR2_armeb || BR2_xtensa
67 config BR2_PTHREADS_NONE
72 config BR2_PTHREAD_DEBUG
73 bool "Thread library debugging"
74 depends on BR2_PTHREADS || BR2_PTHREADS_NATIVE
75 select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
77 Build the thread library with debugging enabled.
79 config BR2_TOOLCHAIN_BUILDROOT_USE_SSP
80 bool "Enable stack protection support"
81 select BR2_TOOLCHAIN_HAS_SSP
83 Enable stack smashing protection support using GCCs
84 -fstack-protector-all option in uClibc.
86 See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
89 config BR2_UCLIBC_INSTALL_UTILS
90 bool "Compile and install uClibc utilities"
93 Enabling this option will compile and install the getconf,
94 ldconfig and ldd uClibc utilities for the target.
96 You can save ~32 KiB in target space by disabling them since
97 they're normally not needed.
99 # Mapping from the Buildroot architecture configuration options to the
100 # uClibc architecture names.
101 config BR2_UCLIBC_TARGET_ARCH
103 default "arc" if BR2_arcle || BR2_arceb
104 default "arm" if BR2_arm || BR2_armeb
105 default "bfin" if BR2_bfin
106 default "m68k" if BR2_m68k
107 default "microblaze" if BR2_microblaze
108 default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
109 default "or1k" if BR2_or1k
110 default "powerpc" if BR2_powerpc
111 default "sh" if BR2_sh
112 default "sparc" if BR2_sparc
113 default "xtensa" if BR2_xtensa
114 default "i386" if BR2_i386
115 default "x86_64" if BR2_x86_64
117 config BR2_UCLIBC_ARC_TYPE
119 depends on BR2_UCLIBC_TARGET_ARCH = "arc"
120 default "ARC_CPU_700" if BR2_arc750d
121 default "ARC_CPU_700" if BR2_arc770d
122 default "ARC_CPU_HS" if BR2_archs38
124 config BR2_UCLIBC_MIPS_ABI
126 depends on BR2_UCLIBC_TARGET_ARCH = "mips"
127 default "O32" if BR2_MIPS_OABI32
128 default "N32" if BR2_MIPS_NABI32
129 default "N64" if BR2_MIPS_NABI64
131 config BR2_UCLIBC_MIPS_NAN
133 depends on BR2_UCLIBC_TARGET_ARCH = "mips"
134 default "LEGACY" if BR2_MIPS_CPU_MIPS32 || BR2_MIPS_CPU_MIPS64
135 default "2008" if BR2_MIPS_CPU_MIPS32R6 || BR2_MIPS_CPU_MIPS64R6
137 config BR2_UCLIBC_SH_TYPE
139 depends on BR2_UCLIBC_TARGET_ARCH = "sh"
140 default "SH2A" if BR2_sh2a
141 default "SH4" if BR2_sh4 || BR2_sh4eb
143 config BR2_UCLIBC_SPARC_TYPE
145 depends on BR2_UCLIBC_TARGET_ARCH = "sparc"
146 default "V7" if BR2_sparc_v7 || BR2_sparc_sparchfleon || BR2_sparc_sparcsfleon
147 default "V8" if BR2_sparc_v8 || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleonv8
149 config BR2_UCLIBC_POWERPC_TYPE
151 depends on BR2_UCLIBC_TARGET_ARCH = "powerpc"
152 default "CLASSIC" if !BR2_powerpc_8540 && !BR2_powerpc_8548
153 default "E500" if BR2_powerpc_8540 || BR2_powerpc_8548
155 config BR2_UCLIBC_X86_TYPE
157 depends on BR2_UCLIBC_TARGET_ARCH = "i386"
158 default "486" if BR2_x86_i486
159 default "586" if BR2_x86_i586
160 default "586MMX" if BR2_x86_pentium_mmx
161 default "686" if BR2_x86_i686 || BR2_x86_pentiumpro
162 default "PENTIUMII" if BR2_x86_pentium2
163 default "PENTIUMIII" if BR2_x86_pentium3
164 default "PENTIUM4" if BR2_x86_pentium4 || BR2_x86_pentium_m || \
165 BR2_x86_nocona || BR2_x86_core2 || BR2_x86_corei7
167 endif # BR2_TOOLCHAIN_BUILDROOT_UCLIBC