kconfig: simplify select-with-unmet-direct-dependency warning
authorArnaud Lacombe <lacombar@gmail.com>
Sun, 26 Sep 2010 20:24:08 +0000 (16:24 -0400)
committerMichal Marek <mmarek@suse.cz>
Tue, 21 Dec 2010 16:59:14 +0000 (17:59 +0100)
commit1137c56b7420c801147e0863845c03b07554721a
tree73f1decaebc5a2825e04b30569b0a97595397360
parentab60bd0b92ec57c98df08616b7d0664be5551eae
kconfig: simplify select-with-unmet-direct-dependency warning

This is an attempt to simplify the expressing printed by kconfig when a
symbol is selected but still has direct unmet dependency.

First, the symbol reverse dependency is split in sub-expression. Then,
each sub-expression is checked to ensure that it does not contains the
unmet dependency. This removes the false-positive symbols and fixed symbol
which already have the correct dependency. Finally, only the symbol
responsible of the "select" is printed, instead of its full dependency tree.

CC: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/expr.c
scripts/kconfig/symbol.c