From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:44887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn7it-00042D-F3 for qemu-devel@nongnu.org; Fri, 25 Jan 2019 15:05:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn7is-0007W3-N1 for qemu-devel@nongnu.org; Fri, 25 Jan 2019 15:05:07 -0500 Date: Fri, 25 Jan 2019 15:05:04 -0500 From: "Michael S. Tsirkin" Message-ID: <20190125150455-mutt-send-email-mst@kernel.org> References: <1548420960-5555-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548420960-5555-1-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH] hw/virtio: Use CONFIG_VIRTIO_PCI switch instead of CONFIG_PCI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org, qemu-s390x@nongnu.org, Miroslav Rezanina On Fri, Jan 25, 2019 at 01:56:00PM +0100, Thomas Huth wrote: > For downstream s390x builds, we'd like to be able to build QEMU with > CONFIG_VIRTIO_PCI disabled (since virtio-ccw is used here instead), > but still with CONFIG_PCI enabled. This currently fails since the > virtio-*-pci.o files are still included in the build, but virtio-pci.o > is missing. Use the right config switch CONFIG_VIRTIO_PCI to exclude > the virtio-*-pci.o files from the build. > > Reported-by: Miroslav Rezanina > Signed-off-by: Thomas Huth > --- > hw/virtio/Makefile.objs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs > index ea7913d..d335dd0 100644 > --- a/hw/virtio/Makefile.objs > +++ b/hw/virtio/Makefile.objs > @@ -11,7 +11,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p > > obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o > obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o > -ifeq ($(CONFIG_PCI),y) > +ifeq ($(CONFIG_VIRTIO_PCI),y) > obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock-pci.o > obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk-pci.o > obj-$(CONFIG_VHOST_USER_SCSI) += vhost-user-scsi-pci.o Makes sense will queue. > -- > 1.8.3.1