Makefile 1003 字节
Newer Older
1 2 3 4 5 6 7 8 9
#
# 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

10
ccflags-y += -Iarch/arm/kvm
11 12 13 14 15 16
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
18
kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o
19

20
obj-$(CONFIG_KVM_ARM_HOST) += hyp/
21
obj-y += kvm-arm.o init.o interrupts.o
22
obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o
23
obj-y += coproc.o coproc_a15.o coproc_a7.o mmio.o psci.o perf.o
24 25 26 27 28 29 30 31

obj-y += $(KVM)/arm/vgic/vgic.o
obj-y += $(KVM)/arm/vgic/vgic-init.o
obj-y += $(KVM)/arm/vgic/vgic-irqfd.o
obj-y += $(KVM)/arm/vgic/vgic-v2.o
obj-y += $(KVM)/arm/vgic/vgic-mmio.o
obj-y += $(KVM)/arm/vgic/vgic-mmio-v2.o
obj-y += $(KVM)/arm/vgic/vgic-kvm-device.o
32
obj-y += $(KVM)/irqchip.o
33
obj-y += $(KVM)/arm/arch_timer.o