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)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Oct 2013 20:24:23 +0000 (22:24 +0200)
commit3318b89864b3bcd8fa5fc545ee8725e7a38c5a63
treec3a8dd5fa06772b1652754dbb1f2bed9eb6730bb
parent452afc107b8438338a7c2aa3e68fad213bea33dc
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>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/menu.c