rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Makefile for Kernel-based Virtual Machine module |
| 4 | # |
| 5 | |
| 6 | ccflags-y += -Iarch/arm64/kvm -Ivirt/kvm/arm/vgic |
| 7 | CFLAGS_arm.o := -I. |
| 8 | CFLAGS_mmu.o := -I. |
| 9 | |
| 10 | KVM=../../../virt/kvm |
| 11 | |
| 12 | obj-$(CONFIG_KVM_ARM_HOST) += kvm.o |
| 13 | obj-$(CONFIG_KVM_ARM_HOST) += hyp/ |
| 14 | |
| 15 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o |
| 16 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/arm.o $(KVM)/arm/mmu.o $(KVM)/arm/mmio.o |
| 17 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/psci.o $(KVM)/arm/perf.o |
| 18 | |
| 19 | kvm-$(CONFIG_KVM_ARM_HOST) += inject_fault.o regmap.o |
| 20 | kvm-$(CONFIG_KVM_ARM_HOST) += hyp.o hyp-init.o handle_exit.o |
| 21 | kvm-$(CONFIG_KVM_ARM_HOST) += guest.o debug.o reset.o sys_regs.o sys_regs_generic_v8.o |
| 22 | kvm-$(CONFIG_KVM_ARM_HOST) += vgic-sys-reg-v3.o |
| 23 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/aarch32.o |
| 24 | |
| 25 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic.o |
| 26 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-init.o |
| 27 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-irqfd.o |
| 28 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-v2.o |
| 29 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-v3.o |
| 30 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-mmio.o |
| 31 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-mmio-v2.o |
| 32 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-mmio-v3.o |
| 33 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-kvm-device.o |
| 34 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-its.o |
| 35 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic/vgic-debug.o |
| 36 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/irqchip.o |
| 37 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/arch_timer.o |
| 38 | kvm-$(CONFIG_KVM_ARM_PMU) += $(KVM)/arm/pmu.o |