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 | |
| 10 | ccflags-y += -Ivirt/kvm -Iarch/arm/kvm |
| 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 |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 18 | kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o |
Christoffer Dall | 749cf76c | 2013-01-20 18:28:06 -0500 | [diff] [blame] | 19 | |
| 20 | obj-y += kvm-arm.o init.o interrupts.o |
Marc Zyngier | 3414bbf | 2012-10-05 11:11:11 +0100 | [diff] [blame] | 21 | obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o |
Marc Zyngier | 210552c | 2013-03-05 03:18:00 +0000 | [diff] [blame] | 22 | obj-y += coproc.o coproc_a15.o mmio.o psci.o perf.o |
Marc Zyngier | 7275acd | 2013-05-14 14:31:01 +0100 | [diff] [blame] | 23 | obj-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic.o |
| 24 | obj-$(CONFIG_KVM_ARM_TIMER) += $(KVM)/arm/arch_timer.o |