This allows vmport to be easily enabled or disabled at build time. Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- Makefile.target | 3 ++- default-configs/i386-softmmu.mak | 2 ++ default-configs/x86_64-softmmu.mak | 2 ++ hw/pc_piix.c | 2 ++ 4 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Makefile.target b/Makefile.target index c184af6..c55951a 100644 --- a/Makefile.target +++ b/Makefile.target @@ -220,12 +220,13 @@ obj-$(CONFIG_KVM) += ivshmem.o obj-i386-y += vga.o obj-i386-y += mc146818rtc.o i8259.o pc.o obj-i386-y += cirrus_vga.o apic.o ioapic.o piix_pci.o -obj-i386-y += vmport.o hpet.o applesmc.o +obj-i386-y += hpet.o applesmc.o obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o obj-i386-y += debugcon.o multiboot.o obj-i386-y += pc_piix.o obj-i386-$(CONFIG_VMMOUSE) += vmmouse.o +obj-i386-$(CONFIG_VMPORT) += vmport.o # shared objects diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak index a4450bc..e195b47 100644 --- a/default-configs/i386-softmmu.mak +++ b/default-configs/i386-softmmu.mak @@ -23,4 +23,6 @@ CONFIG_NE2000_ISA=y CONFIG_PIIX_PCI=y CONFIG_SOUND=y CONFIG_VIRTIO_PCI=y +CONFIG_VMPORT=y +#NOTE: VMMOUSE depends on VMPORT CONFIG_VMMOUSE=y diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak index 658b249..8782cb9 100644 --- a/default-configs/x86_64-softmmu.mak +++ b/default-configs/x86_64-softmmu.mak @@ -23,4 +23,6 @@ CONFIG_NE2000_ISA=y CONFIG_PIIX_PCI=y CONFIG_SOUND=y CONFIG_VIRTIO_PCI=y +CONFIG_VMPORT=y +#NOTE: VMMOUSE depends on VMPORT CONFIG_VMMOUSE=y diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 7d29d43..c0697e0 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -85,7 +85,9 @@ static void pc_init1(ram_addr_t ram_size, pc_cpus_init(cpu_model); +#ifdef CONFIG_VMPORT vmport_init(); +#endif /* allocate ram and load rom/bios */ pc_memory_init(ram_size, kernel_filename, kernel_cmdline, initrd_filename, -- 1.7.3.2