Makefile 2.4 KB
Newer Older
1 2 3 4
#
# Makefile for Kernel-based Virtual Machine module
#

5 6
subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror

7
ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm
8

A
Alexander Graf 已提交
9 10
common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o \
						eventfd.o)
11

12 13 14 15
CFLAGS_44x_tlb.o  := -I.
CFLAGS_e500_tlb.o := -I.
CFLAGS_emulate.o  := -I.

16
common-objs-y += powerpc.o emulate.o
17
obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
18
obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o
19 20 21

AFLAGS_booke_interrupts.o := -I$(obj)

22
kvm-440-objs := \
23
	$(common-objs-y) \
24
	booke.o \
25
	booke_emulate.o \
26 27 28 29
	booke_interrupts.o \
	44x.o \
	44x_tlb.o \
	44x_emulate.o
30
kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs)
31 32

kvm-e500-objs := \
33
	$(common-objs-y) \
34 35 36 37 38 39
	booke.o \
	booke_emulate.o \
	booke_interrupts.o \
	e500.o \
	e500_tlb.o \
	e500_emulate.o
40
kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs)
41

S
Scott Wood 已提交
42 43 44 45 46 47 48 49 50 51
kvm-e500mc-objs := \
	$(common-objs-y) \
	booke.o \
	booke_emulate.o \
	bookehv_interrupts.o \
	e500mc.o \
	e500_tlb.o \
	e500_emulate.o
kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs)

52 53
kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \
	../../../virt/kvm/coalesced_mmio.o \
54
	fpu.o \
55
	book3s_paired_singles.o \
56
	book3s_pr.o \
57
	book3s_pr_papr.o \
58
	book3s_64_vio_hv.o \
59 60
	book3s_emulate.o \
	book3s_interrupts.o \
61
	book3s_mmu_hpte.o \
62 63 64
	book3s_64_mmu_host.o \
	book3s_64_mmu.o \
	book3s_32_mmu.o
65 66
kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \
	book3s_rmhandlers.o
67 68 69 70 71

kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \
	book3s_hv.o \
	book3s_hv_interrupts.o \
	book3s_64_mmu_hv.o
72
kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \
73
	book3s_hv_rmhandlers.o \
74
	book3s_hv_rm_mmu.o \
75 76
	book3s_64_vio_hv.o \
	book3s_hv_builtin.o
77

78
kvm-book3s_64-module-objs := \
79
	../../../virt/kvm/kvm_main.o \
A
Alexander Graf 已提交
80
	../../../virt/kvm/eventfd.o \
81 82 83
	powerpc.o \
	emulate.o \
	book3s.o \
84
	book3s_64_vio.o \
85
	$(kvm-book3s_64-objs-y)
86 87

kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs)
88

89 90 91 92 93
kvm-book3s_32-objs := \
	$(common-objs-y) \
	fpu.o \
	book3s_paired_singles.o \
	book3s.o \
94
	book3s_pr.o \
95 96
	book3s_emulate.o \
	book3s_interrupts.o \
97
	book3s_mmu_hpte.o \
98 99 100 101
	book3s_32_mmu_host.o \
	book3s_32_mmu.o
kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)

102 103 104
kvm-objs := $(kvm-objs-m) $(kvm-objs-y)

obj-$(CONFIG_KVM_440) += kvm.o
105
obj-$(CONFIG_KVM_E500V2) += kvm.o
S
Scott Wood 已提交
106
obj-$(CONFIG_KVM_E500MC) += kvm.o
107
obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
108
obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
109

110
obj-y += $(kvm-book3s_64-builtin-objs-y)