Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Kernel-based Virtual Machine module |
| 3 | # |
| 4 | |
Michael Ellerman | ba55bd7 | 2009-06-09 20:48:51 +0000 | [diff] [blame] | 5 | subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror |
| 6 | |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 7 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/powerpc/kvm |
| 8 | |
Jerone Young | 12f6755 | 2008-07-14 14:00:02 +0200 | [diff] [blame] | 9 | common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o) |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 10 | |
Jerone Young | 12f6755 | 2008-07-14 14:00:02 +0200 | [diff] [blame] | 11 | common-objs-$(CONFIG_KVM_TRACE) += $(addprefix ../../../virt/kvm/, kvm_trace.o) |
| 12 | |
Hollis Blanchard | d9fbd03 | 2008-11-05 09:36:13 -0600 | [diff] [blame] | 13 | kvm-objs := $(common-objs-y) powerpc.o emulate.o |
Hollis Blanchard | 73e75b4 | 2008-12-02 15:51:57 -0600 | [diff] [blame] | 14 | obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 15 | obj-$(CONFIG_KVM) += kvm.o |
| 16 | |
| 17 | AFLAGS_booke_interrupts.o := -I$(obj) |
| 18 | |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 19 | kvm-440-objs := \ |
| 20 | booke.o \ |
Hollis Blanchard | d0c7dc0 | 2009-01-03 16:23:06 -0600 | [diff] [blame] | 21 | booke_emulate.o \ |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 22 | booke_interrupts.o \ |
| 23 | 44x.o \ |
| 24 | 44x_tlb.o \ |
| 25 | 44x_emulate.o |
Hollis Blanchard | 9dd921c | 2008-11-05 09:36:14 -0600 | [diff] [blame] | 26 | obj-$(CONFIG_KVM_440) += kvm-440.o |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 27 | |
| 28 | kvm-e500-objs := \ |
| 29 | booke.o \ |
| 30 | booke_emulate.o \ |
| 31 | booke_interrupts.o \ |
| 32 | e500.o \ |
| 33 | e500_tlb.o \ |
| 34 | e500_emulate.o |
| 35 | obj-$(CONFIG_KVM_E500) += kvm-e500.o |