xref: /openbmc/linux/arch/x86/kvm/Makefile (revision e9d90d47)
1edf88417SAvi Kivity
29d893c6bSTracey Dentccflags-y += -Ivirt/kvm -Iarch/x86/kvm
3edf88417SAvi Kivity
4229456fcSMarcelo TosattiCFLAGS_x86.o := -I.
5229456fcSMarcelo TosattiCFLAGS_svm.o := -I.
6229456fcSMarcelo TosattiCFLAGS_vmx.o := -I.
7229456fcSMarcelo Tosatti
8284e9b0fSChristoph Hellwigkvm-y			+= $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
9bfd99ff5SAvi Kivity				coalesced_mmio.o irq_comm.o eventfd.o \
10bfd99ff5SAvi Kivity				assigned-dev.o)
11284e9b0fSChristoph Hellwigkvm-$(CONFIG_IOMMU_API)	+= $(addprefix ../../../virt/kvm/, iommu.o)
12af585b92SGleb Natapovkvm-$(CONFIG_KVM_ASYNC_PF)	+= $(addprefix ../../../virt/kvm/, async_pf.o)
13284e9b0fSChristoph Hellwig
1456e82318SAvi Kivitykvm-y			+= x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
15*e9d90d47SAvi Kivity			   i8254.o cpuid.o pmu.o
16284e9b0fSChristoph Hellwigkvm-intel-y		+= vmx.o
17284e9b0fSChristoph Hellwigkvm-amd-y		+= svm.o
18284e9b0fSChristoph Hellwig
19edf88417SAvi Kivityobj-$(CONFIG_KVM)	+= kvm.o
20edf88417SAvi Kivityobj-$(CONFIG_KVM_INTEL)	+= kvm-intel.o
21edf88417SAvi Kivityobj-$(CONFIG_KVM_AMD)	+= kvm-amd.o
22