[PATCH kvm-unit-tests] remove kerneldir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kvm-unit-tests is independent of the kernel source code, do not add it
to the include path.  This fixes i386 compilation.

Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 configure         | 6 ------
 x86/Makefile.i386 | 1 -
 2 files changed, 7 deletions(-)

diff --git a/configure b/configure
index ca0ef83..995c8fa 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,6 @@
 #!/bin/bash
 
 prefix=/usr/local
-kerneldir=/lib/modules/$(uname -r)/build
 cc=gcc
 ld=ld
 objcopy=objcopy
@@ -25,7 +24,6 @@ usage() {
 	    --cc=CC		   c compiler to use ($cc)
 	    --ld=LD		   ld linker to use ($ld)
 	    --prefix=PREFIX        where to install things ($prefix)
-	    --kerneldir=DIR        kernel build directory for kvm.h ($kerneldir)
 	    --endian=ENDIAN        endianness to compile for (little or big, ppc64 only)
 	    --[enable|disable]-pretty-print-stacks
 	                           enable or disable pretty stack printing (enabled by default)
@@ -44,9 +42,6 @@ while [[ "$1" = -* ]]; do
 	--prefix)
 	    prefix="$arg"
 	    ;;
-	--kerneldir)
-	    kerneldir="$arg"
-	    ;;
         --arch)
 	    arch="$arg"
 	    ;;
@@ -145,7 +140,6 @@ ln -s $asm lib/asm
 # create the config
 cat <<EOF > config.mak
 PREFIX=$prefix
-KERNELDIR=$(readlink -f $kerneldir)
 HOST=$host
 ARCH=$arch
 ARCH_NAME=$arch_name
diff --git a/x86/Makefile.i386 b/x86/Makefile.i386
index c4176c4..284b9e5 100644
--- a/x86/Makefile.i386
+++ b/x86/Makefile.i386
@@ -1,7 +1,6 @@
 cstart.o = $(TEST_DIR)/cstart.o
 bits = 32
 ldarch = elf32-i386
-CFLAGS += -I $(KERNELDIR)/include
 
 cflatobjs += lib/x86/setjmp32.o
 
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux