[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 40/52] scsi: express dependencies with Kconfig
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH 40/52] scsi: express dependencies with Kconfig |
Date: |
Thu, 31 Jan 2019 22:23:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 1/25/19 11:06 AM, Paolo Bonzini wrote:
> 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>
> Message-Id: <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> hw/scsi/Kconfig | 11 ++++++++++-
> hw/scsi/Makefile.objs | 2 +-
> hw/usb/Kconfig | 2 ++
> 3 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/hw/scsi/Kconfig b/hw/scsi/Kconfig
> index c02d880..b9cf269 100644
> --- a/hw/scsi/Kconfig
> +++ b/hw/scsi/Kconfig
> @@ -5,24 +5,29 @@ config LSI_SCSI_PCI
> bool
> default y if PCI_DEVICES
> depends on PCI
> + select SCSI
>
> config MPTSAS_SCSI_PCI
> bool
> default y if PCI_DEVICES
> depends on PCI
> + select SCSI
>
> config MEGASAS_SCSI_PCI
> bool
> default y if PCI_DEVICES
> depends on PCI
> + select SCSI
>
> config VMW_PVSCSI_SCSI_PCI
> bool
> default y if PCI_DEVICES
> depends on PCI
> + select SCSI
>
> config ESP
> bool
> + select SCSI
>
> config ESP_PCI
> bool
> @@ -34,10 +39,14 @@ config SPAPR_VSCSI
> bool
> default y
> depends on PSERIES
> + select SCSI
>
> config VIRTIO_SCSI
> bool
> + select SCSI
>
> config VHOST_USER_SCSI
> bool
> - default y if VHOST_USER && LINUX
> + # Only PCI devices are provided for now
> + default y if VIRTIO_PCI
> + depends on VHOST_USER && LINUX
> diff --git a/hw/scsi/Makefile.objs b/hw/scsi/Makefile.objs
> index 45167ba..54b36ed 100644
> --- a/hw/scsi/Makefile.objs
> +++ b/hw/scsi/Makefile.objs
> @@ -6,7 +6,7 @@ common-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
You missed:
-common-obj-y += scsi-disk.o emulation.o
-common-obj-y += scsi-generic.o scsi-bus.o
+common-obj-$(CONFIG_SCSI) += scsi-disk.o emulation.o
+common-obj-$(CONFIG_SCSI) += scsi-generic.o scsi-bus.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 e20670a..a1b7acb 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
>
- [Qemu-devel] [PATCH 29/52] minikconfig: add AST, (continued)
- [Qemu-devel] [PATCH 29/52] minikconfig: add AST, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 28/52] minikconfig: add parser skeleton, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 33/52] build: switch to Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 35/52] ide: express dependencies with Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 34/52] minikconf: implement allnoconfig and defconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 31/52] hw/display: make edid configurable, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 40/52] scsi: express dependencies with Kconfig, Paolo Bonzini, 2019/01/25
- Re: [Qemu-devel] [PATCH 40/52] scsi: express dependencies with Kconfig,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH 39/52] build: convert usb.mak to Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 43/52] i2c: express dependencies with Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 46/52] hyperv: express dependencies with kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 48/52] virtio: express virtio dependencies with Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 49/52] tpm: express dependencies with Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 38/52] build: convert sound.mak to Kconfig, Paolo Bonzini, 2019/01/25
- [Qemu-devel] [PATCH 36/52] hw/pci/Makefile.objs: make pcie configurable, Paolo Bonzini, 2019/01/25