diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-10-07 12:47:59 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-10-17 09:45:35 -0400 |
commit | 2ba9f0d8875073a2ed802fca0c25c9bfc4338439 (patch) | |
tree | ffe49a40ff604985c5f3f159ba336bdd90cb98cd /arch/powerpc/kvm/Makefile | |
parent | dba291f2ceacb833063179530eeb83a317a6cc95 (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/Makefile | 11 |
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) | |||
56 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) := \ | 56 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) := \ |
57 | book3s_64_vio_hv.o | 57 | book3s_64_vio_hv.o |
58 | 58 | ||
59 | kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ | 59 | kvm-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 |
77 | endif | 77 | endif |
78 | 78 | ||
79 | kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) += \ | 79 | kvm-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) += \ | |||
84 | kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \ | 84 | kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \ |
85 | book3s_hv_rm_xics.o | 85 | book3s_hv_rm_xics.o |
86 | 86 | ||
87 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) += \ | 87 | ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE |
88 | kvm-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) |
95 | endif | ||
94 | 96 | ||
95 | kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \ | 97 | kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \ |
96 | book3s_xics.o | 98 | book3s_xics.o |
@@ -131,4 +133,7 @@ obj-$(CONFIG_KVM_E500MC) += kvm.o | |||
131 | obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o | 133 | obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o |
132 | obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o | 134 | obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o |
133 | 135 | ||
136 | obj-$(CONFIG_KVM_BOOK3S_64_PR) += kvm-pr.o | ||
137 | obj-$(CONFIG_KVM_BOOK3S_64_HV) += kvm-hv.o | ||
138 | |||
134 | obj-y += $(kvm-book3s_64-builtin-objs-y) | 139 | obj-y += $(kvm-book3s_64-builtin-objs-y) |