[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v4 33/44] scsi: express dependencies with Kconfi
From: |
Yang Zhong |
Subject: |
[Qemu-devel] [RFC PATCH v4 33/44] scsi: express dependencies with Kconfig |
Date: |
Wed, 23 Jan 2019 14:56:07 +0800 |
From: Paolo Bonzini <address@hidden>
This automatically removes the SCSI subsystem from the
binary altogether if no controllers are selected.
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Yang Zhong <address@hidden>
---
hw/scsi/Kconfig | 12 ++++++++++++
hw/scsi/Makefile.objs | 2 +-
hw/usb/Kconfig | 2 ++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/hw/scsi/Kconfig b/hw/scsi/Kconfig
index 812a12522b..7a9d373382 100644
--- a/hw/scsi/Kconfig
+++ b/hw/scsi/Kconfig
@@ -5,24 +5,29 @@ config LSI_SCSI_PCI
bool
default y
depends on PCI
+ select SCSI
config MPTSAS_SCSI_PCI
bool
default y
depends on PCI
+ select SCSI
config MEGASAS_SCSI_PCI
bool
default y
depends on PCI
+ select SCSI
config VMW_PVSCSI_SCSI_PCI
bool
default y
depends on PCI
+ select SCSI
config ESP
bool
+ select SCSI
config ESP_PCI
bool
@@ -30,8 +35,15 @@ config ESP_PCI
depends on PCI
select ESP
+config SPAPR_VSCSI
+ bool
+ depends on PSERIES
+ select SCSI
+
config VIRTIO_SCSI
bool
+ default y
+ select SCSI
config VHOST_USER_SCSI
bool
diff --git a/hw/scsi/Makefile.objs b/hw/scsi/Makefile.objs
index 45167baeaf..54b36ed8b1 100644
--- a/hw/scsi/Makefile.objs
+++ b/hw/scsi/Makefile.objs
@@ -6,7 +6,7 @@ common-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
common-obj-$(CONFIG_VMW_PVSCSI_SCSI_PCI) += vmw_pvscsi.o
common-obj-$(CONFIG_ESP) += esp.o
common-obj-$(CONFIG_ESP_PCI) += esp-pci.o
-obj-$(CONFIG_PSERIES) += spapr_vscsi.o
+obj-$(CONFIG_SPAPR_VSCSI) += spapr_vscsi.o
ifeq ($(CONFIG_VIRTIO_SCSI),y)
obj-y += virtio-scsi.o virtio-scsi-dataplane.o
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
index 0b8f41040e..db46c56cc8 100644
--- a/hw/usb/Kconfig
+++ b/hw/usb/Kconfig
@@ -52,11 +52,13 @@ config USB_STORAGE_BOT
bool
default y
depends on USB
+ select SCSI
config USB_STORAGE_UAS
bool
default y
depends on USB
+ select SCSI
config USB_AUDIO
bool
--
2.17.1
- [Qemu-devel] [RFC PATCH v4 27/44] build: switch to Kconfig, (continued)
- [Qemu-devel] [RFC PATCH v4 27/44] build: switch to Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 26/44] kconfig: introduce kconfig files, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 29/44] hw/pci/Makefile.objs: make pcie configurable, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 31/44] build: convert sound.mak to Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 30/44] build: convert pci.mak to Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 34/44] bluetooth: express dependencies with Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 32/44] build: convert usb.mak to Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 33/44] scsi: express dependencies with Kconfig,
Yang Zhong <=
- [Qemu-devel] [RFC PATCH v4 36/44] i386: express dependencies with Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 35/44] isa: express dependencies with kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 37/44] i2c: express dependencies with Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 40/44] hyperv: express dependencies with kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 39/44] edid: express dependencies with kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 38/44] ptimer: express dependencies with Kconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 42/44] i386-softmmu.mak: remove all CONFIG_* except boards definitions, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 43/44] minikconf: implement allyesconfig, allnoconfig, randconfig, defconfig, Yang Zhong, 2019/01/23
- [Qemu-devel] [RFC PATCH v4 41/44] virtio: make virtio dependencies with Kconfig, Yang Zhong, 2019/01/23