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 | |
matt mooney | 4108d9b | 2010-09-22 20:51:09 +0000 | [diff] [blame] | 7 | ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 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 | |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 15 | 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 |
Alexander Graf | c14dea0 | 2010-04-16 00:11:41 +0200 | [diff] [blame] | 17 | obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 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 := \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 22 | $(common-objs-y) \ |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 23 | booke.o \ |
Hollis Blanchard | d0c7dc0 | 2009-01-03 16:23:06 -0600 | [diff] [blame] | 24 | booke_emulate.o \ |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 25 | booke_interrupts.o \ |
| 26 | 44x.o \ |
| 27 | 44x_tlb.o \ |
| 28 | 44x_emulate.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 29 | kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs) |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 30 | |
| 31 | kvm-e500-objs := \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 32 | $(common-objs-y) \ |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 33 | booke.o \ |
| 34 | booke_emulate.o \ |
| 35 | booke_interrupts.o \ |
| 36 | e500.o \ |
| 37 | e500_tlb.o \ |
| 38 | e500_emulate.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 39 | kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs) |
| 40 | |
| 41 | kvm-book3s_64-objs := \ |
| 42 | $(common-objs-y) \ |
Alexander Graf | 963cf3d | 2010-02-19 11:00:40 +0100 | [diff] [blame] | 43 | fpu.o \ |
Alexander Graf | 831317b | 2010-02-19 11:00:44 +0100 | [diff] [blame] | 44 | book3s_paired_singles.o \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 45 | book3s.o \ |
Alexander Graf | 2191d65 | 2010-04-16 00:11:32 +0200 | [diff] [blame] | 46 | book3s_emulate.o \ |
| 47 | book3s_interrupts.o \ |
Alexander Graf | fef093be | 2010-06-30 15:18:46 +0200 | [diff] [blame] | 48 | book3s_mmu_hpte.o \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 49 | book3s_64_mmu_host.o \ |
| 50 | book3s_64_mmu.o \ |
| 51 | book3s_32_mmu.o |
| 52 | kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-objs) |
| 53 | |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 54 | kvm-book3s_32-objs := \ |
| 55 | $(common-objs-y) \ |
| 56 | fpu.o \ |
| 57 | book3s_paired_singles.o \ |
| 58 | book3s.o \ |
| 59 | book3s_emulate.o \ |
| 60 | book3s_interrupts.o \ |
Alexander Graf | fef093be | 2010-06-30 15:18:46 +0200 | [diff] [blame] | 61 | book3s_mmu_hpte.o \ |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 62 | book3s_32_mmu_host.o \ |
| 63 | book3s_32_mmu.o |
| 64 | kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs) |
| 65 | |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 66 | kvm-objs := $(kvm-objs-m) $(kvm-objs-y) |
| 67 | |
| 68 | obj-$(CONFIG_KVM_440) += kvm.o |
| 69 | obj-$(CONFIG_KVM_E500) += kvm.o |
| 70 | obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 71 | obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 72 | |