linux/scripts/kconfig
Sam Ravnborg 84062dd3a6 kconfig: fix savedefconfig with choice marked optional
savedefconfig failed to save the correct minimal config
when it encountered a choice marked optional.

Consider following minimal configuration:
$cat Kconfig
choice
	prompt "choice"
	optional

config A
	bool "a"

config B
	bool "b"

endchoice

$cat .config | grep -v ^#
CONFIG_A=y

$conf --savedefconfig=defconfig Kconfig

would before this fix result in an empty file, because
kconfig would assume that CONFIG_A=y is a default value.
But because the choice is optional the default is that
both A and B are =n.

Fix so we handle optional choices correct.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2010-08-15 00:32:12 +02:00
..
lxdialog menuconfig: truncate list items 2010-06-03 13:41:02 +02:00
.gitignore
check.sh
conf.c kconfig: Fix warning: ignoring return value of 'fgets' 2010-08-13 00:40:35 +02:00
confdata.c kconfig: fix savedefconfig with choice marked optional 2010-08-15 00:32:12 +02:00
expr.c kconfig: Fix warning: ignoring return value of 'fwrite' 2010-08-13 00:40:26 +02:00
expr.h kconfig: save location of config symbols 2010-08-03 13:49:31 +02:00
gconf.c gconfig: fix null pointer warning 2010-06-02 15:10:33 +02:00
gconf.glade gconfig: add support to show hidden options that have prompts 2010-04-14 15:34:19 +02:00
images.c
kconfig_load.c
kxgettext.c
lex.zconf.c_shipped
lkc_proto.h kconfig: add savedefconfig 2010-08-03 13:49:32 +02:00
lkc.h kconfig: Fix warning: ignoring return value of 'fgets' 2010-08-13 00:40:35 +02:00
Makefile Merge commit 'v2.6.35' into kbuild/kconfig 2010-08-04 14:05:07 +02:00
mconf.c menuconfig: improive help text a bit 2010-06-02 15:10:32 +02:00
menu.c kconfig: save location of config symbols 2010-08-03 13:49:31 +02:00
nconf.c nconfig: Fix segfault when menu is empty 2010-08-13 00:34:15 +02:00
nconf.gui.c nconfig: Fix segfault when help contains special characters 2010-07-23 11:23:42 +02:00
nconf.h
POTFILES.in
qconf.cc xconfig: add support to show hidden options which have prompts 2010-06-02 15:10:33 +02:00
qconf.h xconfig: add support to show hidden options which have prompts 2010-06-02 15:10:33 +02:00
streamline_config.pl kconfig: Hide error output in find command in streamline_config.pl 2010-05-28 10:34:41 -04:00
symbol.c kconfig: add savedefconfig 2010-08-03 13:49:32 +02:00
util.c Merge branch 'for-35' of git://repo.or.cz/linux-kbuild 2010-06-01 08:55:52 -07:00
zconf.gperf
zconf.hash.c_shipped
zconf.l
zconf.tab.c_shipped kconfig: fix zconfdump() 2010-04-14 15:34:18 +02:00
zconf.y kconfig: fix zconfdump() 2010-04-14 15:34:18 +02:00