Christoffer Dall | 749cf76c | 2013-01-20 18:28:06 -0500 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Kernel-based Virtual Machine module |
| 3 | # |
| 4 | |
| 5 | plus_virt := $(call as-instr,.arch_extension virt,+virt) |
| 6 | ifeq ($(plus_virt),+virt) |
| 7 | plus_virt_def := -DREQUIRES_VIRT=1 |
| 8 | endif |
| 9 | |
Andre Przywara | 5d9d15a | 2015-03-26 14:39:30 +0000 | [diff] [blame] | 10 | ccflags-y += -Iarch/arm/kvm |
Christoffer Dall | 749cf76c | 2013-01-20 18:28:06 -0500 | [diff] [blame] | 11 | CFLAGS_arm.o := -I. $(plus_virt_def) |
| 12 | CFLAGS_mmu.o := -I. |
| 13 | |
| 14 | AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt) |
| 15 | AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt) |
| 16 | |
Marc Zyngier | 7275acd | 2013-05-14 14:31:01 +0100 | [diff] [blame] | 17 | KVM := ../../../virt/kvm |
Kim Phillips | 8889583 | 2015-06-05 16:21:49 +0100 | [diff] [blame] | 18 | kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o |
Christoffer Dall | 749cf76c | 2013-01-20 18:28:06 -0500 | [diff] [blame] | 19 | |
Marc Zyngier | 1d58d2c | 2016-01-02 15:09:54 +0000 | [diff] [blame] | 20 | obj-$(CONFIG_KVM_ARM_HOST) += hyp/ |
Christoffer Dall | 749cf76c | 2013-01-20 18:28:06 -0500 | [diff] [blame] | 21 | obj-y += kvm-arm.o init.o interrupts.o |
Marc Zyngier | 3414bbf | 2012-10-05 11:11:11 +0100 | [diff] [blame] | 22 | obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o |
Jonathan Austin | e8c2d99 | 2013-09-26 16:49:28 +0100 | [diff] [blame] | 23 | obj-y += coproc.o coproc_a15.o coproc_a7.o mmio.o psci.o perf.o |
Christoffer Dall | 662d971 | 2015-03-11 14:21:31 +0100 | [diff] [blame] | 24 | obj-y += $(KVM)/arm/vgic.o |
| 25 | obj-y += $(KVM)/arm/vgic-v2.o |
| 26 | obj-y += $(KVM)/arm/vgic-v2-emul.o |
| 27 | obj-y += $(KVM)/arm/arch_timer.o |