blob: 37655fe19f2f7431c946d2e6405d3d96aaf10fa1 [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
Marcelo Tosatti46f43c62009-06-18 11:47:27 -030011CFLAGS_44x_tlb.o := -I.
12CFLAGS_e500_tlb.o := -I.
13CFLAGS_emulate.o := -I.
14
Hollis Blanchardd9fbd032008-11-05 09:36:13 -060015kvm-objs := $(common-objs-y) powerpc.o emulate.o
Hollis Blanchard73e75b42008-12-02 15:51:57 -060016obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -050017obj-$(CONFIG_KVM) += kvm.o
18
19AFLAGS_booke_interrupts.o := -I$(obj)
20
Hollis Blanchard75f74f02008-11-05 09:36:16 -060021kvm-440-objs := \
22 booke.o \
Hollis Blanchardd0c7dc02009-01-03 16:23:06 -060023 booke_emulate.o \
Hollis Blanchard75f74f02008-11-05 09:36:16 -060024 booke_interrupts.o \
25 44x.o \
26 44x_tlb.o \
27 44x_emulate.o
Hollis Blanchard9dd921c2008-11-05 09:36:14 -060028obj-$(CONFIG_KVM_440) += kvm-440.o
Hollis Blanchardbc8080c2009-01-03 16:23:10 -060029
30kvm-e500-objs := \
31 booke.o \
32 booke_emulate.o \
33 booke_interrupts.o \
34 e500.o \
35 e500_tlb.o \
36 e500_emulate.o
37obj-$(CONFIG_KVM_E500) += kvm-e500.o