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