]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
hw/9pfs: Include virtio-9p-device.o in build
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 3 Mar 2014 19:05:32 +0000 (00:35 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 4 Mar 2014 03:50:49 +0000 (09:20 +0530)
After commit ba1183da9a10b94611cad88c44a5c6df005f9b55 we are including
hw/Makefile.objs directly from Makefile.target. Make sure hw/Makefile.objs
rules doesn't depend on variable defined in Makefile.objs

Tested-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Makefile.objs
fsdev/Makefile.objs
hw/Makefile.objs

index 4a62913a4d25832e18340a0749834b401a8d7204..5cd3d816ffb07caa39e5bd4c720342fa27060b18 100644 (file)
@@ -21,11 +21,6 @@ block-obj-y += coroutine-$(CONFIG_COROUTINE_BACKEND).o
 
 block-obj-m = block/
 
-ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
-# 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.
-CONFIG_REALLY_VIRTFS=y
-endif
 
 ######################################################################
 # smartcard
index 206289c49f1860474b1bbd3da6ac33ffe2fe001e..c27dad3f6dc713bfb0474191db98fc7795f96df5 100644 (file)
@@ -1,4 +1,6 @@
-ifeq ($(CONFIG_REALLY_VIRTFS),y)
+ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
+# 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 = qemu-fsdev.o virtio-9p-marshal.o
 else
 common-obj-y = qemu-fsdev-dummy.o
index 05a00dc40133e7f0bbfbeed47e1be07bf38bbfc3..d178b65de4d0c8706a7cd7dd2a6b3c5a0a3d64c0 100644 (file)
@@ -1,4 +1,4 @@
-devices-dirs-$(CONFIG_REALLY_VIRTFS) += 9pfs/
+devices-dirs-$(call land, $(CONFIG_VIRTIO),$(call land,$(CONFIG_VIRTFS),$(CONFIG_PCI))) += 9pfs/
 devices-dirs-$(CONFIG_ACPI) += acpi/
 devices-dirs-$(CONFIG_SOFTMMU) += audio/
 devices-dirs-$(CONFIG_SOFTMMU) += block/