kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: kvm@vger.kernel.org
Subject: [PATCH kvm-unit-tests] remove kerneldir
Date: Thu, 14 Jul 2016 11:49:47 +0200	[thread overview]
Message-ID: <1468489787-14130-1-git-send-email-pbonzini@redhat.com> (raw)

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


                 reply	other threads:[~2016-07-14  9:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468489787-14130-1-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).