Makefile 768 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#
# 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)

17
KVM := ../../../virt/kvm
E
Eric Auger 已提交
18
kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o
19 20

obj-y += kvm-arm.o init.o interrupts.o
21
obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o
22
obj-y += coproc.o coproc_a15.o coproc_a7.o mmio.o psci.o perf.o
23 24 25 26
obj-y += $(KVM)/arm/vgic.o
obj-y += $(KVM)/arm/vgic-v2.o
obj-y += $(KVM)/arm/vgic-v2-emul.o
obj-y += $(KVM)/arm/arch_timer.o