2 # Makefile for Kernel-based Virtual Machine module
5 subdir-ccflags-
$(CONFIG_PPC_WERROR
) := -Werror
7 ccflags-y
:= -Ivirt
/kvm
-Iarch
/powerpc
/kvm
9 common-objs-y
= $(addprefix ..
/..
/..
/virt
/kvm
/, kvm_main.o coalesced_mmio.o \
12 CFLAGS_44x_tlb.o
:= -I.
13 CFLAGS_e500_tlb.o
:= -I.
14 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
20 AFLAGS_booke_interrupts.o
:= -I
$(obj
)
30 kvm-objs-
$(CONFIG_KVM_440
) := $(kvm-440-objs
)
40 kvm-objs-
$(CONFIG_KVM_E500V2
) := $(kvm-e500-objs
)
46 bookehv_interrupts.o \
50 kvm-objs-
$(CONFIG_KVM_E500MC
) := $(kvm-e500mc-objs
)
52 kvm-book3s_64-objs-
$(CONFIG_KVM_BOOK3S_64_PR
) := \
53 ..
/..
/..
/virt
/kvm
/coalesced_mmio.o \
55 book3s_paired_singles.o \
62 book3s_64_mmu_host.o \
65 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_PR
) := \
68 kvm-book3s_64-objs-
$(CONFIG_KVM_BOOK3S_64_HV
) := \
70 book3s_hv_interrupts.o \
72 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_HV
) := \
73 book3s_hv_rmhandlers.o \
79 kvm-book3s_64-module-objs
:= \
80 ..
/..
/..
/virt
/kvm
/kvm_main.o \
81 ..
/..
/..
/virt
/kvm
/eventfd.o \
86 $(kvm-book3s_64-objs-y
)
88 kvm-objs-
$(CONFIG_KVM_BOOK3S_64
) := $(kvm-book3s_64-module-objs
)
90 kvm-book3s_32-objs
:= \
93 book3s_paired_singles.o \
99 book3s_32_mmu_host.o \
101 kvm-objs-
$(CONFIG_KVM_BOOK3S_32
) := $(kvm-book3s_32-objs
)
103 kvm-objs
:= $(kvm-objs-m
) $(kvm-objs-y
)
105 obj-
$(CONFIG_KVM_440
) += kvm.o
106 obj-
$(CONFIG_KVM_E500V2
) += kvm.o
107 obj-
$(CONFIG_KVM_E500MC
) += kvm.o
108 obj-
$(CONFIG_KVM_BOOK3S_64
) += kvm.o
109 obj-
$(CONFIG_KVM_BOOK3S_32
) += kvm.o
111 obj-y
+= $(kvm-book3s_64-builtin-objs-y
)