aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/Makefile
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2013-10-07 12:47:59 -0400
committerAlexander Graf <agraf@suse.de>2013-10-17 09:45:35 -0400
commit2ba9f0d8875073a2ed802fca0c25c9bfc4338439 (patch)
treeffe49a40ff604985c5f3f159ba336bdd90cb98cd /arch/powerpc/kvm/Makefile
parentdba291f2ceacb833063179530eeb83a317a6cc95 (diff)
kvm: powerpc: book3s: Support building HV and PR KVM as module
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> [agraf: squash in compile fix] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/Makefile')
-rw-r--r--arch/powerpc/kvm/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm/Makefile
index fa17b337bb96..ce569b6bf4d8 100644
--- a/arch/powerpc/kvm/Makefile
+++ b/arch/powerpc/kvm/Makefile
@@ -56,7 +56,7 @@ kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs)
56kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) := \ 56kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) := \
57 book3s_64_vio_hv.o 57 book3s_64_vio_hv.o
58 58
59kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ 59kvm-pr-y := \
60 fpu.o \ 60 fpu.o \
61 book3s_paired_singles.o \ 61 book3s_paired_singles.o \
62 book3s_pr.o \ 62 book3s_pr.o \
@@ -76,7 +76,7 @@ kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) += \
76 book3s_rmhandlers.o 76 book3s_rmhandlers.o
77endif 77endif
78 78
79kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) += \ 79kvm-hv-y += \
80 book3s_hv.o \ 80 book3s_hv.o \
81 book3s_hv_interrupts.o \ 81 book3s_hv_interrupts.o \
82 book3s_64_mmu_hv.o 82 book3s_64_mmu_hv.o
@@ -84,13 +84,15 @@ kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) += \
84kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \ 84kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \
85 book3s_hv_rm_xics.o 85 book3s_hv_rm_xics.o
86 86
87kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) += \ 87ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
88kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) += \
88 book3s_hv_rmhandlers.o \ 89 book3s_hv_rmhandlers.o \
89 book3s_hv_rm_mmu.o \ 90 book3s_hv_rm_mmu.o \
90 book3s_hv_ras.o \ 91 book3s_hv_ras.o \
91 book3s_hv_builtin.o \ 92 book3s_hv_builtin.o \
92 book3s_hv_cma.o \ 93 book3s_hv_cma.o \
93 $(kvm-book3s_64-builtin-xics-objs-y) 94 $(kvm-book3s_64-builtin-xics-objs-y)
95endif
94 96
95kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \ 97kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \
96 book3s_xics.o 98 book3s_xics.o
@@ -131,4 +133,7 @@ obj-$(CONFIG_KVM_E500MC) += kvm.o
131obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o 133obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
132obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o 134obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
133 135
136obj-$(CONFIG_KVM_BOOK3S_64_PR) += kvm-pr.o
137obj-$(CONFIG_KVM_BOOK3S_64_HV) += kvm-hv.o
138
134obj-y += $(kvm-book3s_64-builtin-objs-y) 139obj-y += $(kvm-book3s_64-builtin-objs-y)