aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-26 17:51:17 +0200
committerAvi Kivity <avi@qumranet.com>2007-11-26 17:51:17 +0200
commit26755a000976bb435a61b286697205046f4102b0 (patch)
tree0d1f44dd97cf6936501e285bd38a8f7dbb9b5aae
parent958b0d0a03fe764c74a68ead36f815e7a21dba2c (diff)
kvm: external module: adjust to include files having kernel configkvm-54rc1kvm-54
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--kvm/kernel/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvm/kernel/Makefile b/kvm/kernel/Makefile
index 0c8f34fe8..3ba511a66 100644
--- a/kvm/kernel/Makefile
+++ b/kvm/kernel/Makefile
@@ -17,6 +17,8 @@ hack = mv $1 $1.orig && \
awk -v version=$(version) -f hack-module.awk $1.orig \
| sed 's/\blapic\b/l_apic/g' > $1 && rm $1.orig
+unifdef = mv $1 $1.orig && \
+ unifdef -DCONFIG_X86 $1.orig > $1; rm $1.orig
all::
$(MAKE) -C $(KERNELDIR) M=`pwd` "$$@"
@@ -29,6 +31,10 @@ sync:
rsync "$(LINUX)"/include/asm-x86/kvm_para.h include/asm
rsync "$(LINUX)"/include/asm-x86/kvm.h include/asm
+ $(call unifdef, include/linux/kvm.h)
+ $(call unifdef, include/linux/kvm_para.h)
+ $(call unifdef, include/asm/kvm.h)
+ $(call unifdef, include/asm/kvm_para.h)
$(call hack, kvm_main.c)
$(call hack, mmu.c)
$(call hack, vmx.c)