]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: do not special-case 'MODULES' symbol
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 3 Sep 2013 15:07:18 +0000 (17:07 +0200)
committerMichal Marek <mmarek@suse.cz>
Thu, 5 Sep 2013 09:09:17 +0000 (11:09 +0200)
commit6eaaf027143ee964903d5604666c1b9b57f58749
tree48b9df40035a8bf414350ed84c6bcb4438e4ace0
parentc6f19e3e55cd901c393e461cf1dfd4bca303cda8
kconfig: do not special-case 'MODULES' symbol

Currently, the 'MODULES' symbol is hard-coded to be the default symbol
that enables/disables tristates, if no other symbol was declared with
'option modules'.

While this used to be needed for the Linux kernel, we now have an
explicit 'option modules' attached to the 'MODULES' symbol (since
cset a3734c46a), so we no longer need to special-case it in the
kconfig code.

Furthermore, kconfig is extensively used out of the Linux kernel, and
other projects may have another meaning for a symbol named 'MODULES'.

This patch changes the way we enable/disable tristates: if a symbol was
found with 'option modules' attached to it, then that symbol controls
enabling tristates. Otherwise, tristates are disabled, even if a symbol
named 'MODULES' exists.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/menu.c
scripts/kconfig/zconf.y