kconfig: fix undesirable side effect of adding "visible" menu attribute
authorJan Beulich <JBeulich@novell.com>
Thu, 9 Dec 2010 08:11:38 +0000 (08:11 +0000)
committerMichal Marek <mmarek@suse.cz>
Wed, 29 Dec 2010 22:31:34 +0000 (23:31 +0100)
commit7ad1227818f09242cfe9bf1845fd24211f5f99bd
treec2de70d97c46adc192ec653983421c1812b5ddb3
parent307991055b0ce65d53dc1eb501c456c10eb36360
kconfig: fix undesirable side effect of adding "visible" menu attribute

This lead to non-selected, non-user-selectable options to be written
out to .config. This is not only pointless, but also preventing the
user to be prompted should any of those options eventually become
visible (e.g. by de-selecting the *_AUTO options the "visible"
attribute was added for.

Furthermore it is quite logical for the "visible" attribute of a menu
to control the visibility of all contained prompts, which is what the
patch does.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/menu.c