Only build osdep once
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 22:14:11 +0000 (17:14 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 24 Aug 2009 13:02:55 +0000 (08:02 -0500)
We no longer need hackery to work around kqemu

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile
Makefile.target
osdep.c
tool-osdep.c [deleted file]

index d152b6be116bc3af600ccabd885e2256e0829871..e8325344da3707a9ba8241f6ca0d6e6d63fd8bcb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
 # block-obj-y is code used by both qemu system emulation and qemu-img
 
 block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
-block-obj-y += nbd.o block.o aio.o aes.o
+block-obj-y += nbd.o block.o aio.o aes.o osdep.o
 block-obj-$(CONFIG_AIO) += posix-aio-compat.o
 
 block-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
@@ -170,11 +170,11 @@ libqemu_user.a: $(user-obj-y)
 
 qemu-img.o: qemu-img-cmds.h
 
-qemu-img$(EXESUF): qemu-img.o qemu-tool.o tool-osdep.o $(block-obj-y)
+qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)
 
-qemu-nbd$(EXESUF):  qemu-nbd.o qemu-tool.o tool-osdep.o $(block-obj-y)
+qemu-nbd$(EXESUF):  qemu-nbd.o qemu-tool.o $(block-obj-y)
 
-qemu-io$(EXESUF):  qemu-io.o qemu-tool.o tool-osdep.o cmd.o $(block-obj-y)
+qemu-io$(EXESUF):  qemu-io.o qemu-tool.o cmd.o $(block-obj-y)
 
 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
        $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $@")
index 25e6cf0095f4968e5bbed1cae1dca11b8c9f1685..ed948409d108fb59971294b43dd4e72b01d86848 100644 (file)
@@ -148,7 +148,7 @@ endif #CONFIG_BSD_USER
 # System emulator target
 ifdef CONFIG_SOFTMMU
 
-obj-y = vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o \
+obj-y = vl.o monitor.o pci.o loader.o isa_mmio.o machine.o \
         gdbstub.o gdbstub-xml.o msix.o ioport.o qemu-config.o
 # virtio has to be here due to weird dependency between PCI and virtio-net.
 # need to fix this properly
diff --git a/osdep.c b/osdep.c
index baacce7cc33e71050b5596689b85edcabb7264b8..90cc95fd75c038d0c5096d5ac482053b341cec29 100644 (file)
--- a/osdep.c
+++ b/osdep.c
@@ -33,9 +33,6 @@
 #include <sys/statvfs.h>
 #endif
 
-/* FIXME: This file should be target independent. However it has kqemu
-   hacks, so must be built for every target.  */
-
 /* Needed early for CONFIG_BSD etc. */
 #include "config-host.h"
 
diff --git a/tool-osdep.c b/tool-osdep.c
deleted file mode 100644 (file)
index 24e6edf..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/* Hack to provide a version of osdep.o for qemu-img without conflicting with
-   the (kqemu) target specific osdep.o.  */
-#include "osdep.c"
-