1# 2# Makefile for Kernel-based Virtual Machine module 3# 4 5subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 6 7ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm 8 9common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o \ 10 eventfd.o) 11 12CFLAGS_44x_tlb.o := -I. 13CFLAGS_e500_mmu.o := -I. 14CFLAGS_e500_mmu_host.o := -I. 15CFLAGS_emulate.o := -I. 16 17common-objs-y += powerpc.o emulate.o 18obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o 19obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o 20 21AFLAGS_booke_interrupts.o := -I$(obj) 22 23kvm-440-objs := \ 24 $(common-objs-y) \ 25 booke.o \ 26 booke_emulate.o \ 27 booke_interrupts.o \ 28 44x.o \ 29 44x_tlb.o \ 30 44x_emulate.o 31kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs) 32 33kvm-e500-objs := \ 34 $(common-objs-y) \ 35 booke.o \ 36 booke_emulate.o \ 37 booke_interrupts.o \ 38 e500.o \ 39 e500_mmu.o \ 40 e500_mmu_host.o \ 41 e500_emulate.o 42kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs) 43 44kvm-e500mc-objs := \ 45 $(common-objs-y) \ 46 booke.o \ 47 booke_emulate.o \ 48 bookehv_interrupts.o \ 49 e500mc.o \ 50 e500_mmu.o \ 51 e500_mmu_host.o \ 52 e500_emulate.o 53kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs) 54 55kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ 56 ../../../virt/kvm/coalesced_mmio.o \ 57 fpu.o \ 58 book3s_paired_singles.o \ 59 book3s_pr.o \ 60 book3s_pr_papr.o \ 61 book3s_64_vio_hv.o \ 62 book3s_emulate.o \ 63 book3s_interrupts.o \ 64 book3s_mmu_hpte.o \ 65 book3s_64_mmu_host.o \ 66 book3s_64_mmu.o \ 67 book3s_32_mmu.o 68kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ 69 book3s_rmhandlers.o 70 71kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \ 72 book3s_hv.o \ 73 book3s_hv_interrupts.o \ 74 book3s_64_mmu_hv.o 75kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \ 76 book3s_hv_rm_xics.o 77kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \ 78 book3s_hv_rmhandlers.o \ 79 book3s_hv_rm_mmu.o \ 80 book3s_64_vio_hv.o \ 81 book3s_hv_ras.o \ 82 book3s_hv_builtin.o \ 83 $(kvm-book3s_64-builtin-xics-objs-y) 84 85kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \ 86 book3s_xics.o 87 88kvm-book3s_64-module-objs := \ 89 ../../../virt/kvm/kvm_main.o \ 90 ../../../virt/kvm/eventfd.o \ 91 powerpc.o \ 92 emulate.o \ 93 book3s.o \ 94 book3s_64_vio.o \ 95 book3s_rtas.o \ 96 $(kvm-book3s_64-objs-y) 97 98kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs) 99 100kvm-book3s_32-objs := \ 101 $(common-objs-y) \ 102 fpu.o \ 103 book3s_paired_singles.o \ 104 book3s.o \ 105 book3s_pr.o \ 106 book3s_emulate.o \ 107 book3s_interrupts.o \ 108 book3s_mmu_hpte.o \ 109 book3s_32_mmu_host.o \ 110 book3s_32_mmu.o 111kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs) 112 113kvm-objs-$(CONFIG_KVM_MPIC) += mpic.o 114kvm-objs-$(CONFIG_HAVE_KVM_IRQ_ROUTING) += $(addprefix ../../../virt/kvm/, irqchip.o) 115 116kvm-objs := $(kvm-objs-m) $(kvm-objs-y) 117 118obj-$(CONFIG_KVM_440) += kvm.o 119obj-$(CONFIG_KVM_E500V2) += kvm.o 120obj-$(CONFIG_KVM_E500MC) += kvm.o 121obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o 122obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o 123 124obj-y += $(kvm-book3s_64-builtin-objs-y) 125