Hi,

Here's a fix for the problem described below.. this fixes compilation when
the kernel build directory != kernel source directory.

It's very simple, please add it to the tree,

Thanks, James

---------- Forwarded message ----------
From: James Pike <[EMAIL PROTECTED]>
Date: Wed, May 7, 2008 at 6:40 PM
Subject: kernel module won't compile when using seperate build dir
To: kvm-devel@lists.sourceforge.net


Hi,

I compile my kernel with make O=/home/james/compile/linux-2.6.25.1

kvm detects this as the kernel directory. However when building in the
"kernel" directory of the project it fails (it tries to include
linux/compiler.h which is only in /usr/src/linux/..).

This used to work but started breaking in kvm-61 onwards. I want to use kvm
61 but I don't want to dirty up my kernel source tree if I can help it.

I tried appending the source directory to the include path with -I but this
lead to another missing include (asm/types.h), then I added /usr/include to
the path as well and .. well it just got worse.

Thanks, James

Attachment: kvm-68-build-dir.patch
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to