repository: /home/avi/kvm branch: master commit e33fdc35209caa2f7fc0af19072aca7a677921e9 Author: Avi Kivity <[EMAIL PROTECTED]> Date: Mon Nov 26 17:51:17 2007 +0200
kvm: external module: adjust to include files having kernel config Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/kernel/Makefile b/kernel/Makefile index 0c8f34f..3ba511a 100644 --- a/kernel/Makefile +++ b/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) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits