2 # Makefile for Kernel-based Virtual Machine module
5 subdir-ccflags-
$(CONFIG_PPC_WERROR
) := -Werror
7 ccflags-y
:= -Ivirt
/kvm
-Iarch
/powerpc
/kvm
8 KVM
:= ..
/..
/..
/virt
/kvm
10 common-objs-y
= $(KVM
)/kvm_main.o
$(KVM
)/eventfd.o
11 common-objs-
$(CONFIG_KVM_VFIO
) += $(KVM
)/vfio.o
12 common-objs-
$(CONFIG_KVM_MMIO
) += $(KVM
)/coalesced_mmio.o
14 CFLAGS_e500_mmu.o
:= -I.
15 CFLAGS_e500_mmu_host.o
:= -I.
16 CFLAGS_emulate.o
:= -I.
17 CFLAGS_emulate_loadstore.o
:= -I.
19 common-objs-y
+= powerpc.o emulate_loadstore.o
20 obj-
$(CONFIG_KVM_EXIT_TIMING
) += timing.o
21 obj-
$(CONFIG_KVM_BOOK3S_HANDLER
) += book3s_exports.o
23 AFLAGS_booke_interrupts.o
:= -I
$(objtree
)/$(obj
)
35 kvm-objs-
$(CONFIG_KVM_E500V2
) := $(kvm-e500-objs
)
42 bookehv_interrupts.o \
47 kvm-objs-
$(CONFIG_KVM_E500MC
) := $(kvm-e500mc-objs
)
49 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_HANDLER
) := \
55 book3s_paired_singles.o \
61 book3s_64_mmu_host.o \
65 ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE
66 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_HANDLER
) += \
72 book3s_hv_interrupts.o \
76 kvm-book3s_64-builtin-xics-objs-
$(CONFIG_KVM_XICS
) := \
79 ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
80 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_HANDLER
) += \
82 book3s_hv_rmhandlers.o \
86 $(kvm-book3s_64-builtin-xics-objs-y
)
89 kvm-book3s_64-objs-
$(CONFIG_KVM_XICS
) += \
92 kvm-book3s_64-module-objs
:= \
97 $(kvm-book3s_64-objs-y
)
99 kvm-objs-
$(CONFIG_KVM_BOOK3S_64
) := $(kvm-book3s_64-module-objs
)
101 kvm-book3s_32-objs
:= \
105 book3s_paired_singles.o \
109 book3s_interrupts.o \
111 book3s_32_mmu_host.o \
113 kvm-objs-
$(CONFIG_KVM_BOOK3S_32
) := $(kvm-book3s_32-objs
)
115 kvm-objs-
$(CONFIG_KVM_MPIC
) += mpic.o
116 kvm-objs-
$(CONFIG_HAVE_KVM_IRQ_ROUTING
) += $(KVM
)/irqchip.o
118 kvm-objs
:= $(kvm-objs-m
) $(kvm-objs-y
)
120 obj-
$(CONFIG_KVM_E500V2
) += kvm.o
121 obj-
$(CONFIG_KVM_E500MC
) += kvm.o
122 obj-
$(CONFIG_KVM_BOOK3S_64
) += kvm.o
123 obj-
$(CONFIG_KVM_BOOK3S_32
) += kvm.o
125 obj-
$(CONFIG_KVM_BOOK3S_64_PR
) += kvm-pr.o
126 obj-
$(CONFIG_KVM_BOOK3S_64_HV
) += kvm-hv.o
128 obj-y
+= $(kvm-book3s_64-builtin-objs-y
)