2008-04-17 04:28:09 +00:00
|
|
|
#
|
|
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
|
|
#
|
|
|
|
|
2009-06-09 20:48:51 +00:00
|
|
|
subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
|
|
|
|
|
2010-09-22 20:51:09 +00:00
|
|
|
ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm
|
2008-04-17 04:28:09 +00:00
|
|
|
|
2008-07-14 12:00:02 +00:00
|
|
|
common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
|
2008-04-17 04:28:09 +00:00
|
|
|
|
2009-06-18 14:47:27 +00:00
|
|
|
CFLAGS_44x_tlb.o := -I.
|
|
|
|
CFLAGS_e500_tlb.o := -I.
|
|
|
|
CFLAGS_emulate.o := -I.
|
|
|
|
|
2009-10-30 05:47:24 +00:00
|
|
|
common-objs-y += powerpc.o emulate.o
|
2008-12-02 21:51:57 +00:00
|
|
|
obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
|
2010-04-15 22:11:41 +00:00
|
|
|
obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o
|
2008-04-17 04:28:09 +00:00
|
|
|
|
|
|
|
AFLAGS_booke_interrupts.o := -I$(obj)
|
|
|
|
|
2008-11-05 15:36:16 +00:00
|
|
|
kvm-440-objs := \
|
2009-10-30 05:47:24 +00:00
|
|
|
$(common-objs-y) \
|
2008-11-05 15:36:16 +00:00
|
|
|
booke.o \
|
2009-01-03 22:23:06 +00:00
|
|
|
booke_emulate.o \
|
2008-11-05 15:36:16 +00:00
|
|
|
booke_interrupts.o \
|
|
|
|
44x.o \
|
|
|
|
44x_tlb.o \
|
|
|
|
44x_emulate.o
|
2009-10-30 05:47:24 +00:00
|
|
|
kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs)
|
2009-01-03 22:23:10 +00:00
|
|
|
|
|
|
|
kvm-e500-objs := \
|
2009-10-30 05:47:24 +00:00
|
|
|
$(common-objs-y) \
|
2009-01-03 22:23:10 +00:00
|
|
|
booke.o \
|
|
|
|
booke_emulate.o \
|
|
|
|
booke_interrupts.o \
|
|
|
|
e500.o \
|
|
|
|
e500_tlb.o \
|
|
|
|
e500_emulate.o
|
2009-10-30 05:47:24 +00:00
|
|
|
kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs)
|
|
|
|
|
|
|
|
kvm-book3s_64-objs := \
|
|
|
|
$(common-objs-y) \
|
2010-02-19 10:00:40 +00:00
|
|
|
fpu.o \
|
2010-02-19 10:00:44 +00:00
|
|
|
book3s_paired_singles.o \
|
2009-10-30 05:47:24 +00:00
|
|
|
book3s.o \
|
2010-04-15 22:11:32 +00:00
|
|
|
book3s_emulate.o \
|
|
|
|
book3s_interrupts.o \
|
2010-06-30 13:18:46 +00:00
|
|
|
book3s_mmu_hpte.o \
|
2009-10-30 05:47:24 +00:00
|
|
|
book3s_64_mmu_host.o \
|
|
|
|
book3s_64_mmu.o \
|
|
|
|
book3s_32_mmu.o
|
|
|
|
kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-objs)
|
|
|
|
|
2010-04-15 22:11:58 +00:00
|
|
|
kvm-book3s_32-objs := \
|
|
|
|
$(common-objs-y) \
|
|
|
|
fpu.o \
|
|
|
|
book3s_paired_singles.o \
|
|
|
|
book3s.o \
|
|
|
|
book3s_emulate.o \
|
|
|
|
book3s_interrupts.o \
|
2010-06-30 13:18:46 +00:00
|
|
|
book3s_mmu_hpte.o \
|
2010-04-15 22:11:58 +00:00
|
|
|
book3s_32_mmu_host.o \
|
|
|
|
book3s_32_mmu.o
|
|
|
|
kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)
|
|
|
|
|
2009-10-30 05:47:24 +00:00
|
|
|
kvm-objs := $(kvm-objs-m) $(kvm-objs-y)
|
|
|
|
|
|
|
|
obj-$(CONFIG_KVM_440) += kvm.o
|
|
|
|
obj-$(CONFIG_KVM_E500) += kvm.o
|
|
|
|
obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
|
2010-04-15 22:11:58 +00:00
|
|
|
obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
|
2009-10-30 05:47:24 +00:00
|
|
|
|