xref: /linux/arch/powerpc/kvm/Makefile (revision 60e13231561b3a4c5269bfa1ef6c0569ad6f28ec)
1#
2# Makefile for Kernel-based Virtual Machine module
3#
4
5subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6
7ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm
8
9common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
10
11CFLAGS_44x_tlb.o  := -I.
12CFLAGS_e500_tlb.o := -I.
13CFLAGS_emulate.o  := -I.
14
15common-objs-y += powerpc.o emulate.o
16obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
17obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o
18
19AFLAGS_booke_interrupts.o := -I$(obj)
20
21kvm-440-objs := \
22	$(common-objs-y) \
23	booke.o \
24	booke_emulate.o \
25	booke_interrupts.o \
26	44x.o \
27	44x_tlb.o \
28	44x_emulate.o
29kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs)
30
31kvm-e500-objs := \
32	$(common-objs-y) \
33	booke.o \
34	booke_emulate.o \
35	booke_interrupts.o \
36	e500.o \
37	e500_tlb.o \
38	e500_emulate.o
39kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs)
40
41kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \
42	../../../virt/kvm/coalesced_mmio.o \
43	fpu.o \
44	book3s_paired_singles.o \
45	book3s_pr.o \
46	book3s_emulate.o \
47	book3s_interrupts.o \
48	book3s_mmu_hpte.o \
49	book3s_64_mmu_host.o \
50	book3s_64_mmu.o \
51	book3s_32_mmu.o
52
53kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \
54	book3s_hv.o \
55	book3s_hv_interrupts.o \
56	book3s_64_mmu_hv.o
57kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \
58	book3s_hv_rm_mmu.o \
59	book3s_64_vio_hv.o \
60	book3s_hv_builtin.o
61
62kvm-book3s_64-module-objs := \
63	../../../virt/kvm/kvm_main.o \
64	powerpc.o \
65	emulate.o \
66	book3s.o \
67	$(kvm-book3s_64-objs-y)
68
69kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs)
70
71kvm-book3s_32-objs := \
72	$(common-objs-y) \
73	fpu.o \
74	book3s_paired_singles.o \
75	book3s.o \
76	book3s_pr.o \
77	book3s_emulate.o \
78	book3s_interrupts.o \
79	book3s_mmu_hpte.o \
80	book3s_32_mmu_host.o \
81	book3s_32_mmu.o
82kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)
83
84kvm-objs := $(kvm-objs-m) $(kvm-objs-y)
85
86obj-$(CONFIG_KVM_440) += kvm.o
87obj-$(CONFIG_KVM_E500) += kvm.o
88obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
89obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
90
91obj-y += $(kvm-book3s_64-builtin-objs-y)
92