diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-29 19:23:52 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-29 19:23:52 +0000 |
commit | ad96090a01d848df67d70c5259ed8aa321fa8716 (patch) | |
tree | 0f1403fdf30208dfefdc3bf45189c98d530cf6a9 /Makefile.objs | |
parent | 296af7c9524cffbedda258b95272ade25b0a726e (diff) | |
download | qemu-ad96090a01d848df67d70c5259ed8aa321fa8716.tar.gz qemu-ad96090a01d848df67d70c5259ed8aa321fa8716.tar.bz2 qemu-ad96090a01d848df67d70c5259ed8aa321fa8716.zip |
Refactor target specific handling, compile vl.c only once
Move target specific functions and RAM handling to arch_init.c.
Add a flag to QEMUOptions structure to indicate for which
architectures the option is allowed, check the flag
in run time and remove conditional code in option handling.
Now that no target dependencies remain, compile vl.c only once
for all targets.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'Makefile.objs')
-rw-r--r-- | Makefile.objs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.objs b/Makefile.objs index 50ae89039f..d8eef0a747 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -127,7 +127,7 @@ user-obj-y += cutils.o cache-utils.o # libhw hw-obj-y = -hw-obj-y += loader.o +hw-obj-y += vl.o loader.o hw-obj-y += virtio.o virtio-console.o hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o hw-obj-y += fw_cfg.o pci.o pci_host.o pcie_host.o @@ -216,3 +216,13 @@ libdis-$(CONFIG_PPC_DIS) += ppc-dis.o libdis-$(CONFIG_S390_DIS) += s390-dis.o libdis-$(CONFIG_SH4_DIS) += sh4-dis.o libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o + +vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) + +vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) + +vl.o: qemu-options.h + +qemu-options.h: $(SRC_PATH)/qemu-options.hx + $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") + |