diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-05-14 09:31:02 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-05-19 08:14:00 -0400 |
commit | 535cf7b3b13c7faed3dfabafb6598417de1129ca (patch) | |
tree | cf6f6a68f45625c1cab828920c73df427f7d17fe /arch/x86/kvm | |
parent | 7275acdfe29ba03ad2f6e150386900c4e2d43fb1 (diff) |
KVM: get rid of $(addprefix ../../../virt/kvm/, ...) in Makefiles
As requested by the KVM maintainers, remove the addprefix used to
refer to the main KVM code from the arch code, and replace it with
a KVM variable that does the same thing.
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: Christoffer Dall <cdall@cs.columbia.edu>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile index d609e1d84048..bf4fb04d0112 100644 --- a/arch/x86/kvm/Makefile +++ b/arch/x86/kvm/Makefile | |||
@@ -5,12 +5,13 @@ CFLAGS_x86.o := -I. | |||
5 | CFLAGS_svm.o := -I. | 5 | CFLAGS_svm.o := -I. |
6 | CFLAGS_vmx.o := -I. | 6 | CFLAGS_vmx.o := -I. |
7 | 7 | ||
8 | kvm-y += $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ | 8 | KVM := ../../../virt/kvm |
9 | coalesced_mmio.o irq_comm.o eventfd.o \ | 9 | |
10 | irqchip.o) | 10 | kvm-y += $(KVM)/kvm_main.o $(KVM)/ioapic.o \ |
11 | kvm-$(CONFIG_KVM_DEVICE_ASSIGNMENT) += $(addprefix ../../../virt/kvm/, \ | 11 | $(KVM)/coalesced_mmio.o $(KVM)/irq_comm.o \ |
12 | assigned-dev.o iommu.o) | 12 | $(KVM)/eventfd.o $(KVM)/irqchip.o |
13 | kvm-$(CONFIG_KVM_ASYNC_PF) += $(addprefix ../../../virt/kvm/, async_pf.o) | 13 | kvm-$(CONFIG_KVM_DEVICE_ASSIGNMENT) += $(KVM)/assigned-dev.o $(KVM)/iommu.o |
14 | kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o | ||
14 | 15 | ||
15 | kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \ | 16 | kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \ |
16 | i8254.o cpuid.o pmu.o | 17 | i8254.o cpuid.o pmu.o |