2007-02-24 11:00:05 +00:00
|
|
|
# uClibc options
|
|
|
|
|
2012-11-14 13:05:49 +00:00
|
|
|
## depends on ! WINDOWS && ! BARE_METAL
|
2011-05-08 17:02:44 +00:00
|
|
|
##
|
2014-07-27 21:47:24 +00:00
|
|
|
## select LIBC_SUPPORT_THREADS_LT
|
2011-05-08 17:02:44 +00:00
|
|
|
## select LIBC_SUPPORT_THREADS_NONE
|
2017-05-27 07:01:49 +00:00
|
|
|
## select LIBC_SUPPORT_THREADS_NATIVE if UCLIBC_0_9_33_2_or_later
|
2012-11-22 22:56:58 +00:00
|
|
|
## select CC_CORE_PASSES_NEEDED
|
2011-05-08 17:02:44 +00:00
|
|
|
##
|
|
|
|
## help The de-facto standard for embeded linux systems.
|
|
|
|
## help
|
|
|
|
## help Highly configurable, thus as feature-rich as you
|
|
|
|
## help need, without compromising for size.
|
2008-09-14 18:09:36 +00:00
|
|
|
|
2014-07-27 22:09:38 +00:00
|
|
|
config THREADS
|
|
|
|
default "nptl" if THREADS_NATIVE
|
|
|
|
default "linuxthreads" if THREADS_LT
|
|
|
|
|
2011-11-14 17:54:37 +00:00
|
|
|
if ARCH_FLOAT_SOFTFP
|
|
|
|
comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG"
|
|
|
|
comment "You may experience issues, although it should work just fine"
|
|
|
|
endif # ARCH_FLOAT_SOFTFP
|
|
|
|
|
2018-02-10 20:11:14 +00:00
|
|
|
config LIBC_UCLIBC_HAS_SUNRPC
|
|
|
|
bool
|
|
|
|
default y if !UCLIBC_1_0_23_or_later
|
|
|
|
|
2018-02-10 22:35:50 +00:00
|
|
|
config LIBC_UCLIBC_HAS_LIBICONV
|
|
|
|
bool
|
|
|
|
default y if UCLIBC_1_0_21_or_later
|
|
|
|
|
2008-11-01 17:16:34 +00:00
|
|
|
config LIBC_UCLIBC_PARALLEL
|
2017-05-27 07:01:49 +00:00
|
|
|
def_bool y
|
|
|
|
depends on UCLIBC_0_9_33_2_or_later
|
2008-11-01 17:16:34 +00:00
|
|
|
|
2015-11-10 22:41:33 +00:00
|
|
|
config LIBC_UCLIBC_NG
|
2017-05-27 07:01:49 +00:00
|
|
|
def_bool y
|
|
|
|
depends on UCLIBC_1_0_0_or_later
|
|
|
|
|
|
|
|
# uClibc-ng 1.0.15 did away with 2 implementations of linuxthreads
|
|
|
|
config UCLIBC_MERGED_LINUXTHREADS
|
|
|
|
def_bool y
|
|
|
|
depends on UCLIBC_1_0_15_or_later
|
2015-11-10 22:41:33 +00:00
|
|
|
|
2008-05-14 17:52:53 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "uClibc verbosity:"
|
2008-05-14 21:24:03 +00:00
|
|
|
default LIBC_UCLIBC_VERBOSITY_0
|
2008-05-14 17:52:53 +00:00
|
|
|
|
|
|
|
config LIBC_UCLIBC_VERBOSITY_0
|
|
|
|
bool
|
2010-07-13 10:12:32 +00:00
|
|
|
prompt "Quiet build"
|
2008-05-14 17:52:53 +00:00
|
|
|
help
|
2010-07-13 10:12:32 +00:00
|
|
|
Print terse command indications.
|
2008-05-14 17:52:53 +00:00
|
|
|
|
|
|
|
config LIBC_UCLIBC_VERBOSITY_1
|
|
|
|
bool
|
2017-02-16 06:45:07 +00:00
|
|
|
prompt "Brief build (show defines, ld flags)"
|
2010-07-13 10:12:32 +00:00
|
|
|
help
|
|
|
|
Print simplified command lines.
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_VERBOSITY_2
|
|
|
|
bool
|
2017-02-16 06:45:07 +00:00
|
|
|
prompt "Very verbose build"
|
2008-05-14 17:52:53 +00:00
|
|
|
help
|
|
|
|
Print full command lines.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2017-02-16 06:45:07 +00:00
|
|
|
# uClibc-ng has reverted the meaning of V=1 and V=2 compared to its
|
|
|
|
# ancestor, uClibc, in order to match kernel's Kbuild settings.
|
|
|
|
# Hence, for uClibc-ng supply V=2 if "brief build" is selected,
|
|
|
|
# and so forth.
|
2008-05-14 17:52:53 +00:00
|
|
|
config LIBC_UCLIBC_VERBOSITY
|
|
|
|
string
|
|
|
|
default "" if LIBC_UCLIBC_VERBOSITY_0
|
2017-02-16 06:45:07 +00:00
|
|
|
default "V=2" if LIBC_UCLIBC_VERBOSITY_1 && LIBC_UCLIBC_NG
|
2008-05-14 17:52:53 +00:00
|
|
|
default "V=1" if LIBC_UCLIBC_VERBOSITY_1
|
2017-02-16 06:45:07 +00:00
|
|
|
default "V=1" if LIBC_UCLIBC_VERBOSITY_2 && LIBC_UCLIBC_NG
|
2010-07-13 10:12:32 +00:00
|
|
|
default "V=2" if LIBC_UCLIBC_VERBOSITY_2
|
2008-05-14 17:52:53 +00:00
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Debug level"
|
|
|
|
default LIBC_UCLIBC_DEBUG_LEVEL_0
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_DEBUG_LEVEL_0
|
|
|
|
bool
|
|
|
|
prompt "none"
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_DEBUG_LEVEL_1
|
|
|
|
bool
|
|
|
|
prompt "minimal"
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_DEBUG_LEVEL_2
|
2012-02-24 15:08:32 +00:00
|
|
|
bool
|
|
|
|
prompt "normal"
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_DEBUG_LEVEL_3
|
2007-02-24 11:00:05 +00:00
|
|
|
bool
|
|
|
|
prompt "all"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_DEBUG_LEVEL
|
|
|
|
int
|
|
|
|
default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
|
|
|
|
default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
|
|
|
|
default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
|
2019-04-05 15:04:59 +00:00
|
|
|
default 3 if LIBC_UCLIBC_DEBUG_LEVEL_3
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
config LIBC_UCLIBC_CONFIG_FILE
|
|
|
|
string
|
|
|
|
prompt "Configuration file"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Path to the configuration file.
|
2015-11-10 23:09:20 +00:00
|
|
|
|
|
|
|
If the file is not provided, we fall back to a default config file.
|
2017-07-05 02:19:42 +00:00
|
|
|
|
|
|
|
if THREADS_LT && !UCLIBC_MERGED_LINUXTHREADS
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Linuxthread implementation: "
|
|
|
|
default LIBC_UCLIBC_LNXTHRD_OLD
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_LNXTHRD_OLD
|
|
|
|
bool
|
|
|
|
prompt "old/stable"
|
|
|
|
help
|
|
|
|
From the uClibc config option help:
|
|
|
|
There are two versions of linuxthreads. The older (stable) version
|
|
|
|
has been in uClibc for quite a long time but hasn't seen too many
|
|
|
|
updates other than bugfixes.
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_LNXTHRD_NEW
|
|
|
|
bool
|
|
|
|
prompt "new"
|
|
|
|
help
|
|
|
|
From the uClibc config option help:
|
|
|
|
The new version has not been tested much, and lacks ports for arches
|
|
|
|
which glibc does not support (like frv, etc...), but is based on
|
|
|
|
the latest code from glibc, so it may be the only choice for the
|
|
|
|
newer ports (like alpha/amd64/64bit arches and hppa).
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif # THREADS_LT
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_LNXTHRD
|
|
|
|
string
|
|
|
|
default "" if THREADS_NONE
|
|
|
|
default "" if THREADS_NATIVE
|
|
|
|
default "" if UCLIBC_MERGED_LINUXTHREADS
|
|
|
|
default "old" if LIBC_UCLIBC_LNXTHRD_OLD
|
|
|
|
default "new" if LIBC_UCLIBC_LNXTHRD_NEW
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_LOCALES
|
|
|
|
bool
|
|
|
|
select LIBC_UCLIBC_WCHAR
|
2018-02-10 22:35:50 +00:00
|
|
|
# Before it became a separate option, libiconv depended on locales
|
2017-07-05 02:19:42 +00:00
|
|
|
prompt "Add support for locales"
|
|
|
|
help
|
|
|
|
Say y if you want uClibc to support localisation.
|
|
|
|
|
|
|
|
Note that seems to be broken on recent uClibc releases.
|
|
|
|
|
2018-02-10 22:35:50 +00:00
|
|
|
config LIBC_UCLIBC_LIBICONV
|
|
|
|
bool "Enable iconv"
|
|
|
|
depends on LIBC_UCLIBC_HAS_LIBICONV
|
|
|
|
help
|
|
|
|
Say y if you want to enable <iconv.h> and the corresponding interfaces.
|
|
|
|
|
2017-07-05 02:19:42 +00:00
|
|
|
config LIBC_UCLIBC_IPV6
|
|
|
|
bool
|
|
|
|
prompt "Add support for IPv6"
|
|
|
|
help
|
|
|
|
Say y if you want uClibc to support IPv6.
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_WCHAR
|
|
|
|
bool
|
|
|
|
prompt "Add support for WCHAR"
|
|
|
|
help
|
|
|
|
Say y if you want uClibc to support WCHAR.
|
|
|
|
|
|
|
|
Maybe this is needed, if you're building a C++-Compiler
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_FENV
|
|
|
|
bool
|
|
|
|
prompt "Add support for fenv.h"
|
2017-07-06 07:25:30 +00:00
|
|
|
default y if ARCH_X86
|
2017-07-05 02:19:42 +00:00
|
|
|
help
|
|
|
|
fenv.h provides functions to control the floating point environment,
|
|
|
|
such as rounding mode, exceptions...
|
|
|
|
|
|
|
|
For some architectures, fenv.h is incomplete, so is not installed
|
|
|
|
by default. x86 is known to have a rather complete fenv.h, so it is
|
|
|
|
installed by default only for x86.
|
|
|
|
|
|
|
|
If you need fenv.h on other architectures, say 'y' here, but you may
|
|
|
|
encounter some issues.
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_RPC
|
|
|
|
bool
|
|
|
|
prompt "Add support for RPC"
|
2018-02-10 20:11:14 +00:00
|
|
|
depends on LIBC_UCLIBC_HAS_SUNRPC
|
2017-07-05 02:19:42 +00:00
|
|
|
help
|
|
|
|
Enable support for remote procedure calls (RPC) in uClibc.
|
|
|
|
|
2018-12-05 00:15:37 +00:00
|
|
|
config LIBC_UCLIBC_HAS_SSP
|
|
|
|
bool
|
|
|
|
prompt "Support stack smashing protection (SSP)"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for building programs with -fstack-protector family
|
|
|
|
of options. If this option is disabled, one can also use a standalone
|
|
|
|
libssp library from GCC.
|
|
|
|
|
|
|
|
config LIBC_UCLIBC_BUILD_SSP
|
|
|
|
bool
|
|
|
|
prompt "Build uClibc with SSP"
|
|
|
|
depends on LIBC_UCLIBC_HAS_SSP
|
|
|
|
help
|
|
|
|
Build uClibc with -fstack-protector. This adds runtime overhead
|
|
|
|
to many function calls and is disabled by default.
|
|
|
|
|
2017-07-06 07:25:30 +00:00
|
|
|
if ARCH_ARM
|
2017-07-05 02:19:42 +00:00
|
|
|
config LIBC_UCLIBC_USE_GNU_SUFFIX
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
prompt "Use -uclibcgnueabi suffix"
|
|
|
|
help
|
|
|
|
Depending on where the resulting toolchain will be used, you may need
|
|
|
|
to tweak the "system" part of the target tuple. Buildroot prefers
|
|
|
|
to have arm-*-linux-uclibcgnueabi; OpenEmbedded prefers
|
|
|
|
arm-*-linux-uclibceabi. Other tools seem to either accept both, or
|
|
|
|
don't care about the suffix.
|
|
|
|
endif
|