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
)
11 CFLAGS_44x_tlb.o
:= -I.
12 CFLAGS_e500_tlb.o
:= -I.
13 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
19 AFLAGS_booke_interrupts.o
:= -I
$(obj
)
29 kvm-objs-
$(CONFIG_KVM_440
) := $(kvm-440-objs
)
39 kvm-objs-
$(CONFIG_KVM_E500V2
) := $(kvm-e500-objs
)
45 bookehv_interrupts.o \
49 kvm-objs-
$(CONFIG_KVM_E500MC
) := $(kvm-e500mc-objs
)
51 kvm-book3s_64-objs-
$(CONFIG_KVM_BOOK3S_64_PR
) := \
52 ..
/..
/..
/virt
/kvm
/coalesced_mmio.o \
54 book3s_paired_singles.o \
61 book3s_64_mmu_host.o \
64 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_PR
) := \
67 kvm-book3s_64-objs-
$(CONFIG_KVM_BOOK3S_64_HV
) := \
69 book3s_hv_interrupts.o \
71 kvm-book3s_64-builtin-objs-
$(CONFIG_KVM_BOOK3S_64_HV
) := \
72 book3s_hv_rmhandlers.o \
77 kvm-book3s_64-module-objs
:= \
78 ..
/..
/..
/virt
/kvm
/kvm_main.o \
83 $(kvm-book3s_64-objs-y
)
85 kvm-objs-
$(CONFIG_KVM_BOOK3S_64
) := $(kvm-book3s_64-module-objs
)
87 kvm-book3s_32-objs
:= \
90 book3s_paired_singles.o \
96 book3s_32_mmu_host.o \
98 kvm-objs-
$(CONFIG_KVM_BOOK3S_32
) := $(kvm-book3s_32-objs
)
100 kvm-objs
:= $(kvm-objs-m
) $(kvm-objs-y
)
102 obj-
$(CONFIG_KVM_440
) += kvm.o
103 obj-
$(CONFIG_KVM_E500V2
) += kvm.o
104 obj-
$(CONFIG_KVM_E500MC
) += kvm.o
105 obj-
$(CONFIG_KVM_BOOK3S_64
) += kvm.o
106 obj-
$(CONFIG_KVM_BOOK3S_32
) += kvm.o
108 obj-y
+= $(kvm-book3s_64-builtin-objs-y
)