[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4C671B84.1090801@suse.cz>
Date: Sun, 15 Aug 2010 00:41:08 +0200
From: Michal Marek <mmarek@...e.cz>
To: Sam Ravnborg <sam@...nborg.org>
Cc: linux-kbuild <linux-kbuild@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kconfig: fix savedefconfig with choice marked optional
Dne 14.8.2010 23:29, Sam Ravnborg napsal(a):
> From db5b47421d4e9c2f3a35bc3aaa4a1423b767e00a Mon Sep 17 00:00:00 2001
> From: Sam Ravnborg <sam@...nborg.org>
> 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@...nborg.org>
> ---
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists