virtio: make VIRTIO a menuconfig to ease disabling it all
authorVincent Legoll <[email protected]>
Sun, 7 Jan 2018 11:33:56 +0000 (12:33 +0100)
committerMichael S. Tsirkin <[email protected]>
Thu, 1 Feb 2018 14:26:43 +0000 (16:26 +0200)
No need to get into the submenu to disable all VIRTIO-related
config entries.

This makes it easier to disable all VIRTIO config options
without entering the submenu. It will also enable one
to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change
the config dependencies.

Signed-off-by: Vincent Legoll <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
drivers/virtio/Kconfig

index cff773f15b7e2e6bbabe904c8370206e4a1714b9..35897649c24f64ac65af894ed2e48734a431d625 100644 (file)
@@ -5,7 +5,11 @@ config VIRTIO
          bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG
          or CONFIG_S390_GUEST.
 
-menu "Virtio drivers"
+menuconfig VIRTIO_MENU
+       bool "Virtio drivers"
+       default y
+
+if VIRTIO_MENU
 
 config VIRTIO_PCI
        tristate "PCI driver for virtio devices"
@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES
 
         If unsure, say 'N'.
 
-endmenu
+endif # VIRTIO_MENU