1 # trick to get the kvm-specific CONFIG_KVM_* definitions,
2 # because the kernel source tree won't have them
3 include $(obj)/../config.kbuild
5 obj-m := kvm.o kvm-intel.o kvm-amd.o
6 kvm-objs := kvm_main.o x86.o mmu.o x86_emulate.o ../anon_inodes.o irq.o i8259.o \
7 lapic.o ioapic.o preempt.o i8254.o coalesced_mmio.o irq_comm.o \
9 ../external-module-compat.o
10 ifeq ($(EXT_CONFIG_KVM_TRACE),y)
11 kvm-objs += kvm_trace.o
13 ifeq ($(CONFIG_IOMMU_API),y)
16 kvm-intel-objs := vmx.o vmx-debug.o ../external-module-compat.o
17 kvm-amd-objs := svm.o ../external-module-compat.o
19 CFLAGS_kvm_main.o = -DKVM_MAIN