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 |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 8 | KVM := ../../../virt/kvm |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 9 | |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 10 | common-objs-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \ |
| 11 | $(KVM)/eventfd.o |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 12 | |
Marcelo Tosatti | 46f43c6 | 2009-06-18 11:47:27 -0300 | [diff] [blame] | 13 | CFLAGS_44x_tlb.o := -I. |
Alexander Graf | b71c9e2 | 2013-01-11 15:22:45 +0100 | [diff] [blame] | 14 | CFLAGS_e500_mmu.o := -I. |
| 15 | CFLAGS_e500_mmu_host.o := -I. |
Marcelo Tosatti | 46f43c6 | 2009-06-18 11:47:27 -0300 | [diff] [blame] | 16 | CFLAGS_emulate.o := -I. |
| 17 | |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 18 | common-objs-y += powerpc.o emulate.o |
Hollis Blanchard | 73e75b4 | 2008-12-02 15:51:57 -0600 | [diff] [blame] | 19 | obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o |
Alexander Graf | c14dea0 | 2010-04-16 00:11:41 +0200 | [diff] [blame] | 20 | obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 21 | |
| 22 | AFLAGS_booke_interrupts.o := -I$(obj) |
| 23 | |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 24 | kvm-440-objs := \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 25 | $(common-objs-y) \ |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 26 | booke.o \ |
Hollis Blanchard | d0c7dc0 | 2009-01-03 16:23:06 -0600 | [diff] [blame] | 27 | booke_emulate.o \ |
Hollis Blanchard | 75f74f0 | 2008-11-05 09:36:16 -0600 | [diff] [blame] | 28 | booke_interrupts.o \ |
| 29 | 44x.o \ |
| 30 | 44x_tlb.o \ |
| 31 | 44x_emulate.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 32 | kvm-objs-$(CONFIG_KVM_440) := $(kvm-440-objs) |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 33 | |
| 34 | kvm-e500-objs := \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 35 | $(common-objs-y) \ |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 36 | booke.o \ |
| 37 | booke_emulate.o \ |
| 38 | booke_interrupts.o \ |
| 39 | e500.o \ |
Alexander Graf | b71c9e2 | 2013-01-11 15:22:45 +0100 | [diff] [blame] | 40 | e500_mmu.o \ |
| 41 | e500_mmu_host.o \ |
Hollis Blanchard | bc8080c | 2009-01-03 16:23:10 -0600 | [diff] [blame] | 42 | e500_emulate.o |
Alexander Graf | bf7ca4b | 2012-02-15 23:40:00 +0000 | [diff] [blame] | 43 | kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs) |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 44 | |
Scott Wood | 73196cd | 2011-12-20 15:34:47 +0000 | [diff] [blame] | 45 | kvm-e500mc-objs := \ |
| 46 | $(common-objs-y) \ |
| 47 | booke.o \ |
| 48 | booke_emulate.o \ |
| 49 | bookehv_interrupts.o \ |
| 50 | e500mc.o \ |
Alexander Graf | b71c9e2 | 2013-01-11 15:22:45 +0100 | [diff] [blame] | 51 | e500_mmu.o \ |
| 52 | e500_mmu_host.o \ |
Scott Wood | 73196cd | 2011-12-20 15:34:47 +0000 | [diff] [blame] | 53 | e500_emulate.o |
| 54 | kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs) |
| 55 | |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 56 | kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 57 | $(KVM)/coalesced_mmio.o \ |
Alexander Graf | 963cf3d | 2010-02-19 11:00:40 +0100 | [diff] [blame] | 58 | fpu.o \ |
Alexander Graf | 831317b | 2010-02-19 11:00:44 +0100 | [diff] [blame] | 59 | book3s_paired_singles.o \ |
Paul Mackerras | f05ed4d | 2011-06-29 00:17:58 +0000 | [diff] [blame] | 60 | book3s_pr.o \ |
Alexander Graf | 0254f074 | 2011-08-08 17:21:15 +0200 | [diff] [blame] | 61 | book3s_pr_papr.o \ |
Benjamin Herrenschmidt | f31e65e | 2012-03-15 21:58:34 +0000 | [diff] [blame] | 62 | book3s_64_vio_hv.o \ |
Alexander Graf | 2191d65 | 2010-04-16 00:11:32 +0200 | [diff] [blame] | 63 | book3s_emulate.o \ |
| 64 | book3s_interrupts.o \ |
Alexander Graf | fef093be | 2010-06-30 15:18:46 +0200 | [diff] [blame] | 65 | book3s_mmu_hpte.o \ |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 66 | book3s_64_mmu_host.o \ |
| 67 | book3s_64_mmu.o \ |
| 68 | book3s_32_mmu.o |
Paul Mackerras | 177339d | 2011-07-23 17:41:11 +1000 | [diff] [blame] | 69 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_PR) := \ |
| 70 | book3s_rmhandlers.o |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 71 | |
| 72 | kvm-book3s_64-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \ |
| 73 | book3s_hv.o \ |
| 74 | book3s_hv_interrupts.o \ |
| 75 | book3s_64_mmu_hv.o |
Benjamin Herrenschmidt | e7d26f2 | 2013-04-17 20:31:15 +0000 | [diff] [blame] | 76 | kvm-book3s_64-builtin-xics-objs-$(CONFIG_KVM_XICS) := \ |
| 77 | book3s_hv_rm_xics.o |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 78 | kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HV) := \ |
Paul Mackerras | 177339d | 2011-07-23 17:41:11 +1000 | [diff] [blame] | 79 | book3s_hv_rmhandlers.o \ |
David Gibson | 54738c0 | 2011-06-29 00:22:41 +0000 | [diff] [blame] | 80 | book3s_hv_rm_mmu.o \ |
Paul Mackerras | aa04b4c | 2011-06-29 00:25:44 +0000 | [diff] [blame] | 81 | book3s_64_vio_hv.o \ |
Paul Mackerras | b4072df | 2012-11-23 22:37:50 +0000 | [diff] [blame] | 82 | book3s_hv_ras.o \ |
Benjamin Herrenschmidt | e7d26f2 | 2013-04-17 20:31:15 +0000 | [diff] [blame] | 83 | book3s_hv_builtin.o \ |
Aneesh Kumar K.V | fa61a4e | 2013-07-02 11:15:16 +0530 | [diff] [blame] | 84 | book3s_hv_cma.o \ |
Benjamin Herrenschmidt | e7d26f2 | 2013-04-17 20:31:15 +0000 | [diff] [blame] | 85 | $(kvm-book3s_64-builtin-xics-objs-y) |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 86 | |
Benjamin Herrenschmidt | bc5ad3f | 2013-04-17 20:30:26 +0000 | [diff] [blame] | 87 | kvm-book3s_64-objs-$(CONFIG_KVM_XICS) += \ |
| 88 | book3s_xics.o |
| 89 | |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 90 | kvm-book3s_64-module-objs := \ |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 91 | $(KVM)/kvm_main.o \ |
| 92 | $(KVM)/eventfd.o \ |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 93 | powerpc.o \ |
| 94 | emulate.o \ |
| 95 | book3s.o \ |
Benjamin Herrenschmidt | f31e65e | 2012-03-15 21:58:34 +0000 | [diff] [blame] | 96 | book3s_64_vio.o \ |
Michael Ellerman | 8e591cb | 2013-04-17 20:30:00 +0000 | [diff] [blame] | 97 | book3s_rtas.o \ |
Paul Mackerras | de56a94 | 2011-06-29 00:21:34 +0000 | [diff] [blame] | 98 | $(kvm-book3s_64-objs-y) |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 99 | |
| 100 | kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs) |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 101 | |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 102 | kvm-book3s_32-objs := \ |
| 103 | $(common-objs-y) \ |
| 104 | fpu.o \ |
| 105 | book3s_paired_singles.o \ |
| 106 | book3s.o \ |
Paul Mackerras | f05ed4d | 2011-06-29 00:17:58 +0000 | [diff] [blame] | 107 | book3s_pr.o \ |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 108 | book3s_emulate.o \ |
| 109 | book3s_interrupts.o \ |
Alexander Graf | fef093be | 2010-06-30 15:18:46 +0200 | [diff] [blame] | 110 | book3s_mmu_hpte.o \ |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 111 | book3s_32_mmu_host.o \ |
| 112 | book3s_32_mmu.o |
| 113 | kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs) |
| 114 | |
Scott Wood | 5df554a | 2013-04-12 14:08:46 +0000 | [diff] [blame] | 115 | kvm-objs-$(CONFIG_KVM_MPIC) += mpic.o |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 116 | kvm-objs-$(CONFIG_HAVE_KVM_IRQ_ROUTING) += $(KVM)/irqchip.o |
Scott Wood | 5df554a | 2013-04-12 14:08:46 +0000 | [diff] [blame] | 117 | |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 118 | kvm-objs := $(kvm-objs-m) $(kvm-objs-y) |
| 119 | |
| 120 | obj-$(CONFIG_KVM_440) += kvm.o |
Alexander Graf | bf7ca4b | 2012-02-15 23:40:00 +0000 | [diff] [blame] | 121 | obj-$(CONFIG_KVM_E500V2) += kvm.o |
Scott Wood | 73196cd | 2011-12-20 15:34:47 +0000 | [diff] [blame] | 122 | obj-$(CONFIG_KVM_E500MC) += kvm.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 123 | obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o |
Alexander Graf | 4f84139 | 2010-04-16 00:11:58 +0200 | [diff] [blame] | 124 | obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o |
Alexander Graf | c4f9c77 | 2009-10-30 05:47:24 +0000 | [diff] [blame] | 125 | |
Paul Mackerras | a8606e2 | 2011-06-29 00:22:05 +0000 | [diff] [blame] | 126 | obj-y += $(kvm-book3s_64-builtin-objs-y) |