2013-01-21 07:28:06 +08:00
|
|
|
#
|
|
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
|
|
#
|
|
|
|
|
|
|
|
plus_virt := $(call as-instr,.arch_extension virt,+virt)
|
|
|
|
ifeq ($(plus_virt),+virt)
|
|
|
|
plus_virt_def := -DREQUIRES_VIRT=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ccflags-y += -Ivirt/kvm -Iarch/arm/kvm
|
|
|
|
CFLAGS_arm.o := -I. $(plus_virt_def)
|
|
|
|
CFLAGS_mmu.o := -I.
|
|
|
|
|
|
|
|
AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt)
|
|
|
|
AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt)
|
|
|
|
|
|
|
|
kvm-arm-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
|
|
|
|
|
|
|
|
obj-y += kvm-arm.o init.o interrupts.o
|
2012-10-05 18:11:11 +08:00
|
|
|
obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o
|
2013-01-21 07:28:13 +08:00
|
|
|
obj-y += coproc.o coproc_a15.o mmio.o psci.o
|
2013-01-22 08:36:12 +08:00
|
|
|
obj-$(CONFIG_KVM_ARM_VGIC) += vgic.o
|
2013-01-24 02:21:59 +08:00
|
|
|
obj-$(CONFIG_KVM_ARM_TIMER) += arch_timer.o
|