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 | |
Scott Wood | 73196cd3 | 2011-12-20 15:34:47 +0000 | [diff] [blame] | 41 | kvm-e500mc-objs := \ |
| 42 | $(common-objs-y) \ |
| 43 | booke.o \ |
| 44 | booke_emulate.o \ |
| 45 | bookehv_interrupts.o \ |
| 46 | e500mc.o \ |
| 47 | e500_tlb.o \ |
| 48 | e500_emulate.o |
| 49 | kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs) |
| 50 | |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 51 | kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ |
| 52 | ../../../virt/kvm/coalesced_mmio.o \ |
Alexander Graf | 963cf3d | 2010-02-19 11:00:40 +0100 | [diff] [blame] | 53 | fpu.o \ |
Alexander Graf | 831317b | 2010-02-19 11:00:44 +0100 | [diff] [blame] | 54 | book3s_paired_singles.o \ |
Paul Mackerras | f05ed4d | 2011-06-29 00:17:58 +0000 | [diff] [blame] | 55 | book3s_pr.o \ |
Alexander Graf | 0254f074 | 2011-08-08 17:21:15 +0200 | [diff] [blame] | 56 | book3s_pr_papr.o \ |
Alexander Graf | 2191d65 | 2010-04-16 00:11:32 +0200 | [diff] [blame] | 57 | book3s_emulate.o \ |
| 58 | book3s_interrupts.o \ |
Alexander Graf | fef093be | 2010-06-30 15:18:46 +0200 | [diff] [blame] | 59 | book3s_mmu_hpte.o \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 60 | book3s_64_mmu_host.o \ |
| 61 | book3s_64_mmu.o \ |
| 62 | book3s_32_mmu.o |
Paul Mackerras | 177339d | 2011-07-23 17:41:11 +1000 | [diff] [blame] | 63 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ |
| 64 | book3s_rmhandlers.o |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 65 | |
| 66 | kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \ |
| 67 | book3s_hv.o \ |
| 68 | book3s_hv_interrupts.o \ |
| 69 | book3s_64_mmu_hv.o |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 70 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \ |
Paul Mackerras | 177339d | 2011-07-23 17:41:11 +1000 | [diff] [blame] | 71 | book3s_hv_rmhandlers.o \ |
David Gibson | 54738c0 | 2011-06-29 00:22:41 +0000 | [diff] [blame] | 72 | book3s_hv_rm_mmu.o \ |
Paul Mackerras | aa04b4c | 2011-06-29 00:25:44 +0000 | [diff] [blame] | 73 | book3s_64_vio_hv.o \ |
| 74 | book3s_hv_builtin.o |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 75 | |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 76 | kvm-book3s_64-module-objs := \ |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 77 | ../../../virt/kvm/kvm_main.o \ |
| 78 | powerpc.o \ |
| 79 | emulate.o \ |
| 80 | book3s.o \ |
| 81 | $(kvm-book3s_64-objs-y) |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 82 | |
| 83 | kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs) |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 84 | |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 85 | kvm-book3s_32-objs := \ |
| 86 | $(common-objs-y) \ |
| 87 | fpu.o \ |
| 88 | book3s_paired_singles.o \ |
| 89 | book3s.o \ |
Paul Mackerras | f05ed4d | 2011-06-29 00:17:58 +0000 | [diff] [blame] | 90 | book3s_pr.o \ |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 91 | book3s_emulate.o \ |
| 92 | book3s_interrupts.o \ |
Alexander Graf | fef093be | 2010-06-30 15:18:46 +0200 | [diff] [blame] | 93 | book3s_mmu_hpte.o \ |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 94 | book3s_32_mmu_host.o \ |
| 95 | book3s_32_mmu.o |
| 96 | kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs) |
| 97 | |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 98 | kvm-objs := $(kvm-objs-m) $(kvm-objs-y) |
| 99 | |
| 100 | obj-$(CONFIG_KVM_440) += kvm.o |
| 101 | obj-$(CONFIG_KVM_E500) += kvm.o |
Scott Wood | 73196cd3 | 2011-12-20 15:34:47 +0000 | [diff] [blame] | 102 | obj-$(CONFIG_KVM_E500MC) += kvm.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 103 | obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 104 | obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 105 | |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 106 | obj-y += $(kvm-book3s_64-builtin-objs-y) |