From: Sam Ravnborg Date: Sat, 14 Aug 2010 21:22:16 +0000 (+0200) Subject: kconfig: fix savedefconfig with choice marked optional X-Git-Tag: v2.6.36-rc3~45^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84062dd3a6a045395a43de1d9adc9b8eb2d1426e;p=pandora-kernel.git 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 Signed-off-by: Michal Marek --- Reading git-diff-tree failed