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 | |
Marcelo Tosatti | 46f43c6 | 2009-06-18 11:47:27 -0300 | [diff] [blame] | 11 | CFLAGS_44x_tlb.o := -I. |
| 12 | CFLAGS_e500_tlb.o := -I. |
| 13 | CFLAGS_emulate.o := -I. |
| 14 | |
Hollis Blanchard | d9fbd03 | 2008-11-05 09:36:13 -0600 | [diff] [blame] | 15 | kvm-objs := $(common-objs-y) powerpc.o emulate.o |
Hollis Blanchard | 73e75b4 | 2008-12-02 15:51:57 -0600 | [diff] [blame] | 16 | obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 17 | obj-$(CONFIG_KVM) += kvm.o |
| 18 | |
| 19 | AFLAGS_booke_interrupts.o := -I$(obj) |
| 20 | |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 21 | kvm-440-objs := \ |
| 22 | booke.o \ |
Hollis Blanchard | d0c7dc0 | 2009-01-03 16:23:06 -0600 | [diff] [blame] | 23 | booke_emulate.o \ |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 24 | booke_interrupts.o \ |
| 25 | 44x.o \ |
| 26 | 44x_tlb.o \ |
| 27 | 44x_emulate.o |
Hollis Blanchard | 9dd921c | 2008-11-05 09:36:14 -0600 | [diff] [blame] | 28 | obj-$(CONFIG_KVM_440) += kvm-440.o |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 29 | |
| 30 | kvm-e500-objs := \ |
| 31 | booke.o \ |
| 32 | booke_emulate.o \ |
| 33 | booke_interrupts.o \ |
| 34 | e500.o \ |
| 35 | e500_tlb.o \ |
| 36 | e500_emulate.o |
| 37 | obj-$(CONFIG_KVM_E500) += kvm-e500.o |