kconfig: remove useless 'default n'

kconfig bools are disabled by default, so specifying 'default n' is useless and
noisy. This patch removes all occurrences of 'default n'.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
This commit is contained in:
Benoît THÉBAUDEAU" 2011-05-31 16:27:39 +02:00
parent 8f32ebcc88
commit 96245813d8
32 changed files with 8 additions and 120 deletions

View File

@ -28,7 +28,6 @@ endchoice
config ARCH_ARM_INTERWORKING
bool
prompt "Use Thumb-interworking (READ HELP)"
default n
depends on EXPERIMENTAL
help
Excerpt from the gcc manual:

View File

@ -3,7 +3,6 @@
config ARCH_POWERPC_SPE
bool
prompt "Enable SPE support"
default n
help
Add support for the Signal Processing Engine. This will set up
the toolchain so that it supports the SPE ABI extensions. This

View File

@ -6,8 +6,7 @@ config IS_A_BACKEND
config BACKEND
bool
default y if IS_A_BACKEND = "y" || IS_A_BACKEND = "Y"
default n if IS_A_BACKEND != "y" && IS_A_BACKEND != "Y"
default y if IS_A_BACKEND = "y" || IS_A_BACKEND = "Y"
config BACKEND_ARCH
string

View File

@ -211,7 +211,6 @@ config BINUTILS_FOR_TARGET
prompt "binutils libraries for the target"
depends on ! BARE_METAL
depends on ! BACKEND
default n
help
Some utilities may need binutils libraries to be available on
the target, eg. oprofile.

View File

@ -33,7 +33,6 @@ comment "Additional supported languages:"
config CC_LANG_CXX
bool
prompt "C++"
default n
depends on CC_SUPPORT_CXX
help
Enable building a C++ compiler.
@ -46,7 +45,6 @@ if ! BARE_METAL
config CC_LANG_FORTRAN
bool
prompt "Fortran"
default n
depends on CC_SUPPORT_FORTRAN
help
Enable building a FORTRAN compiler.
@ -57,7 +55,6 @@ config CC_LANG_FORTRAN
config CC_LANG_JAVA
bool
prompt "Java"
default n
depends on CC_SUPPORT_JAVA
help
Enable building a Java compiler.
@ -68,7 +65,6 @@ config CC_LANG_JAVA
config CC_LANG_ADA
bool
prompt "ADA (EXPERIMENTAL)"
default n
depends on CC_SUPPORT_ADA
depends on EXPERIMENTAL
help
@ -80,7 +76,6 @@ config CC_LANG_ADA
config CC_LANG_OBJC
bool
prompt "Objective-C (EXPERIMENTAL)"
default n
depends on CC_SUPPORT_OBJC
depends on EXPERIMENTAL
help
@ -93,7 +88,6 @@ config CC_LANG_OBJCXX
bool
prompt "Objective-C++ (EXPERIMENTAL)"
depends on EXPERIMENTAL
default n
depends on CC_SUPPORT_OBJCXX
help
Enable building an Objective C++ compiler.

View File

@ -186,39 +186,32 @@ endchoice
config CC_GCC_4_2
bool
default n
select CC_GCC_4_2_or_later
config CC_GCC_4_2_or_later
bool
default n
config CC_GCC_4_3
bool
default n
select CC_GCC_4_3_or_later
select CC_GCC_USE_GMP_MPFR
config CC_GCC_4_3_or_later
bool
default n
select CC_GCC_4_2_or_later
config CC_GCC_4_4
bool
default n
select CC_GCC_4_4_or_later
select CC_GCC_USE_GMP_MPFR
select CC_GCC_HAS_GRAPHITE
config CC_GCC_4_4_or_later
bool
default n
select CC_GCC_4_3_or_later
config CC_GCC_4_5
bool
default n
select CC_GCC_4_5_or_later
select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC
@ -227,12 +220,10 @@ config CC_GCC_4_5
config CC_GCC_4_5_or_later
bool
default n
select CC_GCC_4_4_or_later
config CC_GCC_4_6
bool
default n
select CC_GCC_4_6_or_later
select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC
@ -241,12 +232,10 @@ config CC_GCC_4_6
config CC_GCC_4_6_or_later
bool
default n
select CC_GCC_4_5_or_later
config CC_GCC_HAS_GRAPHITE
bool
default n
# The way LTO works is a bit twisted.
# See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
@ -258,7 +247,6 @@ config CC_GCC_HAS_GRAPHITE
# advantage of it
config CC_GCC_HAS_LTO
bool
default n
# Only enable gcc's support for plugins if binutils has it as well
# They are usefull only when doing LTO, but it does no harm enabling
@ -277,24 +265,20 @@ config CC_GCC_GOLD
config CC_GCC_USE_GMP_MPFR
bool
default n
select GMP_NEEDED
select MPFR_NEEDED
config CC_GCC_USE_PPL_CLOOG
bool
default n
select PPL_NEEDED
select CLOOG_NEEDED
config CC_GCC_USE_MPC
bool
default n
select MPC_NEEDED
config CC_GCC_USE_LIBELF
bool
default n
select LIBELF_NEEDED
config CC_VERSION

