blob: 4f407f2662f7c555c2b68f9b863591573af82259 [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
Marcelo Tosatti46f43c62009-06-18 11:47:27 -030013CFLAGS_44x_tlb.o := -I.
14CFLAGS_e500_tlb.o := -I.
15CFLAGS_emulate.o := -I.
16
Hollis Blanchardd9fbd032008-11-05 09:36:13 -060017kvm-objs := $(common-objs-y) powerpc.o emulate.o
Hollis Blanchard73e75b42008-12-02 15:51:57 -060018obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -050019obj-$(CONFIG_KVM) += kvm.o
20
21AFLAGS_booke_interrupts.o := -I$(obj)
22
Hollis Blanchard75f74f02008-11-05 09:36:16 -060023kvm-440-objs := \
24 booke.o \
Hollis Blanchardd0c7dc02009-01-03 16:23:06 -060025 booke_emulate.o \
Hollis Blanchard75f74f02008-11-05 09:36:16 -060026 booke_interrupts.o \
27 44x.o \
28 44x_tlb.o \
29 44x_emulate.o
Hollis Blanchard9dd921c2008-11-05 09:36:14 -060030obj-$(CONFIG_KVM_440) += kvm-440.o
Hollis Blanchardbc8080c2009-01-03 16:23:10 -060031
32kvm-e500-objs := \
33 booke.o \
34 booke_emulate.o \
35 booke_interrupts.o \
36 e500.o \
37 e500_tlb.o \
38 e500_emulate.o
39obj-$(CONFIG_KVM_E500) += kvm-e500.o