kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH kvm-unit-tests] remove kerneldir
@ 2016-07-14  9:49 Paolo Bonzini
  0 siblings, 0 replies; only message in thread
From: Paolo Bonzini @ 2016-07-14  9:49 UTC (permalink / raw)
  To: kvm

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@redhat.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-14  9:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14  9:49 [PATCH kvm-unit-tests] remove kerneldir Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).