summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-08-08 00:52:27 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-08-08 00:52:27 +0200
commite397617f2e816d4ae0c1618512752d1e967e9c6b (patch)
tree608f19b14c02880b5d24fab053f3d149fd685912 /kconfig
parentcf63c85c56872adeffd7e1cad1656c51dcd9acd9 (diff)
downloadembtoolkit-e397617f2e816d4ae0c1618512752d1e967e9c6b.tar.gz
embtoolkit-e397617f2e816d4ae0c1618512752d1e967e9c6b.tar.bz2
embtoolkit-e397617f2e816d4ae0c1618512752d1e967e9c6b.tar.xz
Toolchain: uClibc: Bump uClibc-0.9.32 and remove support of older versions
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/arch-variant-mips.kconfig20
-rw-r--r--kconfig/arch.kconfig2
-rw-r--r--kconfig/toolchain.kconfig3
-rw-r--r--kconfig/uclibc-kconfigs/uclibc-arm.kconfig177
-rw-r--r--kconfig/uclibc-kconfigs/uclibc-mips.kconfig67
-rw-r--r--kconfig/uclibc-kconfigs/uclibc.kconfig1091
6 files changed, 452 insertions, 908 deletions
diff --git a/kconfig/arch-variant-mips.kconfig b/kconfig/arch-variant-mips.kconfig
index 9139d11..6f40773 100644
--- a/kconfig/arch-variant-mips.kconfig
+++ b/kconfig/arch-variant-mips.kconfig
@@ -33,67 +33,82 @@ choice
bool "MIPS I little endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_1 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS1_BIG
bool "MIPS I big endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_1 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS2_LITTLE
bool "MIPS II little endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_2 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS2_BIG
bool "MIPS II big endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_2 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS3_LITTLE
bool "MIPS III little endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_3 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS3_BIG
bool "MIPS III big endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_3 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS4_LITTLE
bool "MIPS IV little endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_4 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS4_BIG
bool "MIPS IV big endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_4 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS32_LITTLE
bool "MIPS32 little endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS32 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS32_BIG
bool "MIPS32 big endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS32 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS32R2_LITTLE
bool "MIPS32 release 2 little endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS32R2 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS32R2_BIG
bool "MIPS32 release 2 big endian"
select EMBTK_TARGET_ARCH_32BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
-
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS32R2 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS64_LITTLE
bool "MIPS64 little endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS64 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS64_BIG
bool "MIPS64 big endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS64 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS64R2_LITTLE
bool "MIPS64 release 2 little endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_LITTLE_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS64 if EMBTK_CLIB_UCLIBC
config EMBTK_ARCH_MIPS_MIPS64R2_BIG
bool "MIPS64 release 2 big endian"
select EMBTK_TARGET_ARCH_64BITS
select EMBTK_ARCH_MIPS_BIG_ENDIAN
+ select KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS64 if EMBTK_CLIB_UCLIBC
endchoice
@@ -106,10 +121,12 @@ choice
config EMBTK_ARCH_MIPS_ABI_O32
bool "o32"
select EMBTK_32BITS_FS
+ select KEMBTK_UCLIBC_CONFIG_MIPS_O32_ABI if EMBTK_CLIB_UCLUBC
config EMBTK_ARCH_MIPS_ABI_N32
bool "n32" if !EMBTK_TARGET_ARCH_32BITS
select EMBTK_64BITS_FS_COMPAT32
+ select KEMBTK_UCLIBC_CONFIG_MIPS_N32_ABI if EMBTK_CLIB_UCLUBC
# config EMBTK_ARCH_MIPS_ABI_EABI
# bool "eabi (BROKEN)" if !EMBTK_TARGET_ARCH_32BITS
@@ -120,6 +137,7 @@ choice
config EMBTK_ARCH_MIPS_ABI_N64
bool "n64" if !EMBTK_TARGET_ARCH_32BITS
select EMBTK_64BITS_FS
+ select KEMBTK_UCLIBC_CONFIG_MIPS_N64_ABI if EMBTK_CLIB_UCLUBC
endchoice
config EMBTK_ARCH_MIPS_BIG_ENDIAN
diff --git a/kconfig/arch.kconfig b/kconfig/arch.kconfig
index 4180d09..2d8d3ed 100644
--- a/kconfig/arch.kconfig
+++ b/kconfig/arch.kconfig
@@ -74,10 +74,12 @@ config EMBTK_64BITS_FS_COMPAT32
config EMBTK_TARGET_ARCH_LITTLE_ENDIAN
bool
+ select KEMBTK_UCLIBC_ARCH_WANTS_LITTLE_ENDIAN if EMBTK_CLIB_UCLIBC
help
Little endian target
config EMBTK_TARGET_ARCH_BIG_ENDIAN
bool
+ select KEMBTK_UCLIBC_ARCH_WANTS_BIG_ENDIAN if EMBTK_CLIB_UCLIBC
help
Big endian target
diff --git a/kconfig/toolchain.kconfig b/kconfig/toolchain.kconfig
index ddf896b..251c722 100644
--- a/kconfig/toolchain.kconfig
+++ b/kconfig/toolchain.kconfig
@@ -48,8 +48,9 @@ endchoice
if EMBTK_CLIB_EGLIBC
source "kconfig/eglibc.kconfig"
endif
+
if EMBTK_CLIB_UCLIBC
-source "kconfig/uclibc-kconfigs/uclibc.kconfig"
+source "kconfig/uclibc-kconfigs/embtk-uclibc.kconfig"
endif
endmenu
diff --git a/kconfig/uclibc-kconfigs/uclibc-arm.kconfig b/kconfig/uclibc-kconfigs/uclibc-arm.kconfig
index dee11a4..25aa88d 100644
--- a/kconfig/uclibc-kconfigs/uclibc-arm.kconfig
+++ b/kconfig/uclibc-kconfigs/uclibc-arm.kconfig
@@ -1,45 +1,7 @@
-################################################################################
-# Embtoolkit
-# Copyright(C) 2009-2011 GAYE Abdoulaye Walsimou.
-# For Copyrright from linux kernel's build/configure system, see their source
-# code
#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
#
-# This program is distributed in the hope it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-################################################################################
-#
-# \file uclibc-arm.kconfig
-# \brief uclibc-arm.kconfig of Embtoolkit, similar to Configs/Config.arm.
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# \date September 2009
-################################################################################
-
-config KEMBTK_UCLIBC_CONFIG_GENERIC_ARM
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_STRONGARM_SA \
- || EMBTK_ARCH_ARM_FAMILY_STRONGARM_SA-1110 \
- || EMBTK_ARCH_ARM_FAMILY_ARM8_ARM810 \
- || EMBTK_ARCH_ARM_FAMILY_ARM11_MPCORE \
- || EMBTK_ARCH_ARM_FAMILY_CORTEX_CORTEX-A8 \
- || EMBTK_ARCH_ARM_FAMILY_CORTEX_CORTEX-A9 \
- || EMBTK_ARCH_ARM_FAMILY_CORTEX_CORTEX-R4 \
- || EMBTK_ARCH_ARM_FAMILY_CORTEX_CORTEX-R4F
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM610
- bool
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
config KEMBTK_UCLIBC_TARGET_ARCH
string
@@ -53,126 +15,25 @@ config KEMBTK_UCLIBC_FORCE_OPTIONS_FOR_ARCH
config KEMBTK_UCLIBC_CONFIG_ARM_EABI
bool
default y
-
-config KEMBTK_UCLIBC_CONFIG_ARM_OABI
- bool
- default n
-
-config KEMBTK_UCLIBC_USE_BX
- bool "Use BX in function return"
- default y
- depends on !KEMBTK_UCLIBC_CONFIG_GENERIC_ARM \
- && !KEMBTK_UCLIBC_CONFIG_ARM610 && !KEMBTK_UCLIBC_CONFIG_ARM710
help
- Use BX instruction for THUMB aware architectures.
+ If you say 'y' here, functions and constants required by the
+ ARM EABI will be built into the library. You should say 'y'
+ if your compiler uses the ARM EABI, in which case you will also
+ need a kernel supporting the EABI system call interface.
-config KEMBTK_UCLIBC_CONFIG_ARM710
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM710T
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM7TDMI
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM7TDMI \
- || EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM7TDMI-S \
- || EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM740T
- select KEMBTK_UCLIBC_ARCH_HAS_NO_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM720T
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM720T
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM920T
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM9TDMI_ARM920T \
- || EMBTK_ARCH_ARM_FAMILY_ARM9TDMI_ARM9TDMI \
- || EMBTK_ARCH_ARM_FAMILY_ARM9TDMI_ARM940T
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM922T
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM9TDMI_ARM922T
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
+ If you say 'n' here, then the library will be built for the
+ old Linux ABI.
-config KEMBTK_UCLIBC_CONFIG_ARM926T
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM9E_ARM926EJ-S \
- || EMBTK_ARCH_ARM_FAMILY_ARM9E_ARM946E-S \
- || EMBTK_ARCH_ARM_FAMILY_ARM9E_ARM966E-S \
- || EMBTK_ARCH_ARM_FAMILY_ARM9E_ARM968E-S
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM10T
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM10E_ARM1020E \
- || EMBTK_ARCH_ARM_FAMILY_ARM10E_ARM1020E \
- || EMBTK_ARCH_ARM_FAMILY_ARM10E_ARM1026EJ-S
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM1136JF_S
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM11_ARM1136JF-S \
- || EMBTK_ARCH_ARM_FAMILY_ARM11_ARM1136J-S \
- || EMBTK_ARCH_ARM_FAMILY_ARM11_ARM1156T2-S
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM1176JZ_S
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM11_ARM1176JZ-S
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM1176JZF_S
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_ARM11_ARM1176JZF-S
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM_CORTEX_M3
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_CORTEX_CORTEX-M3
- select KEMBTK_UCLIBC_ARCH_HAS_NO_MMU
- select KEMBTK_UCLIBC_USE_BX
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM_CORTEX_M1
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_CORTEX_CORTEX-M1
- select KEMBTK_UCLIBC_ARCH_HAS_NO_MMU
+config KEMBTK_UCLIBC_COMPILE_IN_THUMB_MODE
+ bool "Build using Thumb mode"
select KEMBTK_UCLIBC_USE_BX
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM_SA110
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_STRONGARM_SA-110
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM_SA1100
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_STRONGARM_SA-1100
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM_XSCALE
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_XSCALE_XSCALE
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
-
-config KEMBTK_UCLIBC_CONFIG_ARM_IWMMXT
- bool
- default y if EMBTK_ARCH_ARM_FAMILY_IWMMXT_IWMMXT \
- || EMBTK_ARCH_ARM_FAMILY_IWMMXT_IWMMXT2
- select KEMBTK_UCLIBC_ARCH_HAS_MMU
- default n
+ help
+ Say 'y' here to force building uClibc in thumb mode.
+ Say 'n' to use your compiler's default mode.
+config KEMBTK_UCLIBC_USE_BX
+ bool "Use BX in function return"
+ help
+ Say 'y' to use BX to return from functions on your thumb-aware
+ processor. Say 'y' if you need to use interworking. Say 'n' if not.
+ It is safe to say 'y' even if you're not doing interworking.
diff --git a/kconfig/uclibc-kconfigs/uclibc-mips.kconfig b/kconfig/uclibc-kconfigs/uclibc-mips.kconfig
index 995c102..fba59a0 100644
--- a/kconfig/uclibc-kconfigs/uclibc-mips.kconfig
+++ b/kconfig/uclibc-kconfigs/uclibc-mips.kconfig
@@ -1,29 +1,7 @@
-################################################################################
-# Embtoolkit
-# Copyright(C) 2009-2011 GAYE Abdoulaye Walsimou.
-# For Copyrright from linux kernel's build/configure system, see their source
-# code
#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
#
-# This program is distributed in the hope it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-################################################################################
-#
-# \file uclibc-mips.kconfig
-# \brief uclibc-mips.kconfig of Embtoolkit, similar to
-# brief Configs/Config.mips.
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# \date September 2009
-################################################################################
config KEMBTK_UCLIBC_TARGET_ARCH
string
@@ -34,60 +12,67 @@ config KEMBTK_UCLIBC_FORCE_OPTIONS_FOR_ARCH
default y
select KEMBTK_UCLIBC_ARCH_ANY_ENDIAN
-config KEMBTK_UCLIBC_ARCH_CFLAGS
- string
- default "-mno-split-addresses"
+#choice
+# prompt "Target ABI"
+# help
+# This is the ABI you wish to build use. Choose either O32, N32
+# or N64.
config KEMBTK_UCLIBC_CONFIG_MIPS_O32_ABI
bool
- default y if EMBTK_ARCH_MIPS_ABI_O32
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_N32_ABI
bool
- default y if EMBTK_ARCH_MIPS_ABI_N32
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_N64_ABI
bool
- default y if EMBTK_ARCH_MIPS_ABI_N64
default n
+#endchoice
+
+#choice
+# prompt "Target Processor Architecture"
+# help
+# This selects the instruction set architecture of your MIPS CPU. This
+# information is used for optimizing purposes. To build a library that
+# will run on any MIPS CPU, you can specify "Generic (MIPS I)" here.
+# If you pick anything other than "Generic (MIPS I)," there is no
+# guarantee that uClibc will even run on anything other than the
+# selected processor type.
+#
+# You should probably select the MIPS ISA that best matches the
+# CPU you will be using on your device. uClibc will be tuned
+# for that architecture.
+#
+# If you don't know what to do, choose "Generic (MIPS I)"
+
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_1
bool
- default y if EMBTK_ARCH_MIPS_MIPS1_LITTLE || EMBTK_ARCH_MIPS_MIPS1_BIG
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_2
bool
- default y if EMBTK_ARCH_MIPS_MIPS2_LITTLE || EMBTK_ARCH_MIPS_MIPS2_BIG
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_3
bool
- default y if EMBTK_ARCH_MIPS_MIPS3_LITTLE || EMBTK_ARCH_MIPS_MIPS3_BIG
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_4
bool
- default y if EMBTK_ARCH_MIPS_MIPS4_LITTLE || EMBTK_ARCH_MIPS_MIPS4_BIG
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS32
bool
- default y if EMBTK_ARCH_MIPS_MIPS32_LITTLE || EMBTK_ARCH_MIPS_MIPS32_BIG
default n
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS32R2
bool
- default y if EMBTK_ARCH_MIPS_MIPS32R2_LITTLE \
- || EMBTK_ARCH_MIPS_MIPS32R2_BIG
- default n
config KEMBTK_UCLIBC_CONFIG_MIPS_ISA_MIPS64
bool
- default y if EMBTK_ARCH_MIPS_MIPS64_LITTLE \
- || EMBTK_ARCH_MIPS_MIPS64_BIG || EMBTK_ARCH_MIPS_MIPS64R2_LITTLE \
- || EMBTK_ARCH_MIPS_MIPS64R2_BIG
default n
+#endchoice
diff --git a/kconfig/uclibc-kconfigs/uclibc.kconfig b/kconfig/uclibc-kconfigs/uclibc.kconfig
index 8c2ad56..1ed23ed 100644
--- a/kconfig/uclibc-kconfigs/uclibc.kconfig
+++ b/kconfig/uclibc-kconfigs/uclibc.kconfig
@@ -1,86 +1,12 @@
-################################################################################
-# Embtoolkit
-# Copyright(C) 2009-2011 GAYE Abdoulaye Walsimou.
-# For Copyrright from linux kernel's build/configure system, see their source
-# code
#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
#
-# This program is distributed in the hope it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-################################################################################
-#
-# \file uclibc.kconfig
-# \brief uclibc.kconfig of Embtoolkit, similar to Configs/Config.in
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# \date September 2009
-################################################################################
-
-comment "##############################"
-comment "# uClibc C library configuration"
-comment "##############################"
-choice
- prompt "uClibc version to use"
- help
- Which uClibc version to use.
-
- config EMBTK_UCLIBC_VERSION_0_9_30_1
- bool "uClibc-0.9.30.1"
- select EMBTK_UCLIBC_VERSION_SERIES_0_9_30_X
- select EMBTK_UCLIBC_NEED_PATCH
- config EMBTK_UCLIBC_VERSION_0_9_30
- bool "uClibc-0.9.30"
- select EMBTK_UCLIBC_VERSION_SERIES_0_9_30_X
- select EMBTK_UCLIBC_NEED_PATCH
- depends on EMBTK_OLDPACKAGES
- config EMBTK_UCLIBC_VERSION_GIT
- bool "Use a branch of uClibc git repository"
- select EMBTK_UCLIBC_VERSION_SERIES_1_0_X
- help
- see http://git.uclibc.org/uClibc
-endchoice
-config EMBTK_UCLIBC_VERSION_STRING
+config KEMBTK_UCLIBC_DESIRED_TARGET_ARCH
string
- default "0.9.30.1" if EMBTK_UCLIBC_VERSION_0_9_30_1
- default "0.9.30" if EMBTK_UCLIBC_VERSION_0_9_30
- default "git" if EMBTK_UCLIBC_VERSION_GIT
-
-config EMBTK_UCLIBC_VERSION_SERIES_1_0_X
- bool
- select EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
-
-config EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
- bool
-
-config EMBTK_UCLIBC_VERSION_SERIES_0_9_30_X
- bool
-
-config EMBTK_UCLIBC_GIT_BRANCH
- string "Branch to use"
- default "master"
- depends on EMBTK_UCLIBC_VERSION_GIT
- help
- The branch of the git repository to use.
-
-config EMBTK_UCLIBC_GIT_REVISION
- string "Revision to checkout"
- default "HEAD"
- depends on EMBTK_UCLIBC_VERSION_GIT
- help
- The revision of the git repository to checkout.
-
-config EMBTK_UCLIBC_NEED_PATCH
- bool
+ default ""
config KEMBTK_UCLIBC_TARGET_alpha
bool
@@ -184,9 +110,14 @@ config KEMBTK_UCLIBC_TARGET_xtensa
bool
default n
+config KEMBTK_UCLIBC_TARGET_c6x
+ bool
+ default n
+
comment "----------------"
comment "Target Architecture Features and Options"
comment "----------------"
+
if KEMBTK_UCLIBC_TARGET_arm
source kconfig/uclibc-kconfigs/uclibc-arm.kconfig
endif
@@ -199,242 +130,15 @@ config KEMBTK_UCLIBC_TARGET_SUBARCH
string
default ""
-####################### Similar to Configs/Config.arch.in ######################
-
-#
-# Binary format
-#
-if !KEMBTK_UCLIBC_ARCH_USE_MMU
-choice
- prompt "Target File Format"
- config KEMBTK_UCLIBC_UCLIBC_FORMAT_ELF
- bool "ELF"
- depends on KEMBTK_UCLIBC_ARCH_USE_MMU
- config KEMBTK_UCLIBC_UCLIBC_FORMAT_FDPIC_ELF
- bool "FDPIC ELF"
- depends on !KEMBTK_UCLIBC_ARCH_USE_MMU
- config KEMBTK_UCLIBC_UCLIBC_FORMAT_FLAT
- bool "STATIC FLAT"
- depends on !KEMBTK_UCLIBC_ARCH_USE_MMU
- select KEMBTK_UCLIBC_ARCH_HAS_NO_LDSO
- config KEMBTK_UCLIBC_UCLIBC_FORMAT_FLAT_SEP_DATA
- bool "STATIC FLAT (sep-data)"
- depends on !KEMBTK_UCLIBC_ARCH_USE_MMU
- select KEMBTK_UCLIBC_ARCH_HAS_NO_LDSO
- config KEMBTK_UCLIBC_UCLIBC_FORMAT_SHARED_FLAT
- bool "SHARED FLAT"
- depends on !KEMBTK_UCLIBC_ARCH_USE_MMU
- select KEMBTK_UCLIBC_ARCH_HAS_NO_LDSO
- help
- Pick this one if you are using uClinux and wish to buil
- uClibc as a flat-format shared library.
-endchoice
-endif
-
-if KEMBTK_UCLIBC_ARCH_USE_MMU
-comment "Using ELF file format"
-endif
-
-config KEMBTK_UCLIBC_UCLIBC_SHARED_FLAT_ID
- int "Shared library ID"
- default 1
- depends on KEMBTK_UCLIBC_UCLIBC_FORMAT_SHARED_FLAT
- help
- When using flat shared libraries, every library has a unique
- system-wide identifier. Identifier 0 is reserved for
- executables and true shared libraries have identifiers
- starting at 1. The maximum shared library identifier is
- determined by the kernel and is usually 3. Shared library
- N must be available on the target system as "/lib/libN.so".
-
- When a shared C library is used, it usually has identifier 1,
- but you can use this option to select a different identifier
- if you need to.
-
-
-
-#
-# Endian Format
-#
-config KEMBTK_UCLIBC_ARCH_ANY_ENDIAN
- bool
- default n
-config KEMBTK_UCLIBC_ARCH_BIG_ENDIAN
- bool
- default n
-config KEMBTK_UCLIBC_ARCH_LITTLE_ENDIAN
- bool
- default n
-
-if KEMBTK_UCLIBC_ARCH_ANY_ENDIAN
-config KEMBTK_UCLIBC_ARCH_WANTS_BIG_ENDIAN
- bool
- default y if EMBTK_ARCH_ARM_BIG_ENDIAN || EMBTK_ARCH_MIPS_BIG_ENDIAN
- select KEMBTK_UCLIBC_ARCH_BIG_ENDIAN
- default n
-
-config KEMBTK_UCLIBC_ARCH_WANTS_LITTLE_ENDIAN
- bool
- default y if EMBTK_ARCH_ARM_LITTLE_ENDIAN \
- || EMBTK_ARCH_MIPS_LITTLE_ENDIAN
- select KEMBTK_UCLIBC_ARCH_LITTLE_ENDIAN
- default n
-endif
-
-# if the arch only supports one endian, just display the setting
-if !KEMBTK_UCLIBC_ARCH_ANY_ENDIAN && KEMBTK_UCLIBC_ARCH_LITTLE_ENDIAN
-comment "Using Little Endian"
-endif
-if !KEMBTK_UCLIBC_ARCH_ANY_ENDIAN && KEMBTK_UCLIBC_ARCH_BIG_ENDIAN
-comment "Using Big Endian"
-endif
+source kconfig/uclibc-kconfigs/uclibc-arch.kconfig
-config KEMBTK_UCLIBC_ARCH_HAS_NO_MMU
- bool
-
-if KEMBTK_UCLIBC_ARCH_HAS_NO_MMU
-comment "Target CPU lacks a memory management unit (MMU)"
-endif
-
-config KEMBTK_UCLIBC_ARCH_HAS_MMU
- bool "Target CPU has a memory management unit (MMU)"
- depends on !KEMBTK_UCLIBC_ARCH_HAS_NO_MMU
- default y
- help
- If your target CPU does not have a memory management unit (MMU),
- then answer N here. Normally, Linux runs on systems with an MMU.
- If you are building a uClinux system, answer N.
-
- Most people will answer Y.
-
-config KEMBTK_UCLIBC_ARCH_USE_MMU
- bool "Do you want to utilize the MMU?"
- depends on KEMBTK_UCLIBC_ARCH_HAS_MMU
- default y
- help
- If your target CPU has a MMU, and you wish to actually utilize it,
- then answer Y here. Normal Linux requires an MMU.
-
- If you're unsure, answer Y.
-config KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- bool "Enable floating point number support"
- default y
- help
- This option allows you to entirely omit all floating point number
- support from uClibc. This will cause floating point functions like
- strtod() to be omitted from uClibc. Other floating point functions,
- such as printf() and scanf() will still be included in the library,
- but will not contain support for floating point numbers.
-
- Answering N to this option can reduce the size of uClibc.
- Most people will answer Y.
-
-config KEMBTK_UCLIBC_UCLIBC_HAS_FPU
- bool
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- default y if EMBTK_HARDFLOAT
- default n if EMBTK_SOFTFLOAT
- help
- If your target CPU does not have a Floating Point Unit (FPU) or a
- kernel FPU emulator, but you still wish to support floating point
- functions, then uClibc will need to be compiled with soft floating
- point support (-msoft-float). If your target CPU does not have an
- FPU or an FPU emulator within the Linux kernel, then you should
- answer N.
-
- Most people will answer Y.
-
-config KEMBTK_UCLIBC_UCLIBC_HAS_SOFT_FLOAT
- bool
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS && \
- !KEMBTK_UCLIBC_UCLIBC_HAS_FPU
- default y
-
-config KEMBTK_UCLIBC_DO_C99_MATH
- bool "Enable full C99 math library support"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- default n
- help
- If you want the uClibc math library to contain the full set C99
- math library features, then answer Y. If you leave this set to
- N the math library will contain only the math functions that were
- listed as part of the traditional POSIX/IEEE 1003.1b-1993 standard.
- Leaving this option set to N will save around 35k on an x86 system.
-
- If your applications require the newer C99 math library functions,
- then answer Y.
-
-config KEMBTK_UCLIBC_DO_XSI_MATH
- bool "Enable XSI math extensions to the ISO C standard (bessel)"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
- help
- X/Open System Interfaces extensions to ISO C math functions
- (differential equation functions):
-
- j0, j1, jn - Bessel functions of the first kind
- y0, y1, yn - Bessel functions of the second kind
-
-config KEMBTK_UCLIBC_UCLIBC_HAS_FENV
- bool
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- default n
- help
- If you want the uClibc math library to contain the C99 floating
- point environment, rounding and exception handling functions then
- say Y here.
-
- NOTE: Supported architectures currently include:
- i386
-
-config KEMBTK_UCLIBC_UCLIBC_HAS_LONG_DOUBLE_MATH
- bool "Enable long double support"
- depends on KEMBTK_UCLIBC_DO_C99_MATH
- depends on KEMBTK_UCLIBC_TARGET_i386 || KEMBTK_UCLIBC_TARGET_m68k \
- || KEMBTK_UCLIBC_TARGET_sparc || KEMBTK_UCLIBC_TARGET_x86_64 \
- || KEMBTK_UCLIBC_TARGET_powerpc
- default y
- help
- If you want the uClibc math library to contain the full set of C99
- long double math library features, then answer Y. Don't enable it
- for sparc w/ 32bit ABI.
-
-config KEMBTK_UCLIBC_KERNEL_HEADERS
- string
- default "/usr/include"
- help
- The kernel source you use to compile with should be the same
- as the Linux kernel you run your apps on. uClibc doesn't even
- try to achieve binary compatibility across kernel versions.
- So don't expect, for example, uClibc compiled with Linux kernel
- 2.0.x to implement lchown properly, since 2.0.x can't do that.
- Similarly, if you compile uClibc vs Linux 2.4.x kernel headers,
- but then run on Linux 2.0.x, lchown will be compiled into uClibc,
- but won't work at all. You have been warned.
-
-config KEMBTK_UCLIBC_UCLIBC_UCLINUX_BROKEN_MUNMAP
- bool
- depends on !KEMBTK_UCLIBC_ARCH_USE_MMU
- default y
-
-config KEMBTK_UCLIBC_EXCLUDE_BRK
- bool
- depends on !KEMBTK_UCLIBC_ARCH_USE_MMU
- default y
-
-config KEMBTK_UCLIBC_HAVE_DOT_CONFIG
- bool
- default y
-
-##################### End similar to Configs/Config.arch.in ####################
comment "----------------"
comment "General Library Settings"
comment "----------------"
config KEMBTK_UCLIBC_HAVE_NO_PIC
bool
- default n
config KEMBTK_UCLIBC_DOPIC
bool "Generate only Position Independent Code (PIC)"
@@ -446,15 +150,13 @@ config KEMBTK_UCLIBC_DOPIC
config KEMBTK_UCLIBC_ARCH_HAS_NO_SHARED
bool
- default n
config KEMBTK_UCLIBC_ARCH_HAS_NO_LDSO
bool
select KEMBTK_UCLIBC_ARCH_HAS_NO_SHARED
- default n
config KEMBTK_UCLIBC_HAVE_SHARED
- bool "Enable support for shared libraries"
+ bool "Enable shared libraries"
depends on !KEMBTK_UCLIBC_ARCH_HAS_NO_SHARED
default y
help
@@ -465,7 +167,7 @@ config KEMBTK_UCLIBC_HAVE_SHARED
config KEMBTK_UCLIBC_FORCE_SHAREABLE_TEXT_SEGMENTS
bool "Only load shared libraries which can share their text segment"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default n
+ select KEMBTK_UCLIBC_DOPIC
help
If you answer Y here, the uClibc native shared library loader will
only load shared libraries, which do not need to modify any
@@ -482,10 +184,10 @@ config KEMBTK_UCLIBC_LDSO_LDD_SUPPORT
depends on KEMBTK_UCLIBC_HAVE_SHARED
default y
help
- Enable this to enable all the code needed to support traditional ldd,
+ Enable all the code needed to support traditional ldd,
which executes the shared library loader to resolve all dependencies
and then provide a list of shared libraries that are required for an
- application to function. Disabling this option will makes uClibc's
+ application to function. Disabling this option will make uClibc's
shared library loader a little bit smaller.
Most people will answer Y.
@@ -502,7 +204,6 @@ config KEMBTK_UCLIBC_LDSO_CACHE_SUPPORT
config KEMBTK_UCLIBC_LDSO_PRELOAD_ENV_SUPPORT
bool "Enable library loader LD_PRELOAD environment"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- depends on EMBTK_UCLIBC_VERSION_SERIES_1_0_X
default y
help
Enable this to make use of LD_PRELOAD environment variable.
@@ -515,35 +216,14 @@ config KEMBTK_UCLIBC_LDSO_PRELOAD_ENV_SUPPORT
config KEMBTK_UCLIBC_LDSO_PRELOAD_FILE_SUPPORT
bool "Enable library loader preload file (ld.so.preload)"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default n
help
Enable this to make use of /etc/ld.so.preload. This file contains a
whitespace separated list of shared libraries to be loaded before
the program.
config KEMBTK_UCLIBC_LDSO_BASE_FILENAME
- string
- depends on KEMBTK_UCLIBC_HAVE_SHARED \
- && (KEMBTK_UCLIBC_LDSO_CACHE_SUPPORT \
- || KEMBTK_UCLIBC_LDSO_PRELOAD_FILE_SUPPORT)
- default "ld.so"
- help
- If you wish to support both uClibc and glibc on the same system, it
- is necessary to set this to something other than "ld.so" to avoid
- conflicts with glibc, which also uses "ld.so". This prevents both
- libraries from using the same /etc/ld.so.* files. If you wish to
- support both uClibc and glibc on the same system then you should set
- this to "ld-uClibc.so".
-
- Most people will leave this set to the default of "ld.so".
-
- WARNING: Changing the default prefix could cause problems with
- binutils' ld !
-
-config KEMBTK_UCLIBC_LDSO_BASE_FILENAME
- string
- depends on KEMBTK_UCLIBC_HAVE_SHARED && (KEMBTK_UCLIBC_LDSO_CACHE_SUPPORT \
- || KEMBTK_UCLIBC_LDSO_PRELOAD_FILE_SUPPORT)
+ string "Shared library loader naming prefix"
+ depends on KEMBTK_UCLIBC_HAVE_SHARED && (KEMBTK_UCLIBC_LDSO_CACHE_SUPPORT || KEMBTK_UCLIBC_LDSO_PRELOAD_FILE_SUPPORT)
default "ld.so"
help
If you wish to support both uClibc and glibc on the same system, it
@@ -566,36 +246,36 @@ config KEMBTK_UCLIBC_UCLIBC_STATIC_LDCONFIG
Enable this option to statically link the ldconfig binary.
Making ldconfig static can be beneficial if you have a library
- problem and need to use ldconfig to recover. Sometimes, it is
+ problem and need to use ldconfig to recover. Sometimes it is
preferable to instead keep the size of the system down, in which
case you should disable this option.
config KEMBTK_UCLIBC_LDSO_RUNPATH
bool "Enable ELF RUNPATH tag support"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default y
+ default y if KEMBTK_UCLIBC_LDSO_CACHE_SUPPORT
help
- ELF's may have dynamic RPATH/RUNPATH tags. These tags list
- paths which extend the library search paths. They are really
- only useful if a package installs libraries in non standard
- locations and ld.so.conf support is disabled.
- Usage of RUNPATH tags is not too common, so disabling this
- feature should be safe for most people.
+ ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
+ which extend the library search paths. They are really only useful
+ if a package installs libraries in non standard locations and
+ ld.so.conf support is disabled.
+
+ Usage of RUNPATH tags is not too common, so disabling this feature
+ should be safe for most people.
config KEMBTK_UCLIBC_LDSO_SEARCH_INTERP_PATH
bool "Add ldso path to lib search path"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
default y
help
- The ldso is told where it is being executed from and can use
- that path to find related core libraries. This is useful by
- default, but can be annoying in a mixed development environment.
+ The ldso is told where it is being executed from and can use that
+ path to find related core libraries. This is useful by default,
+ but can be annoying in a mixed development environment.
- i.e. if the ldso is run from /foo/boo/ldso.so, it will start its
- library search with /foo/boo/
+ i.e. if the ldso is run from /foo/boo/ldso.so, it will start its
+ library search with /foo/boo/
- If unsure, simply say Y here.
+ If unsure, simply say Y here.
config KEMBTK_UCLIBC_UCLIBC_CTOR_DTOR
bool "Support global constructors and destructors"
@@ -617,7 +297,6 @@ config KEMBTK_UCLIBC_UCLIBC_CTOR_DTOR
config KEMBTK_UCLIBC_LDSO_GNU_HASH_SUPPORT
bool "Enable GNU hash style support"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default n
help
Newest binutils support a new hash style named GNU-hash. The dynamic
linker will use the new GNU-hash section (.gnu.hash) for symbol lookup
@@ -632,25 +311,35 @@ config KEMBTK_UCLIBC_LDSO_GNU_HASH_SUPPORT
choice
prompt "Thread support"
+ default KEMBTK_UCLIBC_LINUXTHREADS_OLD
help
- If you want to compile uClibc with pthread support,
- then answer Y.
- This will increase the size of uClibc by adding a bunch of
- locking to critical data structures, and adding extra code to
- ensure that functions are properly reentrant.
+ If you want to compile uClibc with pthread support, then answer Y.
+ This will increase the size of uClibc by adding a bunch of locking
+ to critical data structures, and adding extra code to ensure that
+ functions are properly reentrant.
+
+config KEMBTK_UCLIBC_HAS_NO_THREADS
+ bool "none"
+ help
+ Disable thread support.
config KEMBTK_UCLIBC_LINUXTHREADS_OLD
- bool "Use the older (stable) version of linuxthreads"
- select KEMBTK_UCLIBC_UCLIBC_HAS_THREADS
- 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.
- The new version has not been tested much, and lacks ports for
- arches which glibc does not support (like bfin/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).
+ bool "older (stable) version of linuxthreads"
+ # linuxthreads and linuxthreads.old need nanosleep()
+ select KEMBTK_UCLIBC_UCLIBC_HAS_REALTIME
+ 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 KEMBTK_UCLIBC_LINUXTHREADS_NEW
+ bool "slightly newer version of linuxthreads"
+ help
+ The new version has not been tested much, and lacks ports for arches
+ which glibc does not support (like bfin/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).
config KEMBTK_UCLIBC_UCLIBC_HAS_THREADS_NATIVE
bool "Native POSIX Threading (NPTL)"
@@ -658,7 +347,8 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_THREADS_NATIVE
select KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_FUTEXES
# NPTL local:
select KEMBTK_UCLIBC_EXTRA_WARNINGS
- depends on EMBTK_UCLIBC_VERSION_SERIES_1_0_X
+ # i386 has no lowlevellock support (yet) as opposed to i486 onward
+ depends on !KEMBTK_UCLIBC_CONFIG_386
help
If you want to compile uClibc with NPTL support, then answer Y.
@@ -676,54 +366,36 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_THREADS_NATIVE
that way until further notice at which point this notice will
disappear. Thank you for your support and for not smoking.
-config KEMBTK_UCLIBC_HAS_NO_THREADS
- bool "none"
- help
- Disable thread support.
-
endchoice
config KEMBTK_UCLIBC_UCLIBC_HAS_THREADS
- bool
- default y if !KEMBTK_UCLIBC_HAS_NO_THREADS
- default n if KEMBTK_UCLIBC_HAS_NO_THREADS
+ def_bool y if !KEMBTK_UCLIBC_HAS_NO_THREADS
config KEMBTK_UCLIBC_UCLIBC_HAS_TLS
bool "Thread-Local Storage"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_THREADS_NATIVE
- depends on EMBTK_UCLIBC_VERSION_SERIES_1_0_X
- default n
help
If you want to enable TLS support then answer Y.
This is fast an efficient way to store per-thread local data
which is not on stack. It needs __thread support enabled in
gcc.
-config KEMBTK_UCLIBC_LINUXTHREADS_NEW
- bool
- default n
- help
- The new version has not been tested much, and lacks ports for
- arches which glibc does not support (like bfin/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).
-
config KEMBTK_UCLIBC_PTHREADS_DEBUG_SUPPORT
bool "Build pthreads debugging support"
- default n
depends on KEMBTK_UCLIBC_UCLIBC_HAS_THREADS
help
- Say Y here if you wish to be able to debug applications that use
- uClibc's pthreads library. By enabling this option, a library
- named libthread_db will be built. This library will be
- dlopen()'d by gdb and will allow gdb to debug the threads in
- your application.
- IMPORTANT NOTE! Because gdb must dlopen() the libthread_db
- library, you must compile gdb with uClibc in order for pthread
- debugging to work properly.
- If you are doing development and want to debug applications
- using uClibc's pthread library, answer Y. Otherwise, answer N.
+ Say Y here if you wish to be able to debug applications that use
+ uClibc's pthreads library. By enabling this option, a library
+ named libthread_db will be built. This library will be dlopen()'d
+ by gdb and will allow gdb to debug the threads in your application.
+
+ IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
+ you must compile gdb with uClibc in order for pthread debugging to
+ work properly.
+
+ If you are doing development and want to debug applications using
+ uClibc's pthread library, answer Y. Otherwise, answer N.
+
config KEMBTK_UCLIBC_UCLIBC_HAS_SYSLOG
bool "Syslog support"
@@ -745,8 +417,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_LFS
choice
prompt "Malloc Implementation"
- default KEMBTK_UCLIBC_MALLOC if !KEMBTK_UCLIBC_ARCH_USE_MMU
- default KEMBTK_UCLIBC_MALLOC_STANDARD if KEMBTK_UCLIBC_ARCH_USE_MMU
config KEMBTK_UCLIBC_MALLOC
bool "malloc"
@@ -787,8 +457,7 @@ config KEMBTK_UCLIBC_MALLOC_STANDARD
endchoice
config KEMBTK_UCLIBC_MALLOC_GLIBC_COMPAT
- bool
- default y
+ bool "Malloc returns live pointer for malloc(0)"
help
The behavior of malloc(0) is listed as implementation-defined by
SuSv3. Glibc returns a valid pointer to something, while uClibc
@@ -812,7 +481,6 @@ config KEMBTK_UCLIBC_UCLIBC_DYNAMIC_ATEXIT
of atexit() and on_exit() functions, limited only by your available
memory. This can be important when uClibc is used with C++, since
global destructors are implemented via atexit(), and it is quite
- possible to exceed the default number when this option is disabled.
Enabling this option adds a few bytes, and more significantly makes
atexit and on_exit depend on malloc, which can be bad when compiling
static executables.
@@ -821,65 +489,73 @@ config KEMBTK_UCLIBC_UCLIBC_DYNAMIC_ATEXIT
config KEMBTK_UCLIBC_COMPAT_ATEXIT
bool "Old (visible) atexit Support"
- default n
help
- Enable this option if you want to update from 0.9.28 to svn/0.9.29,
+ Enable this option if you want to update from 0.9.28 to git/0.9.29,
else you will be missing atexit() until you rebuild all apps.
config KEMBTK_UCLIBC_UCLIBC_SUSV3_LEGACY
bool "Enable SuSv3 LEGACY functions"
- default n
+ #vfork,
+ # h_errno
+ # gethostbyaddr
+ # gethostbyname
help
Enable this option if you want to have SuSv3 LEGACY functions
in the library, else they are replaced by SuSv3 proposed macros.
- Currently applies to bcopy/bzero/bcmp/index/rindex/ftime.
+ Currently applies to:
+
+ bcmp, bcopy, bzero, index, rindex, ftime,
+ bsd_signal, (ecvt), (fcvt), gcvt, (getcontext),
+ (getwd), (makecontext),
+ mktemp, (pthread_attr_getstackaddr), (pthread_attr_setstackaddr),
+ scalb, (setcontext), (swapcontext), ualarm, usleep,
+ wcswcs.
+
WARNING! ABI incompatibility.
config KEMBTK_UCLIBC_UCLIBC_SUSV3_LEGACY_MACROS
bool "Enable SuSv3 LEGACY macros"
- default n
help
- Enable this option if you want to have SuSv3 LEGACY macros.
- Currently applies to bcopy/bzero/bcmp/index/rindex et al.
- WARNING! ABI incompatibility.
+ Enable this option if you want to have SuSv3 LEGACY macros.
+ Currently applies to bcopy/bzero/bcmp/index/rindex et al.
+ WARNING! ABI incompatibility.
config KEMBTK_UCLIBC_UCLIBC_SUSV4_LEGACY
bool "Enable SuSv4 LEGACY or obsolescent functions"
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
help
- Enable this option if you want to have SuSv4 LEGACY functions
- and macros in the library.
- Currently applies to:
+ Enable this option if you want to have SuSv4 LEGACY functions
+ and macros in the library.
+ Currently applies to:
- - XSI functions:
- _longjmp, _setjmp, _tolower, _toupper, ftw, getitimer,
- gettimeofday, isascii, pthread_getconcurrency,
- pthread_setconcurrency, setitimer, setpgrp, sighold,
- sigignore, sigpause, sigrelse, sigset, siginterrupt,
- tempnam, toascii, ulimit.
+ - XSI functions:
+ _longjmp, _setjmp, _tolower, _toupper, ftw, getitimer,
+ gettimeofday, isascii, pthread_getconcurrency,
+ pthread_setconcurrency, setitimer, setpgrp, sighold,
+ sigignore, sigpause, sigrelse, sigset, siginterrupt,
+ tempnam, toascii, ulimit.
- - Base functions:
- asctime, asctime_r, ctime, ctime_r, gets, rand_r,
- tmpnam, utime.
+ - Base functions:
+ asctime, asctime_r, ctime, ctime_r, gets, rand_r,
+ tmpnam, utime.
- WARNING! ABI incompatibility.
+ WARNING! ABI incompatibility.
-config KEMBTK_UCLIBC_UCLIBC_HAS_STUBS
- bool "Provide stubs for unavailable functionality"
- default n
+config KEMBTK_UCLIBC_UCLIBC_STRICT_HEADERS
+ bool "Enable structures and constants for unsupported features"
help
- With this option uClibc provides non-functional stubs for
- functions which are impossible to implement on the target
- architecture. Otherwise, such functions are simply omitted.
+ Enable structures and constants in headers that should not be used,
+ because the respective feature is disabled.
- As of 2008-07, this option makes uClibc provide fork() stub
- on NOMMU targets. It always sets errno to ENOSYS and returns -1.
+ WARNING! enabling this option requires to patch many faulty apps,
+ since they make (wrongly) use of these structures/constants,
+ although the feature was disabled.
- This may be useful if you port a lot of software and cannot
- audit all of it and replace or disable fork() usage.
- With this option, a program which uses fork() will build
- successfully. Of course, it may be useless if fork()
- is essential for its operation.
+config KEMBTK_UCLIBC_UCLIBC_HAS_STUBS
+ bool "Provide stubs for unavailable functionality"
+ help
+ With this option uClibc provides non-functional stubs for
+ functions which are impossible to implement on the target
+ architecture. Otherwise, such functions are simply omitted.
config KEMBTK_UCLIBC_UCLIBC_HAS_SHADOW
bool "Shadow Password Support"
@@ -890,7 +566,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SHADOW
config KEMBTK_UCLIBC_UCLIBC_HAS_PROGRAM_INVOCATION_NAME
bool "Support for program_invocation_name"
- default n
help
Support for the GNU-specific program_invocation_name and
program_invocation_short_name strings. Some GNU packages
@@ -941,21 +616,25 @@ config KEMBTK_UCLIBC_UNIX98PTY_ONLY
default y
depends on KEMBTK_UCLIBC_UCLIBC_HAS_PTY
help
- If you want to support only Unix 98 PTYs enable this. Some
- older applications may need this disabled and will thus use
- legacy BSD style PTY handling which is more complex and also
- bigger thanUnix 98 PTY handling.
- For most current programs, you can generally answer Y.
+ If you want to support only Unix 98 PTYs enable this. Some older
+ applications may need this disabled and will thus use legacy BSD
+ style PTY handling which is more complex and also bigger than
+ Unix 98 PTY handling.
+ For most current programs, you can generally answer Y.
+
+if KEMBTK_UCLIBC_UNIX98PTY_ONLY
config KEMBTK_UCLIBC_UCLIBC_HAS_GETPT
bool "Support getpt() (glibc-compat)"
- depends on KEMBTK_UCLIBC_UNIX98PTY_ONLY
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_PTY
help
- Some packages may need getpt().
- All of those are non-standard and can be considered
- GNU/libc compatibility.
- Either use posix_openpt() or just open /dev/ptmx yourself.
- If unsure, just say N.
+ Some packages may need getpt().
+ All of those are non-standard and can be considered
+ GNU/libc compatibility.
+ Either use posix_openpt() or just open /dev/ptmx yourself.
+
+ If unsure, just say N.
+endif
if !KEMBTK_UCLIBC_UNIX98PTY_ONLY
# Have to use __libc_ptyname{1,2}[] and related bloat
@@ -966,27 +645,26 @@ endif
config KEMBTK_UCLIBC_UCLIBC_HAS_LIBUTIL
bool "Provide libutil library and functions"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_PTY
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
- help
- Provide a libutil library.
- This non-standard conforming library provides the following
- utility functions:
-
- forkpty(): combines openpty(), fork(2), and login_tty() to
- create a new process operating in a pseudo-terminal.
- login(): write utmp and wtmp entries
- login_tty(): prepares for a login on the tty fd by creating a
- new session, making fd the controlling terminal for
- the calling process, setting fd to be the standard
- input, output, and error streams of the current
- process, and closing fd.
- logout(): write utmp and wtmp entries
- logwtmp(): constructs a utmp structure and calls updwtmp() to
- append the structure to the utmp file.
- openpty(): finds an available pseudo-terminal and returns
- file descriptors for the master and slave
-
- This library adds about 3k-4k to your system.
+ help
+ Provide a libutil library.
+ This non-standard conforming library provides the following
+ utility functions:
+
+ forkpty(): combines openpty(), fork(2), and login_tty() to
+ create a new process operating in a pseudo-terminal.
+ login(): write utmp and wtmp entries
+ login_tty(): prepares for a login on the tty fd by creating a
+ new session, making fd the controlling terminal for
+ the calling process, setting fd to be the standard
+ input, output, and error streams of the current
+ process, and closing fd.
+ logout(): write utmp and wtmp entries
+ logwtmp(): constructs a utmp structure and calls updwtmp() to
+ append the structure to the utmp file.
+ openpty(): finds an available pseudo-terminal and returns
+ file descriptors for the master and slave
+
+ This library adds about 3k-4k to your system.
config KEMBTK_UCLIBC_UCLIBC_HAS_TM_EXTENSIONS
bool "Support 'struct tm' timezone extension fields"
@@ -1053,19 +731,21 @@ config KEMBTK_UCLIBC_UCLIBC_TZ_FILE_PATH
default "/etc/TZ"
help
This is the path to the 'TZ' file.
+
Most people will use the default of '/etc/TZ'.
config KEMBTK_UCLIBC_UCLIBC_FALLBACK_TO_ETC_LOCALTIME
bool "Use /etc/localtime as a fallback"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_TZ_FILE
- depends on EMBTK_UCLIBC_VERSION_SERIES_1_0_X
default y
help
Answer Y to try to use /etc/localtime file.
On glibc systems this file (if it is in TZif2 format)
contains timezone string at the end.
+
Most people will answer Y.
+
comment "----------------"
comment "Advanced Library Settings"
comment "----------------"
@@ -1094,19 +774,27 @@ comment "Support various families of functions"
config KEMBTK_UCLIBC_UCLIBC_LINUX_MODULE_24
bool "Linux kernel module functions"
- default y
+ default !(KEMBTK_UCLIBC_TARGET_bfin)
help
create_module, query_module
are used in linux (prior to 2.6) for loadable kernel modules.
- Say N if you do not use kernel modules.
+ Say N if you do not use kernel modules, or you only support
+ Linux 2.6+.
config KEMBTK_UCLIBC_UCLIBC_LINUX_SPECIFIC
bool "Linux specific functions"
default y
help
- fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(),
- personality(), ppoll(), setresuid(), signalfd()
+ accept4(),
+ capget(), capset(), fstatfs(), inotify_*(), ioperm(), iopl(),
+ madvise(), modify_ldt(), pipe2(), personality(),
+ prctl()/arch_prctl(),
+ ppoll(), readahead(), reboot(), remap_file_pages(),
+ sched_getaffinity(), sched_setaffinity(), sendfile(),
+ setfsgid(), setfsuid(), setresuid(),
+ splice(), vmsplice(), tee(), signalfd(), swapoff(), swapon(),
+ sync_file_range(), sysctl(), sysinfo(), vhangup()
config KEMBTK_UCLIBC_UCLIBC_HAS_GNU_ERROR
bool "Support GNU extensions for error-reporting"
@@ -1139,9 +827,8 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_BSD_ERR
config KEMBTK_UCLIBC_UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
bool "BSD obsolete signal functions"
- default n
help
- These functions are provided as a compatibility interface for
+ These functions are provided as a compatibility interface for
programs that make use of the historical System V signal API.
This API is obsolete:
new applications should use the POSIX signal API (sigaction(2),
@@ -1154,7 +841,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
config KEMBTK_UCLIBC_UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL
bool "SYSV obsolete signal functions"
- default n
help
Use of sysv_signal() should be avoided; use sigaction(2) instead.
@@ -1162,7 +848,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL
config KEMBTK_UCLIBC_UCLIBC_NTP_LEGACY
bool "ntp_*() aliases"
- default n
help
Provide legacy aliases for ntp functions:
ntp_adjtime(), ntp_gettime()
@@ -1171,7 +856,6 @@ config KEMBTK_UCLIBC_UCLIBC_NTP_LEGACY
config KEMBTK_UCLIBC_UCLIBC_SV4_DEPRECATED
bool "Enable SVr4 deprecated functions"
- default n
help
These functions are DEPRECATED in System V release 4.
Say N unless you desparately need one of the functions below:
@@ -1267,6 +951,18 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_ADVANCED_REALTIME
pthread_mutex_timedlock()
sem_timedwait()
+#config UCLIBC_HAS_TERMIOS
+# bool "termios functions"
+# default y
+# help
+# Get and set terminal attributes, line control, get and set baud
+# rate.
+# termios(), tcgetattr(), tcsetattr(), tcsendbreak(), tcdrain(),
+# tcflush(), tcflow(), cfmakeraw(), cfgetospeed(), cfgetispeed(),
+# cfsetispeed(), cfsetospeed(), cfsetspeed()
+#
+# If unsure, say Y.
+
config KEMBTK_UCLIBC_UCLIBC_HAS_EPOLL
bool "epoll"
default y
@@ -1321,140 +1017,130 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_CRYPT_STUB
config KEMBTK_UCLIBC_UCLIBC_HAS_CRYPT
def_bool y
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_CRYPT_IMPL \
- || KEMBTK_UCLIBC_UCLIBC_HAS_CRYPT_STUB
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_CRYPT_IMPL || KEMBTK_UCLIBC_UCLIBC_HAS_CRYPT_STUB
-comment "----------------"
-comment "Netwoking options"
-comment "----------------"
config KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
bool "Networking Support"
default y
help
- Say N here if you do not need network support.
+ Say N here if you do not need network support.
+if KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
config KEMBTK_UCLIBC_UCLIBC_HAS_SOCKET
bool "Socket support"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
default y
help
- If you want to include support for sockets then answer Y.
+ If you want to include support for sockets then answer Y.
config KEMBTK_UCLIBC_UCLIBC_HAS_IPV4
bool "IP version 4 support"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
default y
select KEMBTK_UCLIBC_UCLIBC_HAS_SOCKET
help
- If you want to include support for the Internet Protocol
- (IP version 4) then answer Y.
- Most people will say Y.
+ If you want to include support for the Internet Protocol
+ (IP version 4) then answer Y.
+
+ Most people will say Y.
config KEMBTK_UCLIBC_UCLIBC_HAS_IPV6
bool "IP version 6 support"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
select KEMBTK_UCLIBC_UCLIBC_HAS_SOCKET
help
- If you want to include support for the next version of the
- Internet Protocol (IP version 6) then answer Y.
- Most people should answer N.
+ If you want to include support for the next version of the Internet
+ Protocol (IP version 6) then answer Y.
+
+ Most people should answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_RPC
bool "Remote Procedure Call (RPC) support"
# RPC+socket-ipvX doesn't currently work.
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
- default y
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_IPV4 || KEMBTK_UCLIBC_UCLIBC_HAS_IPV6
help
- If you want to include RPC support, enable this. RPC is rarely
- used for anything except for the NFS filesystem. Unless you
- plan to use NFS, you can probably leave this set to N and save
- some space.
- If you need to use NFS then you should answer Y.
+ If you want to include RPC support, enable this. RPC is rarely used
+ for anything except for the NFS filesystem. Unless you plan to use
+ NFS, you can probably leave this set to N and save some space.
+
+ If you need to use NFS then you should answer Y.
config KEMBTK_UCLIBC_UCLIBC_HAS_FULL_RPC
bool "Full RPC support"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_RPC
default y if !KEMBTK_UCLIBC_HAVE_SHARED
help
- Normally we enable just enough RPC support for things like rshd
- and nfs mounts to work. If you find you need the rest of the RPC
- stuff, then enable this option.
- Most people can safely answer N.
+ Normally we enable just enough RPC support for things like rshd and
+ nfs mounts to work. If you find you need the rest of the RPC stuff,
+ then enable this option. Most people can safely answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_REENTRANT_RPC
bool "Reentrant RPC support"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_RPC
default y if !KEMBTK_UCLIBC_HAVE_SHARED
help
- Most packages utilize the normal (non-reentrant) RPC functions,
- but some (like exportfs from nfs-utils) need these reentrant
- versions.
- Most people can safely answer N.
+ Most packages utilize the normal (non-reentrant) RPC functions, but
+ some (like exportfs from nfs-utils) need these reentrant versions.
+
+ Most people can safely answer N.
config KEMBTK_UCLIBC_UCLIBC_USE_NETLINK
bool "Use netlink to query interfaces"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_SOCKET
help
- In newer versions of Linux (2.4.17+), support was added for
- querying network device information via netlink rather than the
- old style ioctl's. Most of the time, the older ioctl style is
- sufficient (and it is smaller than netlink), but if you find
- that not all of your devices are being returned by the
- if_nameindex() function, you will have to use the netlink
- implementation.
- Most people can safely answer N.
+ In newer versions of Linux (2.4.17+), support was added for querying
+ network device information via netlink rather than the old style
+ ioctl's. Most of the time, the older ioctl style is sufficient (and
+ it is smaller than netlink), but if you find that not all of your
+ devices are being returned by the if_nameindex() function, you will
+ have to use the netlink implementation.
+
+ Most people can safely answer N.
config KEMBTK_UCLIBC_UCLIBC_SUPPORT_AI_ADDRCONFIG
bool "Support the AI_ADDRCONFIG flag"
depends on KEMBTK_UCLIBC_UCLIBC_USE_NETLINK
help
- The implementation of AI_ADDRCONFIG is aligned with the glibc
- implementation using netlink to query interfaces to find both
- ipv4 and ipv6 support. This is only needed if an application
- uses the AI_ADDRCONFIG flag.
- Most people can safely answer N.
+ The implementation of AI_ADDRCONFIG is aligned with the glibc
+ implementation using netlink to query interfaces to find both
+ ipv4 and ipv6 support. This is only needed if an application uses
+ the AI_ADDRCONFIG flag.
+
+ Most people can safely answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_BSD_RES_CLOSE
bool "Support res_close() (bsd-compat)"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
help
- Answer Y if you desperately want to support BSD compatibility in
- the network code.
- Most people will say N.
+ Answer Y if you desperately want to support BSD compatibility in
+ the network code.
+
+ Most people will say N.
config KEMBTK_UCLIBC_UCLIBC_HAS_COMPAT_RES_STATE
bool "Use compatible but bloated _res"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
default y
help
- Answer Y if you build network utilities and they muck with
- esolver internals a lot (_res global structure). uclibc does not
- use most of _res.XXX fields, and with this option OFF they won't
- even exist. Which will make e.g. dig build fail.
- Answering N saves around 400 bytes in bss.
+ Answer Y if you build network utilities and they muck with resolver
+ internals a lot (_res global structure). uclibc does not use most
+ of _res.XXX fields, and with this option OFF they won't even exist.
+ Which will make e.g. dig build fail.
+ Answering N saves around 400 bytes in bss.
config KEMBTK_UCLIBC_UCLIBC_HAS_EXTRA_COMPAT_RES_STATE
bool "Use extra compatible but extra bloated _res"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
help
- Answer Y if selecting UCLIBC_HAS_COMPAT_RES_STATE is not enough.
- As far as I can say, this should never be needed.
+ Answer Y if selecting KEMBTK_UCLIBC_UCLIBC_HAS_COMPAT_RES_STATE is not enough.
+ As far as I can say, this should never be needed.
config KEMBTK_UCLIBC_UCLIBC_HAS_LIBRESOLV_STUB
bool "Provide libresolv stub"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
help
- Provide a dummy resolv library.
+ Provide a dummy resolv library.
config KEMBTK_UCLIBC_UCLIBC_HAS_LIBNSL_STUB
bool "Provide libnsl stub"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
help
- Provide a dummy nsl library.
+ Provide a dummy nsl library.
+
+endif
+
comment "----------------"
comment "String and Stdio Support"
@@ -1511,7 +1197,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_CTYPE_SIGNED
choice
prompt "ctype argument checking"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_CTYPE_TABLES
- default KEMBTK_UCLIBC_UCLIBC_HAS_CTYPE_UNSAFE
help
Please select the invalid arg behavior you want for the 'ctype'
functions.
@@ -1534,107 +1219,108 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_CTYPE_ENFORCED
endchoice
+
config KEMBTK_UCLIBC_UCLIBC_HAS_WCHAR
bool "Wide Character Support"
help
- Answer Y to enable wide character support. This will make
- uClibc much larger. It is also currently required for locale
- support.
- Most people will answer N.
+ Answer Y to enable wide character support. This will make uClibc
+ much larger. It is also currently required for locale support.
+
+ Most people will answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
bool "Locale Support"
select KEMBTK_UCLIBC_UCLIBC_HAS_WCHAR
select KEMBTK_UCLIBC_UCLIBC_HAS_CTYPE_TABLES
help
- uClibc now has full ANSI/ISO C99 locale support (except for
- wcsftime() and collating items in regex). Be aware that
- enabling this option will make uClibc much larger.
+ uClibc now has full ANSI/ISO C99 locale support (except for
+ wcsftime() and collating items in regex). Be aware that enabling
+ this option will make uClibc much larger.
- Enabling UCLIBC_HAS_LOCALE with the default set of supported
- locales (169 UTF-8 locales, and 144 locales for other codesets)
- will enlarge uClibc by around 300k. You can reduce this size by
- building your own custom set of locate data
- (see extra/locale/LOCALES for details).
+ Enabling KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE with the default set of supported locales
+ (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
+ uClibc by around 300k. You can reduce this size by building your own
+ custom set of locate data (see extra/locale/LOCALES for details).
- uClibc's locale support is still under development. For example,
- codesets using shift states are not currently supported.
- Support is planned in the next iteration of locale support.
+ uClibc's locale support is still under development. For example,
+ codesets using shift states are not currently supported. Support is
+ planned in the next iteration of locale support.
- Answer Y to enable locale support. Most people will answer N.
+ Answer Y to enable locale support. Most people will answer N.
choice
- prompt "Locale data"
+
+prompt "Locale data"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
config KEMBTK_UCLIBC_UCLIBC_BUILD_ALL_LOCALE
bool "All locales"
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
help
- This builds all the locales that are available on your
- host-box.
+ This builds all the locales that are available on your
+ host-box.
config KEMBTK_UCLIBC_UCLIBC_BUILD_MINIMAL_LOCALE
bool "Only selected locales"
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
help
- If you do not need all locales that are available on your
- host-box, then set this to 'Y'.
+ If you do not need all locales that are available on your
+ host-box, then set this to 'Y'.
config KEMBTK_UCLIBC_UCLIBC_PREGENERATED_LOCALE_DATA
bool "Use Pre-generated Locale Data"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
help
- Use pre-built locale data.
+ Use pre-built locale data.
- Note that these pregenerated locales are sensitive to your
- target architecture (endianess, bitcount).
+ Note that these pregenerated locales are sensitive to your
+ target architecture (endianess, bitcount).
+
+ Saying N here is highly recommended.
- Saying N here is highly recommended.
endchoice
config KEMBTK_UCLIBC_UCLIBC_BUILD_MINIMAL_LOCALES
string "locales to use"
depends on KEMBTK_UCLIBC_UCLIBC_BUILD_MINIMAL_LOCALE
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
default "en_US"
help
- Space separated list of locales to use.
- E.g.:
- en_US en_GB de_AT
- default:
- en_US
+ Space separated list of locales to use.
+
+ E.g.:
+ en_US en_GB de_AT
+ default:
+ en_US
config KEMBTK_UCLIBC_UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
bool "Automagically Download the Pre-generated Locale Data (if necessary)"
depends on KEMBTK_UCLIBC_UCLIBC_PREGENERATED_LOCALE_DATA
help
- If you would like the build process to use 'wget' to
- automatically download the pregenerated locale data, enable this
- option. Otherwise you will need to obtain the locale data
- yourself from:
+ If you would like the build process to use 'wget' to automatically
+ download the pregenerated locale data, enable this option. Otherwise
+ you will need to obtain the locale data yourself from:
http://www.uclibc.org/downloads/uClibc-locale-*.tgz
- and place the uClibc-locale-*.tgz tarball in the extra/locale/
- directory.
+ and place the uClibc-locale-*.tgz tarball in the extra/locale/
+ directory.
- Just say N here.
+ Note that the use of pregenerated locale data is discouraged.
config KEMBTK_UCLIBC_UCLIBC_HAS_XLOCALE
bool "Extended Locale Support (experimental/incomplete)"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
help
- Answer Y to enable extended locale support similar to that
- provided by glibc. This is primarily intended to support
- libstd++ functionality.
- However, it also allows thread-specific locale selection via
- uselocale().
+ Answer Y to enable extended locale support similar to that provided
+ by glibc. This is primarily intended to support libstd++
+ functionality.
+ However, it also allows thread-specific locale selection via
+ uselocale().
- Most people will answer N.
+ Most people will answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_HEXADECIMAL_FLOATS
bool "Support hexadecimal float notation"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_CTYPE_TABLES
depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- default n
help
Answer Y to enable support for hexadecimal float notation in the
(wchar and) char string to floating point conversion functions, as
@@ -1647,7 +1333,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GLIBC_DIGIT_GROUPING
bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE
depends on KEMBTK_UCLIBC_UCLIBC_HAS_FLOATS
- default n
help
Answer Y to enable support for glibc's \"'\" flag for allowing
locale-specific digit grouping in base 10 integer conversions and
@@ -1672,10 +1357,10 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
config KEMBTK_UCLIBC_UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
bool "Support glibc's register_printf_function() (glibc-compat)"
depends on !KEMBTK_UCLIBC_USE_OLD_VFPRINTF
- default n
help
Answer Y to support glibc's register_printf_function() to allow an
application to add its own printf conversion specifiers.
+ parse_printf_format() is also enabled.
NOTE: Limits the number or registered specifiers to 10.
NOTE: Requires new conversion specifiers to be ASCII
@@ -1687,7 +1372,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
config KEMBTK_UCLIBC_USE_OLD_VFPRINTF
bool "Use the old vfprintf implementation"
depends on !KEMBTK_UCLIBC_UCLIBC_HAS_WCHAR
- default n
help
Set to true to use the old vfprintf instead of the new. This is
roughly C89 compliant with some extensions, and is much smaller.
@@ -1716,7 +1400,6 @@ config KEMBTK_UCLIBC_UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
config KEMBTK_UCLIBC_UCLIBC_HAS_SCANF_GLIBC_A_FLAG
bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
- default n
help
NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
@@ -1729,7 +1412,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SCANF_GLIBC_A_FLAG
choice
prompt "Stdio buffer size"
- default KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_BUFSIZ_4096
help
Please select a value for BUFSIZ. This will be used by the
stdio subsystem as the default buffer size for a file, and
@@ -1768,7 +1450,6 @@ endchoice
choice
prompt "Stdio builtin buffer size (uClibc-specific)"
depends on !KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_BUFSIZ_NONE
- default KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
help
When a FILE is created with fopen(), an attempt is made to allocate
a BUFSIZ buffer for it. If the allocation fails, fopen() will still
@@ -1794,7 +1475,6 @@ endchoice
config KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
bool "Attempt to shutdown stdio subsystem when abort() is called."
- default n
help
ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was
a behavioral change made in SUSv3. Previously, abort() was required
@@ -1836,14 +1516,13 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
fflush function or to a file positioning function (fseek, fsetpos,
or rewind), and input shall not be directly followed by output without
an intervening call to a file positioning function, unless the input
- operation encounters end­of­file.
+ operation encounters end­of­file.
Most people will answer Y.
config KEMBTK_UCLIBC_UCLIBC_HAS_FOPEN_LARGEFILE_MODE
bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_LFS
- default n
help
Answer Y to enable a uClibc-specific extension to allow passing an
additional 'F' flag in the mode string for fopen() to specify that
@@ -1853,7 +1532,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_FOPEN_LARGEFILE_MODE
config KEMBTK_UCLIBC_UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
- default n
help
Answer Y to support a glibc extension to allow passing
additional 'x' flag in the mode string for fopen() to specify that
@@ -1863,7 +1541,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
config KEMBTK_UCLIBC_UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
- default n
help
Answer Y to support the glibc 'custom stream' extension functions
fmemopen(), open_memstream(), and fopencookie().
@@ -1874,7 +1551,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
config KEMBTK_UCLIBC_UCLIBC_HAS_PRINTF_M_SPEC
bool "Support the '%m' specifier in printf format strings (glibc-compat)"
- default n
help
Answer Y to support a glibc extension to interpret '%m' in printf
format strings as an instruction to output the error message string
@@ -1896,7 +1572,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_ERRNO_MESSAGES
config KEMBTK_UCLIBC_UCLIBC_HAS_SYS_ERRLIST
bool "Support sys_errlist[] (obsolete-compat)"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_ERRNO_MESSAGES
- default n
help
Answer Y if you want to support the obsolete sys_errlist[].
This adds about 0.5k to the library, except for the mips
@@ -1923,7 +1598,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SIGNUM_MESSAGES
config KEMBTK_UCLIBC_UCLIBC_HAS_SYS_SIGLIST
bool "Support sys_siglist[] (bsd-compat)"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_SIGNUM_MESSAGES
- default n
help
Answer Y if you want to support sys_siglist[].
@@ -1935,9 +1609,7 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SYS_SIGLIST
config KEMBTK_UCLIBC_UCLIBC_HAS_GETTEXT_AWARENESS
bool "Include gettext awareness"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE \
- && KEMBTK_UCLIBC_UCLIBC_MJN3_ONLY
- default n
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_LOCALE && KEMBTK_UCLIBC_UCLIBC_MJN3_ONLY
help
NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
@@ -1958,6 +1630,13 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GNU_GETOPT
Most people will answer Y.
+config KEMBTK_UCLIBC_UCLIBC_HAS_STDIO_FUTEXES
+ bool "Use futexes for multithreaded I/O locking"
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_THREADS_NATIVE
+ help
+ If you want to compile uClibc to use futexes for low-level
+ I/O locking, answer Y. Otherwise, answer N.
+
config KEMBTK_UCLIBC_UCLIBC_HAS_GETOPT_LONG
bool "Support getopt_long/getopt_long_only"
depends on !KEMBTK_UCLIBC_UCLIBC_HAS_GNU_GETOPT
@@ -1976,6 +1655,8 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GNU_GETSUBOPT
smaller SUSv3 compatible getsubopt().
Most people will answer Y.
+
+
comment "----------------"
comment "Big and Tall"
comment "----------------"
@@ -2029,33 +1710,44 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_WORDEXP
bool "Support the wordexp() interface"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_GLOB
help
- The SuSv3 wordexp() interface performs word expansions per the
- Shell and Utilities volume of IEEE Std 1003.1-2001, Section 2.6.
- It is intended for use by applications that want to implement
- all of the standard Bourne shell expansions on input data.
+ The SuSv3 wordexp() interface performs word expansions per the Shell
+ and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
+ intended for use by applications that want to implement all of the
+ standard Bourne shell expansions on input data.
- This interface is rarely used, and very large. Unless you have a
- pressing need for wordexp(), you should probably answer N.
+ This interface is rarely used, and very large. Unless you have a
+ pressing need for wordexp(), you should probably answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_NFTW
bool "Support the nftw() interface"
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
help
- The SuSv3 nftw() interface is used to recursively descend
- directory paths while repeatedly calling a function.
+ The SuSv3 nftw() interface is used to recursively descend
+ directory paths while repeatedly calling a function.
- This interface is rarely used, and adds around 4.5k. Unless you
- have a pressing need for nftw(), you should probably answer N.
+ This interface is rarely used, and adds around 4.5k. Unless you have
+ a pressing need for nftw(), you should probably answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_FTW
- bool "Support the ftw() and nftw() interfaces"
- default n
+ bool "Support the ftw() interface"
+ depends on KEMBTK_UCLIBC_UCLIBC_SUSV4_LEGACY
help
- The SuSv3 ftw() and nftw() interfaces are used to recursively descend
+ The SuSv3 ftw() interface is used to recursively descend
directory paths while repeatedly calling a function.
This interface is rarely used, and adds around 4.5k. Unless you have
- a pressing need for ftw() or nftw(), you should probably answer N.
+ a pressing need for ftw(), you should probably answer N.
+
+config KEMBTK_UCLIBC_UCLIBC_HAS_FTS
+ bool "Support the fts() interface (bsd-compat)"
+ help
+ The fts functions are provided for traversing UNIX file hierarchies.
+
+ This interface is currently used by the elfutils and adds
+ around 7.5k.
+ You should port your application to use the POSIX nftw()
+ interface.
+
+ Unless you need to build/use elfutils, you should prolly answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_GLOB
bool "Support the glob() interface"
@@ -2072,7 +1764,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GLOB
config KEMBTK_UCLIBC_UCLIBC_HAS_GNU_GLOB
bool "Support gnu glob() interface"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_GLOB
- default n
help
The gnu glob interface is somewhat larger (weighing in at about 4,2k)
than it's SuSv3 counterpart (and is out of date). It is an old copy
@@ -2084,42 +1775,29 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_GNU_GLOB
Most people will answer N.
config KEMBTK_UCLIBC_UCLIBC_HAS_UTMPX
- bool "utmpx based support for tracking login/logouts to/from the system"
- depends on EMBTK_UCLIBC_VERSION_SERIES_1_0_X
- help
- Answer y to enable support for accessing user accounting
- database. It can be used to track all login/logout to the
- system.
- If unsure, just answer N.
+ bool "utmpx based support for tracking login/logouts to/from the system"
+ help
+ Answer y to enable support for accessing user accounting database.
+ It can be used to track all login/logout to the system.
+
+ If unsure, just answer N.
-comment "----------------"
-comment "Library Installation Options"
-comment "----------------"
-config KEMBTK_UCLIBC_SHARED_LIB_LOADER_PREFIX
- string
- depends on KEMBTK_UCLIBC_HAVE_SHARED
- default "$(RUNTIME_PREFIX)lib"
- help
- When using shared libraries, this path is the location where the
- shared library will be invoked. This value will be compiled into
- every binary compiled with uClibc.
- For a typical target system this should be set to "/lib", such that
- 'make install' will install /lib/ld-uClibc.so.0.
- BIG FAT WARNING:
- If you do not have a shared library loader with the correct name
- sitting in the directory this points to, your binaries will not
- run.
+
+
+#comment "----------------"
+#comment "Library Installation Options"
+#comment "----------------"
config KEMBTK_UCLIBC_RUNTIME_PREFIX
string
- default "/usr/$(TARGET_ARCH)-linux-uclibc/"
+ default "/usr/$(KEMBTK_UCLIBC_TARGET_ARCH)-linux-uclibc/"
help
- RUNTIME_PREFIX is the directory into which the uClibc runtime
+ KEMBTK_UCLIBC_RUNTIME_PREFIX is the directory into which the uClibc runtime
libraries will be installed. The result will look something
like the following:
- $(RUNTIME_PREFIX)/
+ $(KEMBTK_UCLIBC_RUNTIME_PREFIX)/
lib/ <contains all runtime libraries>
usr/bin/ldd <the ldd utility program>
sbin/ldconfig <the ldconfig utility program>
@@ -2132,12 +1810,12 @@ config KEMBTK_UCLIBC_RUNTIME_PREFIX
config KEMBTK_UCLIBC_DEVEL_PREFIX
string
- default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
+ default "/usr/$(KEMBTK_UCLIBC_TARGET_ARCH)-linux-uclibc/usr/"
help
- DEVEL_PREFIX is the directory into which the uClibc development
+ KEMBTK_UCLIBC_DEVEL_PREFIX is the directory into which the uClibc development
environment will be installed. The result will look something
like the following:
- $(DEVEL_PREFIX)/
+ $(KEMBTK_UCLIBC_DEVEL_PREFIX)/
lib/ <contains static libs>
include/ <Where all the header files go>
This value is used by the 'make install' Makefile target when
@@ -2150,34 +1828,36 @@ config KEMBTK_UCLIBC_MULTILIB_DIR
string
default "lib"
help
- Path component where libraries reside.
- For a typical target system this should be set to "lib",
- such that 'make install' will install libraries to
- "/lib" and "/usr/lib" respectively
- DEVEL_PREFIX/MULTILIB_DIR
- RUNTIME_PREFIX/MULTILIB_DIR
- Other settings may include "lib32" or "lib64".
+ Path component where libraries reside.
+
+ For a typical target system this should be set to "lib", such that
+ 'make install' will install libraries to "/lib" and "/usr/lib"
+ respectively
+ KEMBTK_UCLIBC_DEVEL_PREFIX/MULTILIB_DIR
+ KEMBTK_UCLIBC_RUNTIME_PREFIX/MULTILIB_DIR
+
+ Other settings may include "lib32" or "lib64".
config KEMBTK_UCLIBC_HARDWIRED_ABSPATH
- bool "Hardwire absolute paths into linker scripts"
- depends on EMBTK_UCLIBC_VERSION_SERIES_0_9_31_X
+ bool
default y
help
- This prepends absolute paths to the libraries mentioned in
- linker scripts such as libc.so.
+ This prepends absolute paths to the libraries mentioned in linker
+ scripts such as libc.so.
+
+ This is a build time optimization. It has no impact on dynamic
+ linking at runtime, which doesn't use linker scripts.
+
+ You must disable this to use uClibc with old non-sysroot toolchains,
+ such as the prebuilt binary cross compilers at:
+ http://uclibc.org/downloads/binaries
- This is a build time optimization. It has no impact on dynamic
- linking at runtime, which doesn't use linker scripts.
+ The amount of time saved by this optimization is actually too small to
+ measure. The linker just had to search the library path to find the
+ linker script, so the dentries are cache hot if it has to search the
+ same path again. But it's what glibc does, so we do it too.
- You must disable this to use uClibc with old non-sysroot
- toolchains, such as the prebuilt binary cross compilers at:
- http://uclibc.org/downloads/binaries
- The amount of time saved by this optimization is actually too
- small to measure. The linker just had to search the library path
- to find the linker script, so the dentries are cache hot if it
- has to search the same path again. But it's what glibc does,
- so we do it too.
comment "----------------"
comment "Security options"
@@ -2186,11 +1866,8 @@ comment "----------------"
config KEMBTK_UCLIBC_UCLIBC_BUILD_PIE
bool "Build utilities as ET_DYN/PIE executables"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- depends on KEMBTK_UCLIBC_TARGET_arm || KEMBTK_UCLIBC_TARGET_frv \
- || KEMBTK_UCLIBC_TARGET_i386 || KEMBTK_UCLIBC_TARGET_mips \
- || KEMBTK_UCLIBC_TARGET_powerpc
+ depends on KEMBTK_UCLIBC_TARGET_arm || KEMBTK_UCLIBC_TARGET_frv || KEMBTK_UCLIBC_TARGET_i386 || KEMBTK_UCLIBC_TARGET_mips || KEMBTK_UCLIBC_TARGET_powerpc
select KEMBTK_UCLIBC_FORCE_SHAREABLE_TEXT_SEGMENTS
- default n
help
If you answer Y here, ldd and iconv are built as ET_DYN/PIE
executables.
@@ -2198,14 +1875,13 @@ config KEMBTK_UCLIBC_UCLIBC_BUILD_PIE
It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
- WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so
+ WARNING: This option also enables KEMBTK_UCLIBC_FORCE_SHAREABLE_TEXT_SEGMENTS, so
all libraries have to be built with -fPIC or -fpic, and all
assembler functions must be written as position independent
code (PIC).
config KEMBTK_UCLIBC_UCLIBC_HAS_ARC4RANDOM
bool "Include the arc4random() function"
- default n
help
Answer Y to support the OpenBSD-like arc4random() function. This
function picks a random number between 0 and N, and will always return
@@ -2218,12 +1894,10 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_ARC4RANDOM
config KEMBTK_UCLIBC_HAVE_NO_SSP
bool
- default n
config KEMBTK_UCLIBC_UCLIBC_HAS_SSP
bool "Support for GCC stack smashing protector"
depends on !KEMBTK_UCLIBC_HAVE_NO_SSP
- default n
help
Add code to support GCC's -fstack-protector[-all] option to uClibc.
This requires GCC 4.1 or newer. GCC does not have to provide libssp,
@@ -2244,7 +1918,6 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SSP
config KEMBTK_UCLIBC_UCLIBC_HAS_SSP_COMPAT
bool "Support for gcc-3.x propolice smashing stack protector"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_SSP
- default n
help
Add gcc-3.x propolice smashing stack protector to the library.
@@ -2261,19 +1934,16 @@ config KEMBTK_UCLIBC_UCLIBC_HAS_SSP_COMPAT
config KEMBTK_UCLIBC_SSP_QUICK_CANARY
bool "Use simple guard values without accessing /dev/urandom"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_SSP
- default n
help
Use gettimeofday(2) to define the __guard without accessing
/dev/urandom.
WARNING: This makes smashing stack protector vulnerable to timing
- attacks.
+ attacks.
Most people will answer N.
choice
prompt "Propolice protection blocking signal"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_SSP
- default KEMBTK_UCLIBC_PROPOLICE_BLOCK_ABRT if ! KEMBTK_UCLIBC_DODEBUG
- default KEMBTK_UCLIBC_PROPOLICE_BLOCK_SEGV if KEMBTK_UCLIBC_DODEBUG
help
"abort" use SIGABRT to block offending programs.
This is the default implementation.
@@ -2294,7 +1964,6 @@ endchoice
config KEMBTK_UCLIBC_UCLIBC_BUILD_SSP
bool "Build uClibc with -fstack-protector"
depends on KEMBTK_UCLIBC_UCLIBC_HAS_SSP
- default n
help
Build all uClibc libraries and executables with -fstack-protector,
adding extra stack overflow checking to most uClibc functions.
@@ -2324,7 +1993,6 @@ config KEMBTK_UCLIBC_UCLIBC_BUILD_RELRO
config KEMBTK_UCLIBC_UCLIBC_BUILD_NOW
bool "Build uClibc with linker option -z NOW"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default n
help
Build all libraries and executables with "ld -z now".
@@ -2361,6 +2029,7 @@ config KEMBTK_UCLIBC_UCLIBC_BUILD_NOEXECSTACK
You should probably say Y.
+
comment "----------------"
comment "uClibc development/debugging options"
comment "----------------"
@@ -2381,7 +2050,6 @@ config KEMBTK_UCLIBC_UCLIBC_EXTRA_CFLAGS
config KEMBTK_UCLIBC_DODEBUG
bool "Build uClibc with debugging symbols"
- default n
select KEMBTK_UCLIBC_EXTRA_WARNINGS
help
Say Y here if you wish to compile uClibc with debugging symbols.
@@ -2394,9 +2062,7 @@ config KEMBTK_UCLIBC_DODEBUG
config KEMBTK_UCLIBC_DODEBUG_PT
bool "Build pthread with debugging output"
- depends on KEMBTK_UCLIBC_UCLIBC_HAS_THREADS \
- && KEMBTK_UCLIBC_LINUXTHREADS_OLD
- default n
+ depends on KEMBTK_UCLIBC_UCLIBC_HAS_THREADS && KEMBTK_UCLIBC_LINUXTHREADS_OLD
help
Enable debug output in libpthread. This is only useful when doing
development in libpthread itself.
@@ -2415,7 +2081,6 @@ config KEMBTK_UCLIBC_DOSTRIP
config KEMBTK_UCLIBC_DOASSERTS
bool "Build uClibc with run-time assertion testing"
- default n
help
Say Y here to include runtime assertion tests.
This enables runtime assertion testing in some code, which can
@@ -2425,7 +2090,6 @@ config KEMBTK_UCLIBC_DOASSERTS
config KEMBTK_UCLIBC_SUPPORT_LD_DEBUG
bool "Build the shared library loader with debugging support"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default n
help
Answer Y here to enable all the extra code needed to debug the uClibc
native shared library loader. The level of debugging noise that is
@@ -2461,7 +2125,6 @@ config KEMBTK_UCLIBC_SUPPORT_LD_DEBUG
config KEMBTK_UCLIBC_SUPPORT_LD_DEBUG_EARLY
bool "Build the shared library loader with early debugging support"
depends on KEMBTK_UCLIBC_HAVE_SHARED
- default n
help
Answer Y here to if you find the uClibc shared library loader is
crashing or otherwise not working very early on. This is typical
@@ -2475,13 +2138,12 @@ config KEMBTK_UCLIBC_SUPPORT_LD_DEBUG_EARLY
config KEMBTK_UCLIBC_UCLIBC_MALLOC_DEBUGGING
bool "Build malloc with debugging support"
depends on KEMBTK_UCLIBC_MALLOC || KEMBTK_UCLIBC_MALLOC_STANDARD
- default n
help
Answer Y here to compile extra debugging support code into malloc.
Malloc debugging output may then be enabled at runtime using the
- MALLOC_DEBUG environment variable.
+ KEMBTK_UCLIBC_MALLOC_DEBUG environment variable.
- The value of MALLOC_DEBUG should be an integer, which is interpreted
+ The value of KEMBTK_UCLIBC_MALLOC_DEBUG should be an integer, which is interpreted
as a bitmask with the following bits:
1 - do extra consistency checking
2 - output messages for malloc/free calls and OS
@@ -2493,6 +2155,24 @@ config KEMBTK_UCLIBC_UCLIBC_MALLOC_DEBUGGING
Because this increases the size of malloc appreciably (due to strings
etc), you should say N unless you need to debug a malloc problem.
+config KEMBTK_UCLIBC_UCLIBC_HAS_BACKTRACE
+ bool "Add support for application self-debugging"
+ depends on KEMBTK_UCLIBC_HAVE_SHARED
+ help
+ Answer Y here to compile support for application self-debugging, by adding
+ a new shared object "libubacktrace.so" that provides the following new
+ functions:
+ backtrace, backtrace_symbols, backtrace_symbols_fd
+
+ The backtrace functionality is currently supported on SH platform, and it
+ based on dwarf2 informations to properly work, so any application that
+ want to use backtrace needs to be built with -fexceptions flag.
+
+ The symbol names may be unavailable without the use of special linker
+ options. For systems using the GNU linker, it is necessary to use the
+ -rdynamic linker option too. Note that names of "static" functions are not
+ exposed, and won't be available in the backtrace.
+
config KEMBTK_UCLIBC_WARNINGS
string "Compiler Warnings"
default "-Wall"
@@ -2501,13 +2181,11 @@ config KEMBTK_UCLIBC_WARNINGS
config KEMBTK_UCLIBC_EXTRA_WARNINGS
bool "Enable extra annoying warnings"
- default n
help
If you wish to build with extra warnings enabled, say Y here.
config KEMBTK_UCLIBC_DOMULTI
bool "Compile all sources at once into an object"
- default n
help
Set this to compile all sources at once into an object (IMA).
This mode of compilation uses alot of memory but may produce
@@ -2520,7 +2198,6 @@ config KEMBTK_UCLIBC_DOMULTI
config KEMBTK_UCLIBC_UCLIBC_MJN3_ONLY
bool "Manuel's hidden warnings"
- default n
help
Answer Y here to see all Manuel's personal notes, warnings, and todos.