blob: 789bca9e64a7fdeabe091df30db44daf8b4b1b40 [file] [log] [blame]
Christoffer Dall749cf76c2013-01-20 18:28:06 -05001#
2# Makefile for Kernel-based Virtual Machine module
3#
4
5plus_virt := $(call as-instr,.arch_extension virt,+virt)
6ifeq ($(plus_virt),+virt)
7 plus_virt_def := -DREQUIRES_VIRT=1
8endif
9
10ccflags-y += -Ivirt/kvm -Iarch/arm/kvm
11CFLAGS_arm.o := -I. $(plus_virt_def)
12CFLAGS_mmu.o := -I.
13
14AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt)
15AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt)
16
Marc Zyngier7275acd2013-05-14 14:31:01 +010017KVM := ../../../virt/kvm
Marc Zyngier535cf7b2013-05-14 14:31:02 +010018kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o
Christoffer Dall749cf76c2013-01-20 18:28:06 -050019
20obj-y += kvm-arm.o init.o interrupts.o
Marc Zyngier3414bbf2012-10-05 11:11:11 +010021obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o
Jonathan Austine8c2d992013-09-26 16:49:28 +010022obj-y += coproc.o coproc_a15.o coproc_a7.o mmio.o psci.o perf.o
Marc Zyngier7275acd2013-05-14 14:31:01 +010023obj-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic.o
24obj-$(CONFIG_KVM_ARM_TIMER) += $(KVM)/arm/arch_timer.o