linux-sg2042/scripts/kconfig
Roman Zippel 587c90616a kconfig: fix select in combination with default
> The attached .config (with current -git) results in a compile
> error since it contains:
>
> CONFIG_X86=y
> # CONFIG_EMBEDDED is not set
> CONFIG_SERIO=m
> CONFIG_SERIO_I8042=y
>
> Looking at drivers/input/serio/Kconfig I simply don't get how this
> can happen.

You've hit the rather subtle rules of select vs default. What happened is
that SERIO is selected to m, but SERIO_I8042 isn't selected so the default
of y is used instead.
We already had the problem in the past that select and default don't work
well together, so this patch cleans this up and makes the rule hopefully
more straightforward. Basically now the value is calculated like this:

	(value && dependency) || select

where the value is the user choice (if available and the symbol is
visible) or default.

In this case it means SERIO and SERIO_I8042 are both set to y due to their
default and if SERIO didn't had the default, then the SERIO_I8042 value
would be limited to m due to the dependency.

I tested this patch with more 10000 random configs and above case is the
only the difference that showed up, so I hope there is nothing that
depended on the old more complex and subtle rules.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Tested-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2008-02-13 22:30:09 +01:00
..
lxdialog kconfig: gettext support for lxdialog 2008-01-28 23:14:39 +01:00
.gitignore [PATCH] .gitignore: add miscellaneous files 2006-11-13 07:40:42 -08:00
Makefile kconfig: gettext support for gconfig 2008-01-28 23:14:39 +01:00
POTFILES.in kconfig: gettext support for lxdialog 2008-01-28 23:14:39 +01:00
check.sh kbuild: check if we can link gettext not just compile 2007-10-12 21:13:50 +02:00
conf.c kconfig: tristate choices with mixed tristate and boolean values 2008-01-28 23:21:18 +01:00
confdata.c kconfig: explicitly introduce expression list 2008-01-28 23:14:39 +01:00
expr.c kconfig: tristate choices with mixed tristate and boolean values 2008-01-28 23:21:18 +01:00
expr.h kconfig: environment symbol support 2008-01-28 23:14:39 +01:00
gconf.c kconfig: gconfig: symbol fix 2008-01-28 23:14:39 +01:00
gconf.glade [PATCH] kconfig: set gconf's save-widget's sensitivity according to .config's changed state 2006-12-13 09:05:48 -08:00
images.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kconfig_load.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kxgettext.c kconfig: attach help text to menus 2007-07-25 21:14:26 +02:00
lex.zconf.c_shipped kconfig: whitespace removing 2008-01-28 23:14:38 +01:00
lkc.h kconfig: environment symbol support 2008-01-28 23:14:39 +01:00
lkc_proto.h x86: simplify "make ARCH=x86" and fix kconfig all.config 2007-11-17 08:35:43 -08:00
mconf.c kconfig: mark config as changed when loading an alternate config 2008-02-03 08:58:07 +01:00
menu.c kconfig: ignore select of unknown symbol 2008-02-03 08:58:07 +01:00
qconf.cc kconfig: environment symbol support 2008-01-28 23:14:39 +01:00
qconf.h kconfig/xconfig: sync main view with search dialog current menu 2007-05-02 20:58:08 +02:00
symbol.c kconfig: fix select in combination with default 2008-02-13 22:30:09 +01:00
util.c kconfig: environment symbol support 2008-01-28 23:14:39 +01:00
zconf.gperf kconfig: remove "enable" 2008-01-28 23:21:18 +01:00
zconf.hash.c_shipped kconfig: remove "enable" 2008-01-28 23:21:18 +01:00
zconf.l kconfig: whitespace removing 2008-01-28 23:14:38 +01:00
zconf.tab.c_shipped kbuild: update _shipped files for kconfig syntax cleanup 2007-10-12 21:20:32 +02:00
zconf.y kconfig: syntax cleanup - drop support for "depends/requires/def_boolean" 2007-10-12 21:20:32 +02:00