Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
[linux-2.6.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 EXTRA_CFLAGS += -Ivirt/kvm -Iarch/powerpc/kvm
8
9 common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
10
11 CFLAGS_44x_tlb.o  := -I.
12 CFLAGS_e500_tlb.o := -I.
13 CFLAGS_emulate.o  := -I.
14
15 common-objs-y += powerpc.o emulate.o
16 obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
17 obj-$(CONFIG_KVM_BOOK3S_64_HANDLER) += book3s_64_exports.o
18
19 AFLAGS_booke_interrupts.o := -I$(obj)
20
21 kvm-440-objs := \
22         $(common-objs-y) \
23         booke.o \
24         booke_emulate.o \
25         booke_interrupts.o \
26         44x.o \
27         44x_tlb.o \
28         44x_emulate.o
29 kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs)
30
31 kvm-e500-objs := \
32         $(common-objs-y) \
33         booke.o \
34         booke_emulate.o \
35         booke_interrupts.o \
36         e500.o \
37         e500_tlb.o \
38         e500_emulate.o
39 kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs)
40
41 kvm-book3s_64-objs := \
42         $(common-objs-y) \
43         book3s.o \
44         book3s_64_emulate.o \
45         book3s_64_interrupts.o \
46         book3s_64_mmu_host.o \
47         book3s_64_mmu.o \
48         book3s_32_mmu.o
49 kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-objs)
50
51 kvm-objs := $(kvm-objs-m) $(kvm-objs-y)
52
53 obj-$(CONFIG_KVM_440) += kvm.o
54 obj-$(CONFIG_KVM_E500) += kvm.o
55 obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
56