From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: Re: building kvm-userspace with separate kernel object directory? Date: Mon, 07 Jan 2008 15:50:12 -0600 Message-ID: <1199742612.5855.7.camel@thinkpad> References: <1199740378.5741.8.camel@basalt> <1199741354.5741.15.camel@basalt> Reply-To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Hollis Blanchard Return-path: In-Reply-To: <1199741354.5741.15.camel@basalt> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Whoops should have replied to this one. So this does not solve the issue. As it point it includes /includes .. just you have to compile the kernel directory so that "include/asm" symlink in the kernel directory is made. This creates a symlink to the symlink and that symlnk which is already in include path -I $(KERNELDIR)/include What would probably be better is to add a check to see if /include/asm is created. If it's not give the user an error to compile there kernel source. On Mon, 2008-01-07 at 15:29 -0600, Hollis Blanchard wrote: > Create an "asm" symlink from libkvm into the kernel source directory. > This allows one to use kernel trees built with the O= option. > > Signed-off-by: Hollis Blanchard > > --- > This is all I can come up with... it should work by accident for user/ > and qemu/ directories too, since they use "-I ../libkvm". > > diff --git a/configure b/configure > --- a/configure > +++ b/configure > @@ -130,6 +130,8 @@ fi > --arch="$arch" \ > ${cross_prefix:+"--cross-prefix=$cross_prefix"}) > > +(cd libkvm; ln -sf "$kerneldir/include/asm-$arch" asm) > + > #configure qemu > (cd qemu; ./configure --target-list=$target_exec \ > --disable-kqemu \ > diff --git a/libkvm/Makefile b/libkvm/Makefile > --- a/libkvm/Makefile > +++ b/libkvm/Makefile > @@ -10,7 +10,7 @@ CFLAGS += $(autodepend-flags) -g -fomit- > CFLAGS += $(autodepend-flags) -g -fomit-frame-pointer -Wall > CFLAGS += $(call cc-option, -fno-stack-protector, "") > CFLAGS += $(call cc-option, -fno-stack-protector-all, "") > -CFLAGS += -I $(KERNELDIR)/include > +CFLAGS += -I $(KERNELDIR)/include -I . > > LDFLAGS += $(CFLAGS) > > @@ -35,4 +35,4 @@ install: > -include .*.d > > clean: > - $(RM) *.o *.a .*.d > + $(RM) *.o *.a .*.d asm > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace