diff options
author | Christoph Hellwig <hch@infradead.org> | 2009-05-18 08:16:14 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:40 -0400 |
commit | 284e9b0f5ad0c049efb7f145588782bf3d8be93e (patch) | |
tree | abbb9c6e6ef9c632779c1bd0c7494babacb69336 /arch/x86/kvm/Makefile | |
parent | ee3d29e8bee8d7c321279a9bd9bd25d4cfbf79b7 (diff) |
KVM: cleanup arch/x86/kvm/Makefile
Use proper foo-y style list additions to cleanup all the conditionals,
move module selection after compound object selection and remove the
superflous comment.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/Makefile')
-rw-r--r-- | arch/x86/kvm/Makefile | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile index b43c4efafe80..bee9512cd60d 100644 --- a/arch/x86/kvm/Makefile +++ b/arch/x86/kvm/Makefile | |||
@@ -1,22 +1,16 @@ | |||
1 | # | ||
2 | # Makefile for Kernel-based Virtual Machine module | ||
3 | # | ||
4 | |||
5 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ | ||
6 | coalesced_mmio.o irq_comm.o) | ||
7 | ifeq ($(CONFIG_KVM_TRACE),y) | ||
8 | common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o) | ||
9 | endif | ||
10 | ifeq ($(CONFIG_IOMMU_API),y) | ||
11 | common-objs += $(addprefix ../../../virt/kvm/, iommu.o) | ||
12 | endif | ||
13 | 1 | ||
14 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm | 2 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm |
15 | 3 | ||
16 | kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ | 4 | kvm-y += $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ |
17 | i8254.o timer.o | 5 | coalesced_mmio.o irq_comm.o) |
18 | obj-$(CONFIG_KVM) += kvm.o | 6 | kvm-$(CONFIG_KVM_TRACE) += $(addprefix ../../../virt/kvm/, kvm_trace.o) |
19 | kvm-intel-objs = vmx.o | 7 | kvm-$(CONFIG_IOMMU_API) += $(addprefix ../../../virt/kvm/, iommu.o) |
20 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o | 8 | |
21 | kvm-amd-objs = svm.o | 9 | kvm-y += x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ |
22 | obj-$(CONFIG_KVM_AMD) += kvm-amd.o | 10 | i8254.o timer.o |
11 | kvm-intel-y += vmx.o | ||
12 | kvm-amd-y += svm.o | ||
13 | |||
14 | obj-$(CONFIG_KVM) += kvm.o | ||
15 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o | ||
16 | obj-$(CONFIG_KVM_AMD) += kvm-amd.o | ||