OpenCloudOS-Kernel/drivers/media/dvb
Trent Piepho 59faba1b31 Fix Kconfig dependency problems wrt boolean menuconfigs
If one has a dependency chain (tristate)FOO depends on (bool)BAR depends on
(tristate)BAZ, build problems will result.  If BAZ=m, then BAR can be set
y, which allows FOO=y.  It's possible to have FOO=y && BAZ=m, which
wouldn't be allowed if FOO depended directly on BAZ.  In effect, the bool
promotes the tristate from m to y.

This ends up causing a problem with several menuconfigs that look like:

menuconfig BAR
	bool
	depends on BAZ [tristate]
if BAR
config FOO
	tristate
endif

The solution used here is to add the dependencies of BAR to the if
statement, so that items in the if block will gain a direct
non-bool-promoted dependency on BAZ.  This is how it would work if a menu
was used instead of an if block.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Jeff Garzik <jeff@garzik.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-28 11:34:53 -07:00
..
b2c2 V4L/DVB (5761): Fix broken b2c2 dependency on non x86 architectures 2007-06-08 08:54:39 -03:00
bt8xx V4L/DVB (5639a): Fix dst usage count 2007-05-22 16:00:14 -03:00
cinergyT2 V4L/DVB (5699): Cinergyt2: fix file release handler 2007-06-08 08:21:12 -03:00
dvb-core V4L/DVB (5630): Dvb-core: Handle failures to create devices 2007-05-22 16:00:14 -03:00
dvb-usb Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb 2007-05-11 12:57:16 -07:00
frontends V4L/DVB (5716): Tda10086,tda826x: fix tuning, STR/SNR values 2007-06-08 08:21:13 -03:00
pluto2 V4L/DVB (5578): Workaround for bad hardare/firmware on some pluto2 devices 2007-05-09 10:12:35 -03:00
ttpci V4L/DVB (5593): Budget-ci: Fix tuning for TDM 1316 (160..200 MHz) 2007-05-09 10:12:42 -03:00
ttusb-budget V4L/DVB (5361): Dvb-pll: Fix Kconfig files and allow dvb-pll to be optional 2007-04-27 15:44:01 -03:00
ttusb-dec V4L/DVB (5164): Compat: Handle input_register_device() change and some others 2007-02-21 13:35:10 -02:00
Kconfig Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
Makefile [PATCH] dvb: add Pluto2 driver 2005-07-07 18:23:55 -07:00