blob: fc96ce6f2357c683497f80344349449c74e3b077 [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
17kvm-arm-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
18
19obj-y += kvm-arm.o init.o interrupts.o
20obj-y += arm.o guest.o mmu.o emulate.o reset.o
Marc Zyngieraa024c2f2013-01-20 18:28:13 -050021obj-y += coproc.o coproc_a15.o mmio.o psci.o
Marc Zyngier1a89dd92013-01-21 19:36:12 -050022obj-$(CONFIG_KVM_ARM_VGIC) += vgic.o
Marc Zyngier967f8422013-01-23 13:21:59 -050023obj-$(CONFIG_KVM_ARM_TIMER) += arch_timer.o