kbuild: Warn on selecting symbols with unmet direct dependencies
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 8 Jun 2010 16:25:57 +0000 (17:25 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 2 Jul 2010 12:53:09 +0000 (14:53 +0200)
commit246cf9c26bf11f2bffbecea6e5bd222eee7b1df8
tree29ddd2eaa165dbad9e8760866d782f122f579118
parent60c8eca69f7fb2820677a635d921866f66727fcb
kbuild: Warn on selecting symbols with unmet direct dependencies

The "select" statement in Kconfig files allows the enabling of options
even if they have unmet direct dependencies (i.e. "depends on" expands
to "no"). Currently, the "depends on" clauses are used in calculating
the visibility but they do not affect the reverse dependencies in any
way.

The patch introduces additional tracking of the "depends on" statements
and prints a warning on selecting an option if its direct dependencies
are not met.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/expr.h
scripts/kconfig/menu.c
scripts/kconfig/symbol.c