blob: 4d6863823f695ddabc15e6adc2e3c1fd62b82074 [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
matt mooney4108d9b2010-09-22 20:51:09 +00007ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -05008
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
Alexander Grafc4f9c772009-10-30 05:47:24 +000015common-objs-y += powerpc.o emulate.o
Hollis Blanchard73e75b42008-12-02 15:51:57 -060016obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
Alexander Grafc14dea02010-04-16 00:11:41 +020017obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o
Hollis Blanchardbbf45ba2008-04-16 23:28:09 -050018
19AFLAGS_booke_interrupts.o := -I$(obj)
20
Hollis Blanchard75f74f02008-11-05 09:36:16 -060021kvm-440-objs := \
Alexander Grafc4f9c772009-10-30 05:47:24 +000022 $(common-objs-y) \
Hollis Blanchard75f74f02008-11-05 09:36:16 -060023 booke.o \
Hollis Blanchardd0c7dc02009-01-03 16:23:06 -060024 booke_emulate.o \
Hollis Blanchard75f74f02008-11-05 09:36:16 -060025 booke_interrupts.o \
26 44x.o \
27 44x_tlb.o \
28 44x_emulate.o
Alexander Grafc4f9c772009-10-30 05:47:24 +000029kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs)
Hollis Blanchardbc8080c2009-01-03 16:23:10 -060030
31kvm-e500-objs := \
Alexander Grafc4f9c772009-10-30 05:47:24 +000032 $(common-objs-y) \
Hollis Blanchardbc8080c2009-01-03 16:23:10 -060033 booke.o \
34 booke_emulate.o \
35 booke_interrupts.o \
36 e500.o \
37 e500_tlb.o \
38 e500_emulate.o
Alexander Grafc4f9c772009-10-30 05:47:24 +000039kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs)
40
41kvm-book3s_64-objs := \
42 $(common-objs-y) \
Alexander Graf963cf3d2010-02-19 11:00:40 +010043 fpu.o \
Alexander Graf831317b2010-02-19 11:00:44 +010044 book3s_paired_singles.o \
Alexander Grafc4f9c772009-10-30 05:47:24 +000045 book3s.o \
Alexander Graf2191d652010-04-16 00:11:32 +020046 book3s_emulate.o \
47 book3s_interrupts.o \
Alexander Graffef093be2010-06-30 15:18:46 +020048 book3s_mmu_hpte.o \
Alexander Grafc4f9c772009-10-30 05:47:24 +000049 book3s_64_mmu_host.o \
50 book3s_64_mmu.o \
51 book3s_32_mmu.o
52kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-objs)
53
Alexander Graf4f841392010-04-16 00:11:58 +020054kvm-book3s_32-objs := \
55 $(common-objs-y) \
56 fpu.o \
57 book3s_paired_singles.o \
58 book3s.o \
59 book3s_emulate.o \
60 book3s_interrupts.o \
Alexander Graffef093be2010-06-30 15:18:46 +020061 book3s_mmu_hpte.o \
Alexander Graf4f841392010-04-16 00:11:58 +020062 book3s_32_mmu_host.o \
63 book3s_32_mmu.o
64kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)
65
Alexander Grafc4f9c772009-10-30 05:47:24 +000066kvm-objs := $(kvm-objs-m) $(kvm-objs-y)
67
68obj-$(CONFIG_KVM_440) += kvm.o
69obj-$(CONFIG_KVM_E500) += kvm.o
70obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
Alexander Graf4f841392010-04-16 00:11:58 +020071obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
Alexander Grafc4f9c772009-10-30 05:47:24 +000072