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

9
common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
10

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

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

AFLAGS_booke_interrupts.o := -I$(obj)

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

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

S
Scott Wood 已提交
41 42 43 44 45 46 47 48 49 50
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)

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

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

77
kvm-book3s_64-module-objs := \
78 79 80 81
	../../../virt/kvm/kvm_main.o \
	powerpc.o \
	emulate.o \
	book3s.o \
82
	book3s_64_vio.o \
83
	$(kvm-book3s_64-objs-y)
84 85

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

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

100 101 102
kvm-objs := $(kvm-objs-m) $(kvm-objs-y)

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

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