* [PATCH] cleanup arch/x86/kvm/Makefile
@ 2009-05-18 12:16 Christoph Hellwig
2009-05-18 14:05 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2009-05-18 12:16 UTC (permalink / raw)
To: kvm
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>
Index: linux-2.6/arch/x86/kvm/Makefile
===================================================================
--- linux-2.6.orig/arch/x86/kvm/Makefile 2009-05-18 13:18:03.783784453 +0200
+++ linux-2.6/arch/x86/kvm/Makefile 2009-05-18 14:13:27.983658979 +0200
@@ -1,22 +1,16 @@
-#
-# Makefile for Kernel-based Virtual Machine module
-#
-
-common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
- coalesced_mmio.o irq_comm.o)
-ifeq ($(CONFIG_KVM_TRACE),y)
-common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
-endif
-ifeq ($(CONFIG_IOMMU_API),y)
-common-objs += $(addprefix ../../../virt/kvm/, iommu.o)
-endif
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
-kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
- i8254.o
-obj-$(CONFIG_KVM) += kvm.o
-kvm-intel-objs = vmx.o
-obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
-kvm-amd-objs = svm.o
-obj-$(CONFIG_KVM_AMD) += kvm-amd.o
+kvm-y += $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
+ coalesced_mmio.o irq_comm.o)
+kvm-$(CONFIG_KVM_TRACE) += $(addprefix ../../../virt/kvm/, kvm_trace.o)
+kvm-$(CONFIG_IOMMU_API) += $(addprefix ../../../virt/kvm/, iommu.o)
+
+kvm-y += x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
+ i8254.o
+kvm-intel-y += vmx.o
+kvm-amd-y += svm.o
+
+obj-$(CONFIG_KVM) += kvm.o
+obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
+obj-$(CONFIG_KVM_AMD) += kvm-amd.o
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cleanup arch/x86/kvm/Makefile
2009-05-18 12:16 [PATCH] cleanup arch/x86/kvm/Makefile Christoph Hellwig
@ 2009-05-18 14:05 ` Avi Kivity
2009-05-18 14:07 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-05-18 14:05 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: kvm
Christoph Hellwig wrote:
> Use proper foo-y style list additions to cleanup all the conditionals,
> move module selection after compound object selection and remove the
> superflous comment.
>
>
I think you're patching the wrong tree.
> -kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
> - i8254.o
>
I have a timer.o here, for example.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cleanup arch/x86/kvm/Makefile
2009-05-18 14:05 ` Avi Kivity
@ 2009-05-18 14:07 ` Christoph Hellwig
2009-05-18 14:19 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2009-05-18 14:07 UTC (permalink / raw)
To: Avi Kivity; +Cc: Christoph Hellwig, kvm
On Mon, May 18, 2009 at 05:05:58PM +0300, Avi Kivity wrote:
> Christoph Hellwig wrote:
>> Use proper foo-y style list additions to cleanup all the conditionals,
>> move module selection after compound object selection and remove the
>> superflous comment.
>>
>>
>
> I think you're patching the wrong tree.
>
>> -kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
>> - i8254.o
>>
>
> I have a timer.o here, for example.
It's current mainline as of today.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cleanup arch/x86/kvm/Makefile
2009-05-18 14:07 ` Christoph Hellwig
@ 2009-05-18 14:19 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-05-18 14:19 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: kvm
Christoph Hellwig wrote:
>> I have a timer.o here, for example.
>>
>
> It's current mainline as of today
We're on a different today then. But I see the patch that changed it,
it only added timer.o, so I'll adjust the patch.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-18 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-18 12:16 [PATCH] cleanup arch/x86/kvm/Makefile Christoph Hellwig
2009-05-18 14:05 ` Avi Kivity
2009-05-18 14:07 ` Christoph Hellwig
2009-05-18 14:19 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox