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