2010-07-28 00:08:16 +02:00
|
|
|
# Buildroot backend specific options
|
|
|
|
|
|
|
|
if BR2_TOOLCHAIN_BUILDROOT
|
toolchain: Improve C library option selection
Turn BR2_LARGEFILE, BR2_INET_IPV6, BR2_INET_RPC, BR2_USE_WCHAR,
BR2_ENABLE_LOCALE and BR2_PROGRAM_INVOCATION into hidden options.
Then, for Buildroot toolchains, external toolchains and Crosstool-NG
toolchains, provide visible options that selects the hidden options.
This allows :
* To show a different label and help text in the case of Buildroot
toolchain (do you want to enable feature X ?) and in the case of
external toolchain (is feature X available in your toolchain ?)
* To not show any option when a glibc external toolchain is selected
(since glibc is assumed to support all of largefile, IPv6, RPC,
WCHAR, locale and program invocation) and have them all selected in
that case.
There is some amount of duplication between Buildroot toolchain config
options and Crosstool-NG toolchain config options, because kconfig
doesn't allow to source the same Config.in file twice (even if under
mutually exclusive conditions). This duplication is more readable that
the hack that consists in splitting files in multiple pieces.
However, this commit changes the name of the options visible in the
configuration interface, so existing .config files will have to be
updated accordingly.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-13 17:27:37 +01:00
|
|
|
|
|
|
|
comment "Toolchain Options"
|
|
|
|
|
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_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_BUILDROOT_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_BUILDROOT_INET_RPC
|
|
|
|
bool "Enable RPC support"
|
|
|
|
select BR2_INET_RPC
|
|
|
|
help
|
|
|
|
Enable this option if you want your toolchain to support
|
|
|
|
RPC (needed for NFS, for example).
|
|
|
|
|
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_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_BUILDROOT_LOCALE
|
|
|
|
bool "Enable toolchain locale/i18n support"
|
|
|
|
select BR2_TOOLCHAIN_BUILDROOT_WCHAR
|
|
|
|
select BR2_ENABLE_LOCALE
|
|
|
|
help
|
|
|
|
Enable this option if you want your toolchain to support
|
|
|
|
localization and internationalization.
|
|
|
|
|
2010-12-13 17:27:41 +01:00
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_CXX
|
|
|
|
bool "Enable C++ support"
|
|
|
|
select BR2_INSTALL_LIBSTDCPP
|
|
|
|
depends on !(! BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE && \
|
|
|
|
BR2_TOOLCHAIN_BUILDROOT_LOCALE && \
|
|
|
|
BR2_UCLIBC_VERSION_0_9_31)
|
|
|
|
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.
|
|
|
|
|
|
|
|
comment "C++ support broken in uClibc 0.9.31 with locale enabled with gcc 4.2"
|
|
|
|
depends on !BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE && \
|
|
|
|
BR2_TOOLCHAIN_BUILDROOT_LOCALE && \
|
|
|
|
BR2_UCLIBC_VERSION_0_9_31
|
|
|
|
|
2010-12-13 17:27:42 +01:00
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_USE_SSP
|
|
|
|
bool "Enable stack protection support"
|
|
|
|
help
|
|
|
|
Enable stack smashing protection support using GCCs
|
|
|
|
-fstack-protector[-all] option.
|
|
|
|
|
|
|
|
See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
|
|
|
|
for details.
|
|
|
|
|
2010-12-13 17:27:44 +01:00
|
|
|
choice
|
|
|
|
prompt "Thread library implementation"
|
2012-02-02 09:04:48 +01:00
|
|
|
default BR2_PTHREADS_NATIVE if (!BR2_UCLIBC_VERSION_0_9_31) && !BR2_ARM_OABI
|
2010-12-13 17:27:44 +01:00
|
|
|
default BR2_PTHREADS_OLD
|
|
|
|
help
|
|
|
|
Use this option to select the thread library implementation
|
|
|
|
that should be used in your toolchain. Not all thread
|
|
|
|
variants work with all versions of uClibc, the "linuxthreads
|
|
|
|
(stable/old)" may be a working fallback if you need
|
|
|
|
threading at all.
|
|
|
|
|
|
|
|
config BR2_PTHREADS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
config BR2_PTHREADS
|
|
|
|
bool "linuxthreads"
|
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
|
|
|
|
config BR2_PTHREADS_OLD
|
|
|
|
bool "linuxthreads (stable/old)"
|
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
|
|
|
|
config BR2_PTHREADS_NATIVE
|
|
|
|
bool "Native POSIX Threading (NPTL)"
|
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS
|
2012-02-02 09:04:48 +01:00
|
|
|
depends on !BR2_UCLIBC_VERSION_0_9_31
|
2011-07-18 12:10:48 +02:00
|
|
|
depends on !BR2_ARM_OABI
|
2011-07-05 08:56:49 +02:00
|
|
|
depends on !BR2_x86_i386
|
2010-12-13 17:27:44 +01:00
|
|
|
endchoice
|
|
|
|
|
2010-07-28 00:08:16 +02:00
|
|
|
source "toolchain/elf2flt/Config.in"
|
|
|
|
|
|
|
|
config BR2_VFP_FLOAT
|
|
|
|
bool "Use ARM Vector Floating Point unit"
|
|
|
|
depends on !BR2_SOFT_FLOAT
|
|
|
|
depends on BR2_arm || BR2_armeb
|
|
|
|
help
|
|
|
|
Setting this option will enable the "-mfpu=vfp" option.
|
|
|
|
If your ARM CPU has a Vector Floating Point Unit (VFP)
|
|
|
|
and the toolchain supports the option, then the
|
|
|
|
code can be optimized.
|
|
|
|
|
|
|
|
Most people will answer N.
|
|
|
|
|
|
|
|
endif
|