Dne 14.8.2010 23:29, Sam Ravnborg napsal(a): > From db5b47421d4e9c2f3a35bc3aaa4a1423b767e00a Mon Sep 17 00:00:00 2001 > From: Sam Ravnborg <sam@xxxxxxxxxxxx> > Date: Sat, 14 Aug 2010 23:22:16 +0200 > Subject: [PATCH] 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@xxxxxxxxxxxx> > --- > scripts/kconfig/confdata.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) Applied to kbuild/kconfg. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html