kconfig: fix randconfig tristate detection
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 24 Apr 2013 16:14:27 +0000 (18:14 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 31 May 2013 15:55:08 +0000 (17:55 +0200)
commit1a512d9c9add1b925ec1dfd5dc40bc0db0ea5ad7
treedc7fad011a9f3fd34847e506fa9d978f41758eaa
parent804ea83f028087bf20b21ede2a41f9ab5efe0df1
kconfig: fix randconfig tristate detection

Because the modules' symbole (CONFIG_MODULES) may not yet be set when
we check a symbol's tristate capabilty, we'll always find that tristate
symbols are booleans, even if we randomly decided that to enable modules:
sym_get_type(sym) always return boolean for tristates when modules_sym
has not been previously set to 'y' *and* its value calculated *and* its
visibility calculated, both of which only occur after we randomly assign
values to symbols.

Fix that by looking at the raw type of symbols. Tristate set to 'm' will
be promoted to 'y' when their values will be later calculated.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/confdata.c