View File

@ -129,7 +129,6 @@ config CC_GCC_ENABLE_TARGET_OPTSPACE
config CC_GCC_LIBMUDFLAP
bool
prompt "Compile libmudflap"
default n
help
libmudflap is a pointer-use checking tool, which can detect
various mis-usages of pointers in C and (to some extents) C++.
@ -143,7 +142,6 @@ config CC_GCC_LIBMUDFLAP
config CC_GCC_LIBGOMP
bool
prompt "Compile libgomp"
default n
help
libgomp is "the GNU implementation of the OpenMP Application Programming
Interface (API) for multi-platform shared-memory parallel programming in
@ -155,7 +153,6 @@ config CC_GCC_LIBGOMP
config CC_GCC_LIBSSP
bool
prompt "Compile libssp"
default n
help
libssp is the run-time Stack-Smashing Protection library.
@ -177,7 +174,6 @@ config CC_CXA_ATEXIT
config CC_GCC_DISABLE_PCH
bool
prompt "Do not build PCH"
default n
help
Say 'y' here to not use Pre-Compiled Headers in the resulting toolchain.
at the expense of speed when compiling C++ code.

View File

@ -6,47 +6,39 @@ menu "Companion libraries"
config COMPLIBS_NEEDED
bool
default n
config GMP_NEEDED
bool
default n
select GMP
select COMPLIBS_NEEDED
config MPFR_NEEDED
bool
default n
select MPFR
select COMPLIBS_NEEDED
config PPL_NEEDED
bool
default n
select PPL
select COMPLIBS_NEEDED
config CLOOG_NEEDED
bool
default n
select CLOOG
select COMPLIBS_NEEDED
config MPC_NEEDED
bool
default n
select MPC
select COMPLIBS_NEEDED
config LIBELF_NEEDED
bool
default n
select LIBELF
select COMPLIBS_NEEDED
config COMPLIBS
bool
default n
config GMP
bool
@ -112,7 +104,6 @@ comment "Companion libraries common options"
config COMPLIBS_CHECK
bool
prompt "Check the companion libraries builds (!!! READ HELP!!!)"
default n
help
It is highly recommended to check the newly built companion libraries.
Unfortunately, this is a very intensive task, and takes a loooong time.

View File

@ -42,9 +42,7 @@ config PPL_VERSION
# For PPL 0.11, we need to pull libpwl if configured static
config PPL_0_11
bool
default n
select PPL_NEEDS_LIBPWL if ! COMPLIBS_SHARED
config PPL_NEEDS_LIBPWL
bool
default n

View File

@ -106,12 +106,11 @@ define build_gen_choice_in
file="$(4)/$${entry}.in"; \
_entry=$$(echo "$${entry}" |$(sed) -r -s -e 's/[-.+]/_/g;'); \
echo ""; \
if [ "$(5)" = "Y" ]; then \
echo "config $(3)_$${_entry}_AVAILABLE"; \
echo " bool"; \
echo " default n if ! ( BACKEND_$(3) = \"$${entry}\" || BACKEND_$(3) = \"\" || ! BACKEND )"; \
echo " default y if BACKEND_$(3) = \"$${entry}\" || BACKEND_$(3) = \"\" || ! BACKEND"; \
fi; \
if [ "$(5)" = "Y" ]; then \
echo "config $(3)_$${_entry}_AVAILABLE"; \
echo " bool"; \
echo " default y if BACKEND_$(3) = \"$${entry}\" || BACKEND_$(3) = \"\" || ! BACKEND"; \
fi; \
echo "if $(3)_$${_entry}"; \
echo "config $(3)"; \
echo " default \"$${entry}\" if $(3)_$${_entry}"; \

View File

