Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Makefile for Kernel-based Virtual Machine module
  3. #
  4. plus_virt := $(call as-instr,.arch_extension virt,+virt)
  5. ifeq ($(plus_virt),+virt)
  6. plus_virt_def := -DREQUIRES_VIRT=1
  7. endif
  8. ccflags-y += -Iarch/arm/kvm
  9. CFLAGS_arm.o := -I. $(plus_virt_def)
  10. CFLAGS_mmu.o := -I.
  11. AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt)
  12. AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt)
  13. KVM := ../../../virt/kvm
  14. kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o
  15. obj-$(CONFIG_KVM_ARM_HOST) += hyp/
  16. obj-y += kvm-arm.o init.o interrupts.o
  17. obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o
  18. obj-y += coproc.o coproc_a15.o coproc_a7.o mmio.o psci.o perf.o
  19. obj-y += $(KVM)/arm/aarch32.o
  20. obj-y += $(KVM)/arm/vgic/vgic.o
  21. obj-y += $(KVM)/arm/vgic/vgic-init.o
  22. obj-y += $(KVM)/arm/vgic/vgic-irqfd.o
  23. obj-y += $(KVM)/arm/vgic/vgic-v2.o
  24. obj-y += $(KVM)/arm/vgic/vgic-v3.o
  25. obj-y += $(KVM)/arm/vgic/vgic-mmio.o
  26. obj-y += $(KVM)/arm/vgic/vgic-mmio-v2.o
  27. obj-y += $(KVM)/arm/vgic/vgic-mmio-v3.o
  28. obj-y += $(KVM)/arm/vgic/vgic-kvm-device.o
  29. obj-y += $(KVM)/irqchip.o
  30. obj-y += $(KVM)/arm/arch_timer.o