Jerone Young wrote:
> 2 files changed, 25 insertions(+), 4 deletions(-)
> Makefile  |   21 ++++++++++++++++++++-
> configure |    8 +++++---
>
>
> This patch adds ability for kvm-userspace build system to sync needed kernel 
> headers locally without the need of compiled kernel source.
>
> Signed-off-by: Jerone Young <[EMAIL PROTECTED]>
>
> diff --git a/Makefile b/Makefile
> --- a/Makefile
> +++ b/Makefile
> @@ -7,7 +7,7 @@ rpmrelease = devel
>  
>  .PHONY: kernel user libkvm qemu bios vgabios extboot clean libfdt
>  
> -all: libkvm qemu
> +all: sync libkvm qemu
>   

'all' shouldn't include 'sync', since it's run by end users that have 
just the tarball, not an entire kernel.

>  ifneq '$(filter $(ARCH), x86_64 i386 ia64)' ''
>      all: $(if $(WANT_MODULE), kernel) user
>  endif
> @@ -69,6 +69,24 @@ install:
>       make -C libkvm DESTDIR="$(DESTDIR)" install
>       make -C qemu DESTDIR="$(DESTDIR)" install
>  
> +
> +ASM_DIR=$(ARCH)
> +ifneq '$(filter $(ARCH), i386 x86_64)' ''
> +     ASM_DIR=x86
> +endif
> +
> +sync:
> +     mkdir -p $(INCLUDES_DIR)
> +     mkdir -p $(INCLUDES_DIR)/asm-$(ASM_DIR)
> +     mkdir -p $(INCLUDES_DIR)/linux
> +     cp -f $(KERNELDIR)/include/asm-$(ASM_DIR)/kvm*.h \
> +             $(INCLUDES_DIR)/asm-$(ASM_DIR)/
> +     cp -f $(KERNELDIR)/include/linux/kvm*.h \
> +             $(KERNELDIR)/include/linux/compiler*.h \
> +             $(INCLUDES_DIR)/linux
> +     ln -sf  $(INCLUDES_DIR)/asm-$(ASM_DIR) $(INCLUDES_DIR)/asm
> +
> +
>   

Please use the existing infrastructure in kernel/Makefile.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
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