@ -15,7 +15,6 @@ config DUMA_SO
bool
prompt "Build a shared library"
default y if SHARED_LIBS
default n if ! SHARED_LIBS
choice
bool

View File

@ -16,7 +16,6 @@ if GDB_CROSS
config GDB_CROSS_STATIC
bool
prompt "Build a static cross gdb"
default n
help
A static cross gdb can be usefull if you debug on a machine that is
not the one that is used to compile the toolchain.

View File

@ -3,7 +3,6 @@
config GDB_GDBSERVER
bool
prompt "gdbserver"
default n
depends on ! BARE_METAL
help
Build and install a gdbserver for the target, to run on the target.

View File

@ -3,7 +3,6 @@
config GDB_NATIVE
bool
prompt "Native gdb"
default n
depends on ! BARE_METAL
depends on ! BACKEND
help
@ -13,13 +12,11 @@ if GDB_NATIVE
config GDB_NATIVE_NO_STATIC
bool
default n
config GDB_NATIVE_STATIC
bool
prompt "Build a static native gdb"
depends on ! GDB_NATIVE_NO_STATIC
default n
help
In case you have trouble with dynamic loading of shared libraries,
you will find that a static gdb comes in handy.

View File

@ -48,4 +48,3 @@ config LTRACE_VERSION
config LTRACE_0_5_3_or_later
bool
default n

View File

@ -5,7 +5,6 @@ comment "crosstool-NG behavior"
config OBSOLETE
bool
prompt "Use obsolete features"
default n
help
If you set this to Y, you will be able to select obsolete features.
@ -19,7 +18,6 @@ config OBSOLETE
config EXPERIMENTAL
bool
prompt "Try features marked as EXPERIMENTAL"
default n
help
If you set this to Y, then you will be able to try very experimental
features.
@ -34,7 +32,6 @@ config EXPERIMENTAL
config DEBUG_CT
bool
prompt "Debug crosstool-NG"
default n
depends on ! BACKEND
help
Say 'y' here to get some options regarding debugging crosstool-NG.
@ -44,7 +41,6 @@ if DEBUG_CT
config DEBUG_PAUSE_STEPS
bool
prompt "Pause between every steps"
default n
help
Say 'y' if you intend to attend the build, and want to investigate
the result of each steps before running the next one.
@ -52,7 +48,6 @@ config DEBUG_PAUSE_STEPS
config DEBUG_CT_SAVE_STEPS
bool
prompt "Save intermediate steps"
default n
help
If you say 'y' here, then you will be able to restart crosstool-NG at
any step.
@ -80,7 +75,6 @@ config NO_OVERIDE_LC_MESSAGES
bool
prompt "Do *not* overide LC_MESSAGES (EXPERIMENTAL)"
depends on EXPERIMENTAL
default n
help
By default, crosstool-NG sets and exports LC_ALL=C so that the
build.log file contains english messages, that can be read by

View File

@ -5,7 +5,6 @@ comment "Downloading"
config FORBID_DOWNLOAD
bool
prompt "Forbid downloads"
default n
help
Normally, crosstool-NG will try to download missing tarballs (or
checkout from CVS/SVN...).
@ -21,7 +20,6 @@ if ! FORBID_DOWNLOAD
config FORCE_DOWNLOAD
bool
prompt "Force downloads"
default n
help
Force downloading tarballs, even if one already exists.
@ -30,7 +28,6 @@ config FORCE_DOWNLOAD
config USE_MIRROR
bool
prompt "Use a mirror"
default n
help
If you have a machine on your LAN that mirrors some of the needed
tarballs, you can say 'Y' here, and configure adequate values in
@ -45,7 +42,6 @@ if USE_MIRROR
config PREFER_MIRROR
bool
prompt "Prefer the mirror"
default n
help
Say 'Y' here if you prefer the LAN miror over the upstream sources.
@ -94,7 +90,6 @@ config CONNECT_TIMEOUT
config ONLY_DOWNLOAD
bool
prompt "Stop after downloading tarballs"
default n
help
Only download the tarballs. Exit once it done.

View File

@ -5,7 +5,6 @@ comment "Extracting"
config FORCE_EXTRACT
bool
prompt "Force extractions"
default n
help
Force extraction of already exctracted tarballs.
@ -35,7 +34,6 @@ config OVERIDE_CONFIG_GUESS_SUB
config ONLY_EXTRACT
bool
prompt "Stop after extracting tarballs"
default n
help
Exit after unpacking and patching tarballs.
@ -118,11 +116,9 @@ config PATCH_ORDER
config PATCH_SINGLE
bool
default n
config PATCH_USE_LOCAL
bool
default n
config LOCAL_PATCH_DIR
string

