Merge branches 'acpi-dock', 'acpi-ec' and 'acpi-scan'
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / kvm / Makefile
1 #
2 # Makefile for Kernel-based Virtual Machine module
3 #
4
5 subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6
7 ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm
8 KVM := ../../../virt/kvm
9
10 common-objs-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \
11                 $(KVM)/eventfd.o
12
13 CFLAGS_e500_mmu.o := -I.
14 CFLAGS_e500_mmu_host.o := -I.
15 CFLAGS_emulate.o  := -I.
16 CFLAGS_emulate_loadstore.o  := -I.
17
18 common-objs-y += powerpc.o emulate.o emulate_loadstore.o
19 obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
20 obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o
21
22 AFLAGS_booke_interrupts.o := -I$(obj)
23
24 kvm-e500-objs := \
25         $(common-objs-y) \
26         booke.o \
27         booke_emulate.o \
28         booke_interrupts.o \
29         e500.o \
30         e500_mmu.o \
31         e500_mmu_host.o \
32         e500_emulate.o
33 kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs)
34
35 kvm-e500mc-objs := \
36         $(common-objs-y) \
37         booke.o \
38         booke_emulate.o \
39         bookehv_interrupts.o \
40         e500mc.o \
41         e500_mmu.o \
42         e500_mmu_host.o \
43         e500_emulate.o
44 kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs)
45
46 kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) := \
47         book3s_64_vio_hv.o
48
49 kvm-pr-y := \
50         fpu.o \
51         emulate.o \
52         book3s_paired_singles.o \
53         book3s_pr.o \
54         book3s_pr_papr.o \
55         book3s_emulate.o \
56         book3s_interrupts.o \
57         book3s_mmu_hpte.o \
58         book3s_64_mmu_host.o \
59         book3s_64_mmu.o \
60         book3s_32_mmu.o
61
62 ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE
63 kvm-book3s_64-module-objs := \
64         $(KVM)/coalesced_mmio.o
65
66 kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) += \
67         book3s_rmhandlers.o
68 endif
69
70 kvm-hv-y += \
71         book3s_hv.o \
72         book3s_hv_interrupts.o \
73         book3s_64_mmu_hv.o
74
75 kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \
76         book3s_hv_rm_xics.o
77
78 ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
79 kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) += \
80         book3s_hv_rmhandlers.o \
81         book3s_hv_rm_mmu.o \
82         book3s_hv_ras.o \
83         book3s_hv_builtin.o \
84         $(kvm-book3s_64-builtin-xics-objs-y)
85 endif
86
87 kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \
88         book3s_xics.o
89
90 kvm-book3s_64-module-objs += \
91         $(KVM)/kvm_main.o \
92         $(KVM)/eventfd.o \
93         powerpc.o \
94         emulate_loadstore.o \
95         book3s.o \
96         book3s_64_vio.o \
97         book3s_rtas.o \
98         $(kvm-book3s_64-objs-y)
99
100 kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs)
101
102 kvm-book3s_32-objs := \
103         $(common-objs-y) \
104         fpu.o \
105         book3s_paired_singles.o \
106         book3s.o \
107         book3s_pr.o \
108         book3s_emulate.o \
109         book3s_interrupts.o \
110         book3s_mmu_hpte.o \
111         book3s_32_mmu_host.o \
112         book3s_32_mmu.o
113 kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)
114
115 kvm-objs-$(CONFIG_KVM_MPIC) += mpic.o
116 kvm-objs-$(CONFIG_HAVE_KVM_IRQ_ROUTING) += $(KVM)/irqchip.o
117
118 kvm-objs := $(kvm-objs-m) $(kvm-objs-y)
119
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
124
125 obj-$(CONFIG_KVM_BOOK3S_64_PR) += kvm-pr.o
126 obj-$(CONFIG_KVM_BOOK3S_64_HV) += kvm-hv.o
127
128 obj-y += $(kvm-book3s_64-builtin-objs-y)