2008-04-17 08:28:09 +04:00
#
# Makefile for Kernel-based Virtual Machine module
#
2009-06-10 00:48:51 +04:00
subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
2008-04-17 08:28:09 +04:00
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/powerpc/kvm
2008-07-14 16:00:02 +04:00
common-objs-y = $( addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
2008-04-17 08:28:09 +04:00
2009-06-18 18:47:27 +04:00
CFLAGS_44x_tlb.o := -I.
CFLAGS_e500_tlb.o := -I.
CFLAGS_emulate.o := -I.
2009-10-30 08:47:24 +03:00
common-objs-y += powerpc.o emulate.o
2008-12-03 00:51:57 +03:00
obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
2009-10-30 08:47:24 +03:00
obj-$(CONFIG_KVM_BOOK3S_64_HANDLER) += book3s_64_exports.o
2008-04-17 08:28:09 +04:00
AFLAGS_booke_interrupts.o := -I$( obj)
2008-11-05 18:36:16 +03:00
kvm-440-objs := \
2009-10-30 08:47:24 +03:00
$( common-objs-y) \
2008-11-05 18:36:16 +03:00
booke.o \
2009-01-04 01:23:06 +03:00
booke_emulate.o \
2008-11-05 18:36:16 +03:00
booke_interrupts.o \
44x.o \
44x_tlb.o \
44x_emulate.o
2009-10-30 08:47:24 +03:00
kvm-objs-$(CONFIG_KVM_440) := $( kvm-440-objs)
2009-01-04 01:23:10 +03:00
kvm-e500-objs := \
2009-10-30 08:47:24 +03:00
$( common-objs-y) \
2009-01-04 01:23:10 +03:00
booke.o \
booke_emulate.o \
booke_interrupts.o \
e500.o \
e500_tlb.o \
e500_emulate.o
2009-10-30 08:47:24 +03:00
kvm-objs-$(CONFIG_KVM_E500) := $( kvm-e500-objs)
kvm-book3s_64-objs := \
$( common-objs-y) \
book3s.o \
book3s_64_emulate.o \
book3s_64_interrupts.o \
book3s_64_mmu_host.o \
book3s_64_mmu.o \
book3s_32_mmu.o
kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $( kvm-book3s_64-objs)
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