View File

@ -59,7 +59,6 @@ config LOG_LEVEL_MAX
config LOG_SEE_TOOLS_WARN
bool
prompt "Warnings from the tools' builds"
default n
depends on ! LOG_ERROR
help
Treat warnings from the different tools as crosstool-NG warnings.

View File

@ -15,7 +15,6 @@ config SAVE_TARBALLS
prompt "Save new tarballs" if ! BACKEND
depends on LOCAL_TARBALLS_DIR != "" || BACKEND
default y if BACKEND
default n if ! BACKEND
help
If you say 'y' here, new downloaded tarballs will be saved in the
directory you entered above.

View File

@ -6,18 +6,15 @@ menu "Operating System"
# we have a kernel or not (there might be different bare metal stuff)...
config BARE_METAL
bool
default n
config MINGW32
bool
default n
# Each target OS (aka kernel) that support shared libraries can select
# this, so the user can decide whether or not to build a shared library
# enabled toolchain
config KERNEL_SUPPORTS_SHARED_LIBS
bool
default n
config KERNEL
string

View File

@ -199,7 +199,6 @@ config KERNEL_LINUX_CUSTOM_PATH
config KERNEL_LINUX_CUSTOM_IS_TARBALL
bool
prompt "This is a tarball"
default n
help
If you say 'n' here, the path above is expected to point to a directory
containing readily prepared headers

View File

@ -23,26 +23,21 @@ source "config.gen/libc.in"
config LIBC_SUPPORT_THREADS_ANY
bool
default n
config LIBC_SUPPORT_NPTL
bool
default n
select LIBC_SUPPORT_THREADS_ANY
config LIBC_SUPPORT_LINUXTHREADS
bool
default n
select LIBC_SUPPORT_THREADS_ANY
config LIBC_SUPPORT_WIN32THREADS
bool
default n
select LIBC_SUPPORT_THREADS_ANY
config LIBC_SUPPORT_THREADS_NONE
bool
default n
config THREADS
string

View File

@ -102,7 +102,6 @@ config EGLIBC_CHECKOUT
bool
prompt "checkout instead of export"
default y if LIBC_EGLIBC_V_TRUNK
default n if ! LIBC_EGLIBC_V_TRUNK
help
By default, the eglibc download will be an export of the subversion
repository. If you say 'y' here, then the repository will instead be
@ -121,7 +120,6 @@ config EGLIBC_OPT_SIZE
config EGLIBC_CUSTOM_CONFIG
bool
prompt "Use custom configuration file"
default n
help
Use a custom configuration file to disable some features in the eglibc
library. The configuration file options are described in detail in the

View File

@ -63,7 +63,6 @@ config LIBC_ENABLE_FORTIFIED_BUILD
bool
prompt "Enable fortified build (EXPERIMENTAL)"
depends on EXPERIMENTAL
default n
help
If you say 'y' here, then glibc will be using fortified versions
of functions with format arguments (eg. vsyslog, printf...), and
@ -83,7 +82,6 @@ config LIBC_ENABLE_FORTIFIED_BUILD
config LIBC_DISABLE_VERSIONING
bool
prompt "Disable symbols versioning"
default n
help
Do not include versioning information in the library objects.
@ -102,7 +100,6 @@ config LIBC_OLDEST_ABI
config LIBC_GLIBC_FORCE_UNWIND
bool
prompt "Force unwind support (READ HELP!)"
default n
help
If your toolchain fails building while building the C library
start files, or the complete C library, with a message like:
@ -117,7 +114,6 @@ config LIBC_GLIBC_FORCE_UNWIND
config LIBC_GLIBC_USE_PORTS
bool
prompt "Use the ports addon"
default n
help
The ports addon contains some architecture ports that are not available
in the official distribution.

View File

@ -3,17 +3,14 @@
config MINGW_DIRECTX
bool
prompt "Include DirectX development files"
default n
config MINGW_OPENGL
bool
prompt "Include OpenGL development files"
default n
config MINGW_PDCURSES
bool
prompt "Include PDCurses (NCurses library) development files"
default n
choice
bool
@ -45,7 +42,6 @@ config MINGW_PDCURSES_VERSION
config MINGW_GNURX
bool
prompt "Include GnuRX (regex library) development files"
default n
choice
bool

