blob: 459c7ee580f75dbc38eb084c56094b8c621cfaa2 [file] [log] [blame]
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -05001#
2# Makefile for Kernel-based Virtual Machine module
3#
4
Michael Ellermanba55bd72009-06-09 20:48:51 +00005subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -05007EXTRA_CFLAGS += -Ivirt/kvm -Iarch/powerpc/kvm
8
Jerone Young12f67552008-07-14 14:00:02 +02009common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -050010
Jerone Young12f67552008-07-14 14:00:02 +020011common-objs-$(CONFIG_KVM_TRACE) += $(addprefix ../../../virt/kvm/, kvm_trace.o)
12
Hollis Blanchardd9fbd032008-11-05 09:36:13 -060013kvm-objs := $(common-objs-y) powerpc.o emulate.o
Hollis Blanchard73e75b42008-12-02 15:51:57 -060014obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -050015obj-$(CONFIG_KVM) += kvm.o
16
17AFLAGS_booke_interrupts.o := -I$(obj)
18
Hollis Blanchard75f74f02008-11-05 09:36:16 -060019kvm-440-objs := \
20 booke.o \
Hollis Blanchardd0c7dc02009-01-03 16:23:06 -060021 booke_emulate.o \
Hollis Blanchard75f74f02008-11-05 09:36:16 -060022 booke_interrupts.o \
23 44x.o \
24 44x_tlb.o \
25 44x_emulate.o
Hollis Blanchard9dd921c2008-11-05 09:36:14 -060026obj-$(CONFIG_KVM_440) += kvm-440.o
Hollis Blanchardbc8080c2009-01-03 16:23:10 -060027
28kvm-e500-objs := \
29 booke.o \
30 booke_emulate.o \
31 booke_interrupts.o \
32 e500.o \
33 e500_tlb.o \
34 e500_emulate.o
35obj-$(CONFIG_KVM_E500) += kvm-e500.o