16211753fSMarc Zyngier# 26211753fSMarc Zyngier# Makefile for Kernel-based Virtual Machine module 36211753fSMarc Zyngier# 46211753fSMarc Zyngier 55d9d15afSAndre Przywaraccflags-y += -Iarch/arm64/kvm 66211753fSMarc ZyngierCFLAGS_arm.o := -I. 76211753fSMarc ZyngierCFLAGS_mmu.o := -I. 86211753fSMarc Zyngier 96211753fSMarc ZyngierKVM=../../../virt/kvm 106211753fSMarc ZyngierARM=../../../arch/arm/kvm 116211753fSMarc Zyngier 126211753fSMarc Zyngierobj-$(CONFIG_KVM_ARM_HOST) += kvm.o 1306282fd2SMarc Zyngierobj-$(CONFIG_KVM_ARM_HOST) += hyp/ 146211753fSMarc Zyngier 158889583cSKim Phillipskvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o 166211753fSMarc Zyngierkvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/arm.o $(ARM)/mmu.o $(ARM)/mmio.o 176211753fSMarc Zyngierkvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/psci.o $(ARM)/perf.o 186211753fSMarc Zyngier 1927b190bdSMarc Zyngierkvm-$(CONFIG_KVM_ARM_HOST) += emulate.o inject_fault.o regmap.o 206211753fSMarc Zyngierkvm-$(CONFIG_KVM_ARM_HOST) += hyp.o hyp-init.o handle_exit.o 2156c7f5e7SAlex Bennéekvm-$(CONFIG_KVM_ARM_HOST) += guest.o debug.o reset.o sys_regs.o sys_regs_generic_v8.o 226211753fSMarc Zyngier 23*efffe55aSAndre Przywaraifeq ($(CONFIG_KVM_NEW_VGIC),y) 24*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic.o 25*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-init.o 26*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-irqfd.o 27*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-v2.o 28*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-v3.o 29*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-mmio.o 30*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-mmio-v2.o 31*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-mmio-v3.o 32*efffe55aSAndre Przywarakvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-kvm-device.o 33*efffe55aSAndre Przywaraelse 34662d9715SChristoffer Dallkvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic.o 35662d9715SChristoffer Dallkvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v2.o 36662d9715SChristoffer Dallkvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v2-emul.o 37662d9715SChristoffer Dallkvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v3.o 38662d9715SChristoffer Dallkvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v3-emul.o 39*efffe55aSAndre Przywaraendif 40662d9715SChristoffer Dallkvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/arch_timer.o 41051ff581SShannon Zhaokvm-$(CONFIG_KVM_ARM_PMU) += $(KVM)/arm/pmu.o 42