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