From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKYlC-0002L3-DM for qemu-devel@nongnu.org; Mon, 03 Mar 2014 14:42:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKYl3-0003aU-Dg for qemu-devel@nongnu.org; Mon, 03 Mar 2014 14:42:46 -0500 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:57480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKYl2-0003YN-JW for qemu-devel@nongnu.org; Mon, 03 Mar 2014 14:42:37 -0500 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 4 Mar 2014 05:42:32 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 6FCBD2BB0045 for ; Tue, 4 Mar 2014 06:42:28 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s23JMQ8G6816146 for ; Tue, 4 Mar 2014 06:22:27 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s23JgR21003038 for ; Tue, 4 Mar 2014 06:42:27 +1100 From: "Aneesh Kumar K.V" In-Reply-To: <5314D475.8070107@redhat.com> References: <1393873716-9574-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <5314D475.8070107@redhat.com> Date: Tue, 04 Mar 2014 01:12:23 +0530 Message-ID: <87y50rvzkw.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] hw/9pfs: Include virtio-9p-device.o in build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org, Fam Zheng Paolo Bonzini writes: > Il 03/03/2014 20:08, Aneesh Kumar K.V ha scritto: >> From: "Aneesh Kumar K.V" >> >> After commit ba1183da9a10b94611cad88c44a5c6df005f9b55 we are including >> hw/Makefile.objs directly from Makefile.target. Hence we need to define >> the config in Makefile.target too to include virtio-9p-device.o in >> the build >> >> Signed-off-by: Aneesh Kumar K.V >> --- >> Makefile.target | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/Makefile.target b/Makefile.target >> index ba1234063eae..da8daa82c39e 100644 >> --- a/Makefile.target >> +++ b/Makefile.target >> @@ -137,6 +137,10 @@ endif # CONFIG_SOFTMMU >> # Workaround for http://gcc.gnu.org/PR55489, see configure. >> %/translate.o: QEMU_CFLAGS += $(TRANSLATE_OPT_CFLAGS) >> >> +ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) >> +CONFIG_REALLY_VIRTFS=y >> +endif >> + >> dummy := $(call unnest-vars,,obj-y) >> >> # we are making another call to unnest-vars with different vars, protect obj-y, >> > > Can you just replace $(CONFIG_REALLY_VIRTFS) with > > $(call land, $(call land, $(CONFIG_VIRTIO), > $(CONFIG_VIRTFS)), > $(CONFIG_PCI)) > > in hw/Makefile.objs, and remove it from Makefile.objs? Like this ? That worked. Will update the patch -devices-dirs-$(CONFIG_REALLY_VIRTFS) += 9pfs/ +devices-dirs-($call land,$(CONFIG_VIRTIO),$(CONFIG_VIRTFS),$(CONFIG_PCI)) += 9pfs/ -aneesh