]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: do not allow more than one symbol to have 'option modules'
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 3 Sep 2013 20:22:26 +0000 (22:22 +0200)
committerMichal Marek <mmarek@suse.cz>
Thu, 5 Sep 2013 09:10:08 +0000 (11:10 +0200)
commitcb962e04831b795cc3acf9adab821aa1aa3cf18b
tree0d0a9232e2480a8a2c2d7f3931697c63ce7da847
parent30b7c950d559746db791e63767c6632f7fb3b572
kconfig: do not allow more than one symbol to have 'option modules'

Previously, it was possible to have more than one symbol with the
'option modules' attached to them, although only the last one would
in fact control tristates.

Since this does not make much sense, only allow at most one symbol to
control tristates.

Note: it is still possible to have more than one symbol that control
tristates, but indirectly:

    config MOD1
        bool "mod1"
        select MODULES
    config MOD2
        bool "mod2"
        select MODULES
    config MODULES
        bool
        option modules

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>
Documentation/kbuild/kconfig-language.txt
scripts/kconfig/menu.c