]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: fix randconfig tristate detection
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 24 Apr 2013 16:14:27 +0000 (18:14 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 24 Apr 2013 22:15:47 +0000 (00:15 +0200)
commitf91aed31ac7c38063718fee37abed83e74a9bb31
tree27ea5d1a501e65d11890c2fb3e706f601c11f4c0
parent3d4794f79cacec9b33d979e36ddec5731534dc3d
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>
scripts/kconfig/confdata.c