]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kconfig: error out if recursive dependencies are found
authorSam Ravnborg <sam@ravnborg.org>
Sun, 6 May 2007 07:20:10 +0000 (09:20 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 6 May 2007 07:20:10 +0000 (09:20 +0200)
commit5447d34b080a1e3e312b05a91e87eff4710a1152
tree0e232d4f5fa7116fb48ca39ce1dc8dcbdeec0187
parent04c58f8196b386948abf68128605de3d2db3c6ba
kconfig: error out if recursive dependencies are found

Sample:
config FOO
bool "This is foo"
depends on BAR

config BAR
bool "This is bar"
depends on FOO

This will result in following error message:
error: found recursive dependency: FOO -> BAR -> FOO

And will then exit with exit code equal 1 so make will stop.
Inspired by patch from: Adrian Bunk <bunk@stusta.de>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Adrian Bunk <bunk@stusta.de>
Cc: Roman Zippel <zippel@linux-m68k.org>
scripts/kconfig/symbol.c
scripts/kconfig/zconf.tab.c_shipped
scripts/kconfig/zconf.y