buildrootschalter/toolchain/toolchain-crosstool-ng/Config.in
Thomas Petazzoni 381616e77a Introduce BR2_TOOLCHAIN_USES_{UCLIBC, GLIBC}
Currently, when we need to do a conditional on the type of C library
used, we need to take into account the three toolchain backends. As we
are going to add eglibc support to the Buildroot toolchain backend, it
would become even uglier, so this patch introduces two new hidden
options: BR2_TOOLCHAIN_USES_UCLIBC and BR2_TOOLCHAIN_USES_GLIBC, that
exist regardless of the toolchain backend. The entire Buildroot code
base is converted to use those options.

Note that we have intentionally created only one option
(BR2_TOOLCHAIN_USES_GLIBC) for both glibc and eglibc, since they are
essentially the same, as far as Buildroot is concerned.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-07-04 09:08:42 +02:00

134 lines
4.1 KiB
Plaintext

# Selection options for crosstool-NG
if BR2_TOOLCHAIN_CTNG
choice
prompt "Crosstool-NG C library"
config BR2_TOOLCHAIN_CTNG_uClibc
bool "uClibc"
select BR2_TOOLCHAIN_USES_UCLIBC
# Although eglibc can be configured to opt-out some features,
# let's not deal with that for the time being, it's complex...
config BR2_TOOLCHAIN_CTNG_eglibc
bool "eglibc"
# Our default ct-ng configuration uses eglibc 2.12, which has
# native RPC support
select BR2_TOOLCHAIN_HAS_NATIVE_RPC
select BR2_TOOLCHAIN_USES_GLIBC
config BR2_TOOLCHAIN_CTNG_glibc
bool "glibc"
# Our default ct-ng configuration uses glibc 2.14.1, which
# does not have native RPC support
select BR2_TOOLCHAIN_USES_GLIBC
endchoice # C library
config BR2_TOOLCHAIN_CTNG_LIBC
string
default "uClibc" if BR2_TOOLCHAIN_CTNG_uClibc
default "eglibc" if BR2_TOOLCHAIN_CTNG_eglibc
default "glibc" if BR2_TOOLCHAIN_CTNG_glibc
config BR2_TOOLCHAIN_CTNG_CONFIG
string "crosstool-NG configuration file to use"
default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc" if BR2_TOOLCHAIN_CTNG_uClibc
default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc" if BR2_TOOLCHAIN_CTNG_eglibc
default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc" if BR2_TOOLCHAIN_CTNG_glibc
help
Enter here the path to the crosstool-NG .config file to use.
Generally, the default crosstool-NG configuration files bundled with
Buildroot work fine in most situations. Use 'make ctng-menuconfig'
from the command line, for expert customization of your toolchain.
If unsure, keep the default value.
if BR2_TOOLCHAIN_CTNG_uClibc
comment "Toolchain Options"
config BR2_TOOLCHAIN_CTNG_uClibc_LARGEFILE
bool "Enable large file (files > 2 GB) support"
select BR2_LARGEFILE
help
Enable this option if you want your toolchain to support
files bigger than 2 GB.
config BR2_TOOLCHAIN_CTNG_uClibc_INET_IPV6
bool "Enable IPv6 support"
select BR2_INET_IPV6
help
Enable this option if you want your toolchain to support
IPv6.
config BR2_TOOLCHAIN_CTNG_uClibc_INET_RPC
bool "Enable RPC support"
select BR2_TOOLCHAIN_HAS_NATIVE_RPC
help
Enable this option if you want your toolchain to support
RPC (needed for NFS, for example).
config BR2_TOOLCHAIN_CTNG_uClibc_WCHAR
bool "Enable WCHAR support"
select BR2_USE_WCHAR
help
Enable this option if you want your toolchain to support
wide characters (i.e characters longer than 8 bits, needed
for locale support).
config BR2_TOOLCHAIN_CTNG_uClibc_LOCALE
bool "Enable toolchain locale/i18n support"
select BR2_TOOLCHAIN_CTNG_uClibc_WCHAR
select BR2_ENABLE_LOCALE
help
Enable this option if you want your toolchain to support
localization and internationalization.
endif # BR2_TOOLCHAIN_CTNG_uClibc
config BR2_TOOLCHAIN_CTNG_CXX
bool "Enable C++ support"
select BR2_INSTALL_LIBSTDCPP
help
Enable this option if you want your toolchain to support the
C++ language and you want C++ libraries to be installed on
your target system.
choice
prompt "Thread library implementation"
default BR2_TOOLCHAIN_CTNG_THREADS_NPTL
help
Enable thread support and select thread implementation. With
glibc, thread support is mandatory but several
implementations are available. With uClibc, thread support
is optional, and when enabled, several implementations are
available. However, not all thread variants work with all
versions of uClibc for all architectures, the "linuxthreads
(stable/old)" may be a working fallback.
config BR2_TOOLCHAIN_CTNG_THREADS_NONE
bool "none"
depends on BR2_TOOLCHAIN_CTNG_uClibc
config BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS
bool "linuxthreads"
select BR2_TOOLCHAIN_HAS_THREADS
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
config BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS_OLD
bool "linuxthreads (stable/old)"
select BR2_TOOLCHAIN_HAS_THREADS
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
depends on BR2_TOOLCHAIN_CTNG_uClibc
config BR2_TOOLCHAIN_CTNG_THREADS_NPTL
bool "Native POSIX Threading (NPTL)"
select BR2_TOOLCHAIN_HAS_THREADS
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
endchoice
endif # BR2_TOOLCHAIN_CTNG