1bbf45ba5SHollis Blanchard# 2bbf45ba5SHollis Blanchard# Makefile for Kernel-based Virtual Machine module 3bbf45ba5SHollis Blanchard# 4bbf45ba5SHollis Blanchard 5ba55bd74SMichael Ellermansubdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 6ba55bd74SMichael Ellerman 74108d9baSmatt mooneyccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm 8bbf45ba5SHollis Blanchard 912f67556SJerone Youngcommon-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o) 10bbf45ba5SHollis Blanchard 1146f43c6eSMarcelo TosattiCFLAGS_44x_tlb.o := -I. 1246f43c6eSMarcelo TosattiCFLAGS_e500_tlb.o := -I. 1346f43c6eSMarcelo TosattiCFLAGS_emulate.o := -I. 1446f43c6eSMarcelo Tosatti 15c4f9c779SAlexander Grafcommon-objs-y += powerpc.o emulate.o 1673e75b41SHollis Blanchardobj-$(CONFIG_KVM_EXIT_TIMING) += timing.o 17c14dea04SAlexander Grafobj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o 18bbf45ba5SHollis Blanchard 19bbf45ba5SHollis BlanchardAFLAGS_booke_interrupts.o := -I$(obj) 20bbf45ba5SHollis Blanchard 2175f74f0dSHollis Blanchardkvm-440-objs := \ 22c4f9c779SAlexander Graf $(common-objs-y) \ 2375f74f0dSHollis Blanchard booke.o \ 24d0c7dc03SHollis Blanchard booke_emulate.o \ 2575f74f0dSHollis Blanchard booke_interrupts.o \ 2675f74f0dSHollis Blanchard 44x.o \ 2775f74f0dSHollis Blanchard 44x_tlb.o \ 2875f74f0dSHollis Blanchard 44x_emulate.o 29c4f9c779SAlexander Grafkvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs) 30bc8080cbSHollis Blanchard 31bc8080cbSHollis Blanchardkvm-e500-objs := \ 32c4f9c779SAlexander Graf $(common-objs-y) \ 33bc8080cbSHollis Blanchard booke.o \ 34bc8080cbSHollis Blanchard booke_emulate.o \ 35bc8080cbSHollis Blanchard booke_interrupts.o \ 36bc8080cbSHollis Blanchard e500.o \ 37bc8080cbSHollis Blanchard e500_tlb.o \ 38bc8080cbSHollis Blanchard e500_emulate.o 39c4f9c779SAlexander Grafkvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs) 40c4f9c779SAlexander Graf 41c4f9c779SAlexander Grafkvm-book3s_64-objs := \ 42c4f9c779SAlexander Graf $(common-objs-y) \ 43963cf3dcSAlexander Graf fpu.o \ 44831317b6SAlexander Graf book3s_paired_singles.o \ 45c4f9c779SAlexander Graf book3s.o \ 46*f05ed4d5SPaul Mackerras book3s_pr.o \ 472191d657SAlexander Graf book3s_emulate.o \ 482191d657SAlexander Graf book3s_interrupts.o \ 49fef093beSAlexander Graf book3s_mmu_hpte.o \ 50c4f9c779SAlexander Graf book3s_64_mmu_host.o \ 51c4f9c779SAlexander Graf book3s_64_mmu.o \ 52c4f9c779SAlexander Graf book3s_32_mmu.o 53c4f9c779SAlexander Grafkvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-objs) 54c4f9c779SAlexander Graf 554f841390SAlexander Grafkvm-book3s_32-objs := \ 564f841390SAlexander Graf $(common-objs-y) \ 574f841390SAlexander Graf fpu.o \ 584f841390SAlexander Graf book3s_paired_singles.o \ 594f841390SAlexander Graf book3s.o \ 60*f05ed4d5SPaul Mackerras book3s_pr.o \ 614f841390SAlexander Graf book3s_emulate.o \ 624f841390SAlexander Graf book3s_interrupts.o \ 63fef093beSAlexander Graf book3s_mmu_hpte.o \ 644f841390SAlexander Graf book3s_32_mmu_host.o \ 654f841390SAlexander Graf book3s_32_mmu.o 664f841390SAlexander Grafkvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs) 674f841390SAlexander Graf 68c4f9c779SAlexander Grafkvm-objs := $(kvm-objs-m) $(kvm-objs-y) 69c4f9c779SAlexander Graf 70c4f9c779SAlexander Grafobj-$(CONFIG_KVM_440) += kvm.o 71c4f9c779SAlexander Grafobj-$(CONFIG_KVM_E500) += kvm.o 72c4f9c779SAlexander Grafobj-$(CONFIG_KVM_BOOK3S_64) += kvm.o 734f841390SAlexander Grafobj-$(CONFIG_KVM_BOOK3S_32) += kvm.o 74c4f9c779SAlexander Graf 75