From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1df3xf-0005uP-Nv for qemu-devel@nongnu.org; Tue, 08 Aug 2017 08:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1df3xb-0004y2-R5 for qemu-devel@nongnu.org; Tue, 08 Aug 2017 08:50:15 -0400 Received: from 10.mo4.mail-out.ovh.net ([188.165.33.109]:35881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1df3xb-0004wA-JK for qemu-devel@nongnu.org; Tue, 08 Aug 2017 08:50:11 -0400 Received: from player694.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo4.mail-out.ovh.net (Postfix) with ESMTP id 1239E8BB44 for ; Tue, 8 Aug 2017 14:50:08 +0200 (CEST) Date: Tue, 8 Aug 2017 14:50:00 +0200 From: Greg Kurz Message-ID: <20170808145000.3259f597@bahia.lan> In-Reply-To: <20170808121701.18353-2-cohuck@redhat.com> References: <20170808121701.18353-1-cohuck@redhat.com> <20170808121701.18353-2-cohuck@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/3VqvDDZ6BK5CPcDvqVFkoZB"; protocol="application/pgp-signature" Subject: Re: [Qemu-devel] [PATCH 1/1] 9pfs: fix and simplify dependencies List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: aneesh.kumar@linux.vnet.ibm.com, borntraeger@de.ibm.com, agraf@suse.de, thuth@redhat.com, qemu-devel@nongnu.org --Sig_/3VqvDDZ6BK5CPcDvqVFkoZB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 8 Aug 2017 14:17:01 +0200 Cornelia Huck wrote: > We want to compile the 9pfs code iff virtfs is enabled and a virtio > transport is available (not only pci!). >=20 > Let's make the generated CONFIG_VIRTFS statement depend on either > CONFIG_VIRTIO_PCI or (new) CONFIG_VIRTIO_CCW. The Makefiles for fsdev/ > and hw/9pfs/ can then depend on CONFIG_VIRTFS directly. >=20 > Suggested-by: Thomas Huth > Signed-off-by: Cornelia Huck > --- It looks good to me. Acked-by: Greg Kurz > configure | 2 +- > default-configs/s390x-softmmu.mak | 1 + > fsdev/Makefile.objs | 2 +- > hw/Makefile.objs | 2 +- > 4 files changed, 4 insertions(+), 3 deletions(-) >=20 > diff --git a/configure b/configure > index dd73cce62f..709884dff1 100755 > --- a/configure > +++ b/configure > @@ -5771,7 +5771,7 @@ if test "$libattr" =3D "yes" ; then > echo "CONFIG_LIBATTR=3Dy" >> $config_host_mak > fi > if test "$virtfs" =3D "yes" ; then > - echo "CONFIG_VIRTFS=3Dy" >> $config_host_mak > + echo 'CONFIG_VIRTFS=3D$(call lor, $(CONFIG_VIRTIO_PCI),$(CONFIG_VIRTIO= _CCW))' >> $config_host_mak > fi > if test "$vhost_scsi" =3D "yes" ; then > echo "CONFIG_VHOST_SCSI=3Dy" >> $config_host_mak > diff --git a/default-configs/s390x-softmmu.mak b/default-configs/s390x-so= ftmmu.mak > index 51191b77df..e4c5236ceb 100644 > --- a/default-configs/s390x-softmmu.mak > +++ b/default-configs/s390x-softmmu.mak > @@ -8,3 +8,4 @@ CONFIG_S390_FLIC=3Dy > CONFIG_S390_FLIC_KVM=3D$(CONFIG_KVM) > CONFIG_VFIO_CCW=3D$(CONFIG_LINUX) > CONFIG_WDT_DIAG288=3Dy > +CONFIG_VIRTIO_CCW=3Dy > diff --git a/fsdev/Makefile.objs b/fsdev/Makefile.objs > index 659df6e187..604cc8b6c4 100644 > --- a/fsdev/Makefile.objs > +++ b/fsdev/Makefile.objs > @@ -1,4 +1,4 @@ > -ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) > +ifeq ($(CONFIG_VIRTFS),y) > # Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add. > # only pull in the actual virtio-9p device if we also enabled virtio. > common-obj-y =3D qemu-fsdev.o 9p-marshal.o 9p-iov-marshal.o > diff --git a/hw/Makefile.objs b/hw/Makefile.objs > index a2c61f6b09..147d1dc9fb 100644 > --- a/hw/Makefile.objs > +++ b/hw/Makefile.objs > @@ -1,4 +1,4 @@ > -devices-dirs-$(call land, $(CONFIG_VIRTIO),$(call land,$(CONFIG_VIRTFS),= $(CONFIG_PCI))) +=3D 9pfs/ > +devices-dirs-$(CONFIG_VIRTFS) +=3D 9pfs/ > devices-dirs-$(CONFIG_SOFTMMU) +=3D acpi/ > devices-dirs-$(CONFIG_SOFTMMU) +=3D adc/ > devices-dirs-$(CONFIG_SOFTMMU) +=3D audio/ --Sig_/3VqvDDZ6BK5CPcDvqVFkoZB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlmJs3gACgkQAvw66wEB28LX4ACgoP60zeH4fgN2AYApKmt8Semo ruEAn0BO6SyKTYpsOGp2DQT7DdwaGnKD =7Hg0 -----END PGP SIGNATURE----- --Sig_/3VqvDDZ6BK5CPcDvqVFkoZB--