Makefile 2.6 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
CFLAGS_44x_tlb.o  := -I.
13 14
CFLAGS_e500_mmu.o := -I.
CFLAGS_e500_mmu_host.o := -I.
15 16
CFLAGS_emulate.o  := -I.

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

AFLAGS_booke_interrupts.o := -I$(obj)

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

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

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

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

kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \
	book3s_hv.o \
	book3s_hv_interrupts.o \
	book3s_64_mmu_hv.o
75
kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \
76
	book3s_hv_rmhandlers.o \
77
	book3s_hv_rm_mmu.o \
78
	book3s_64_vio_hv.o \
79
	book3s_hv_ras.o \
80
	book3s_hv_builtin.o
81

82
kvm-book3s_64-module-objs := \
83
	../../../virt/kvm/kvm_main.o \
A
Alexander Graf 已提交
84
	../../../virt/kvm/eventfd.o \
85 86 87
	powerpc.o \
	emulate.o \
	book3s.o \
88
	book3s_64_vio.o \
89
	book3s_rtas.o \
90
	$(kvm-book3s_64-objs-y)
91 92

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

94 95 96 97 98
kvm-book3s_32-objs := \
	$(common-objs-y) \
	fpu.o \
	book3s_paired_singles.o \
	book3s.o \
99
	book3s_pr.o \
100 101
	book3s_emulate.o \
	book3s_interrupts.o \
102
	book3s_mmu_hpte.o \
103 104 105 106
	book3s_32_mmu_host.o \
	book3s_32_mmu.o
kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)

107
kvm-objs-$(CONFIG_KVM_MPIC) += mpic.o
108
kvm-objs-$(CONFIG_HAVE_KVM_IRQ_ROUTING) += $(addprefix ../../../virt/kvm/, irqchip.o)
109

110 111 112
kvm-objs := $(kvm-objs-m) $(kvm-objs-y)

obj-$(CONFIG_KVM_440) += kvm.o
113
obj-$(CONFIG_KVM_E500V2) += kvm.o
S
Scott Wood 已提交
114
obj-$(CONFIG_KVM_E500MC) += kvm.o
115
obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
116
obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
117

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