View File

@ -3,21 +3,18 @@
config LIBC_NEWLIB_IO_C99FMT
bool
prompt "Enable IOs on C99 formats"
default n
help
Enable support for IOs on C99 formats.
config LIBC_NEWLIB_IO_LL
bool
prompt "Enable IOs on long long"
default n
help
Enable support for IOs on long long integers.
config LIBC_NEWLIB_IO_FLOAT
bool
prompt "Enable IOs on floats and doubles"
default n
help
Enable support for IOs on floating point
values (float and double).
@ -25,7 +22,6 @@ config LIBC_NEWLIB_IO_FLOAT
config LIBC_NEWLIB_IO_LDBL
bool
prompt "Enable IOs on long doubles"
default n
depends on LIBC_NEWLIB_IO_FLOAT
help
Enable support for IOs on long doubles.

View File

@ -87,12 +87,10 @@ config LIBC_VERSION
config LIBC_UCLIBC_0_9_30_or_later
bool
default n
select LIBC_UCLIBC_PARALLEL
config LIBC_UCLIBC_PARALLEL
bool
default n
choice
bool

View File

@ -41,7 +41,6 @@ config LIBC_UCLIBC_LOCALES
bool
select LIBC_UCLIBC_WCHAR
prompt "Add support for locales"
default n
help
Say y if you want uClibc to support localisation.
@ -62,7 +61,6 @@ config LIBC_UCLIBC_LOCALES_PREGEN_DATA
config LIBC_UCLIBC_WCHAR
bool
prompt "Add support for WCHAR"
default n
help
Say y if you want uClibc to support WCHAR.

View File

@ -44,16 +44,13 @@ comment "Generic target options"
config ARCH_SUPPORTS_BOTH_MMU
bool
default n
config ARCH_DEFAULT_HAS_MMU
bool
default n
config ARCH_USE_MMU
bool
prompt "Use the MMU" if ARCH_SUPPORTS_BOTH_MMU
default n if ! ARCH_DEFAULT_HAS_MMU
default y if ARCH_DEFAULT_HAS_MMU
help
If your architecture has an MMU and you want to use it,
@ -69,15 +66,12 @@ config ARCH_USE_MMU
#--------------------------------------
config ARCH_SUPPORTS_BOTH_ENDIAN
bool
default n
config ARCH_DEFAULT_BE
bool
default n
config ARCH_DEFAULT_LE
bool
default n
choice
bool
@ -99,19 +93,15 @@ endchoice
#--------------------------------------
config ARCH_SUPPORTS_32
bool
default n
config ARCH_SUPPORTS_64
bool
default n
config ARCH_DEFAULT_32
bool
default n
config ARCH_DEFAULT_64
bool
default n
config ARCH_BITNESS
int
@ -141,23 +131,18 @@ comment "Target optimisations"
config ARCH_SUPPORT_ARCH
bool
default n
config ARCH_SUPPORT_ABI
bool
default n
config ARCH_SUPPORT_CPU
bool
default n
config ARCH_SUPPORT_TUNE
bool
default n
config ARCH_SUPPORT_FPU
bool
default n
config ARCH_ARCH
string

View File

@ -6,13 +6,11 @@ menu "Test suite"
config TEST_SUITE
bool
default n
config TEST_SUITE_GCC
bool
prompt "GCC test suite"
depends on EXPERIMENTAL
default n
select TEST_SUITE
help
Select this option to install the GCC test suite in $CT_PREFIX_DIR/test_suite.
@ -22,7 +20,7 @@ config TEST_SUITE_GCC
For some tests a network enabled target with ssh server is required.
A helper Makefile is provided for running the tests - please see the included
A helper Makefile is provided for running the tests - please see the included
README for information on how to run the test suite.
endmenu

View File

@ -5,7 +5,6 @@ comment "General toolchain options"
config FORCE_SYSROOT
bool
default y if !OBSOLETE
default n if OBSOLETE
select USE_SYSROOT
config USE_SYSROOT
@ -51,7 +50,6 @@ config STATIC_TOOLCHAIN
bool
prompt "Build Static Toolchain (EXPERIMENTAL)"
depends on EXPERIMENTAL
default n
help
Build static host binaries.
@ -169,7 +167,7 @@ config TOOLCHAIN_TYPE
comment "Build system"
config BUILD
config BUILD
string
prompt "| Tuple (READ HELP!)"
default ""