Commit 5077ac3b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

Properly handle tristate dependencies on USB/PCI menus

As USB/PCI/MEDIA_SUPPORT dependencies can be tristate, we can't
simply make the bool menu to be dependent on it. Everything below
the menu should also depend on it, otherwise, we risk to allow
building them with 'y', while only 'm' would be supported.

So, add an IF just before everything below, in order to avoid
such risks.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7997196c
if PCI && MEDIA_SUPPORT
menuconfig MEDIA_PCI_SUPPORT menuconfig MEDIA_PCI_SUPPORT
bool "Media PCI Adapters" bool "Media PCI Adapters"
depends on PCI && MEDIA_SUPPORT
help help
Enable media drivers for PCI/PCIe bus. Enable media drivers for PCI/PCIe bus.
If you have such devices, say Y. If you have such devices, say Y.
...@@ -45,3 +46,4 @@ source "drivers/media/pci/ddbridge/Kconfig" ...@@ -45,3 +46,4 @@ source "drivers/media/pci/ddbridge/Kconfig"
endif endif
endif #MEDIA_PCI_SUPPORT endif #MEDIA_PCI_SUPPORT
endif #PCI
if USB if USB && MEDIA_SUPPORT
menuconfig MEDIA_USB_SUPPORT menuconfig MEDIA_USB_SUPPORT
bool "Media USB Adapters" bool "Media USB Adapters"
depends on MEDIA_SUPPORT
help help
Enable media drivers for USB bus. Enable media drivers for USB bus.
If you have such devices, say Y. If you have such devices, say Y.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment