[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 13/25] scsi: express dependencies with Kconfig
From: |
Yang Zhong |
Subject: |
[Qemu-devel] [RFC PATCH 13/25] scsi: express dependencies with Kconfig |
Date: |
Thu, 27 Dec 2018 14:34:07 +0800 |
From: Paolo Bonzini <address@hidden>
This lets you disable SCSI altogether with "CONFIG_SCSI=n".
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Yang Zhong <address@hidden>
---
hw/scsi/Kconfig | 11 ++++++++++-
hw/scsi/Makefile.objs | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/hw/scsi/Kconfig b/hw/scsi/Kconfig
index 6e7575397f..d669a4824e 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,11 +35,15 @@ config ESP_PCI
depends on PCI
select ESP
-config PSERIES
+config SPAPR_VSCSI
bool
+ select SCSI
config VIRTIO_SCSI
bool
+ default y
+ depends on VIRTIO
+ 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
--
2.17.1
- [Qemu-devel] [RFC PATCH 04/25] minikconfig: add AST, (continued)
- [Qemu-devel] [RFC PATCH 04/25] minikconfig: add AST, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 11/25] build: convert sound.mak to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 09/25] ide: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 03/25] minikconfig: add parser skeleton, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 10/25] build: convert pci.mak to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 07/25] kconfig: introduce kconfig files, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 05/25] minikconfig: add semantic analysis, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 08/25] build: switch to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 06/25] hw/display: make edid configurable, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 12/25] build: convert usb.mak to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 13/25] scsi: express dependencies with Kconfig,
Yang Zhong <=
- [Qemu-devel] [RFC PATCH 16/25] i386: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 14/25] bluetooth: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 15/25] isa: express dependencies with kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 17/25] i2c: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 18/25] ptimer: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 19/25] edid: express dependencies with kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 20/25] hyperv: express dependencies with kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 21/25] virtio: make virtio dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 22/25] i386-softmmu.mak: remove all CONFIG_* except boards definitions, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 25/25] Makefile: only support defconfig, Yang Zhong, 2018/12/27