Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757274Ab0HNWlL (ORCPT ); Sat, 14 Aug 2010 18:41:11 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44064 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757105Ab0HNWlK (ORCPT ); Sat, 14 Aug 2010 18:41:10 -0400 Message-ID: <4C671B84.1090801@suse.cz> Date: Sun, 15 Aug 2010 00:41:08 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6 MIME-Version: 1.0 To: Sam Ravnborg Cc: linux-kbuild , lkml Subject: Re: [PATCH] kconfig: fix savedefconfig with choice marked optional References: <20100814212900.GA29962@merkur.ravnborg.org> In-Reply-To: <20100814212900.GA29962@merkur.ravnborg.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1320 Lines: 48 Dne 14.8.2010 23:29, Sam Ravnborg napsal(a): > From db5b47421d4e9c2f3a35bc3aaa4a1423b767e00a Mon Sep 17 00:00:00 2001 > From: Sam Ravnborg > 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 > --- > 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/