public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: [PATCH 2/5] Enable configure script in user directory for cross	compile
Date: Mon, 08 Oct 2007 00:10:07 -0500	[thread overview]
Message-ID: <1191820207.8106.26.camel@laptop> (raw)

[-- Attachment #1: Type: text/plain, Size: 154 bytes --]

This patch enables configure script in "user" directory fro cross
compile.

Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

[-- Attachment #2: user_dir_config_script_cross_compile --]
[-- Type: text/x-patch, Size: 1709 bytes --]

diff -r 7c1e3915d77c configure
--- a/configure	Thu Oct 04 14:33:18 2007 -0500
+++ b/configure	Thu Oct 04 14:34:26 2007 -0500
@@ -20,6 +20,7 @@ usage() {
 	    --with-patched-kernel  don't use external module
 	    --kerneldir=DIR        kernel build directory ($kerneldir)
 	    --qemu-cc="$qemu_cc"   compiler for qemu (needs gcc3.x) ($qemu_cc)
+	    --target-cpu	   target cpu model for qemu
 	    --disable-gcc-check    don't insist on gcc-3.x
                                    - this will break running without kvm
 EOF
diff -r 7c1e3915d77c user/configure
--- a/user/configure	Thu Oct 04 14:33:18 2007 -0500
+++ b/user/configure	Thu Oct 04 14:33:18 2007 -0500
@@ -2,13 +2,20 @@
 
 prefix=/usr/local
 kerneldir=/lib/modules/$(uname -r)/build
+cc=gcc
+ld=ld
+arch=`uname -m | sed -e s/i.86/i386/`
+cross_prefix=
 
 usage() {
     cat <<-EOF
 	Usage: $0 [options]
 
 	Options include:
-
+	    --arch=ARCH            architecture to compile for ($arch)
+	    --cc=CC		   c compiler to use ($cc)
+            --cross-prefix=PREFIX  cross compiler prefix
+	    --ld=LD		   ld linker to use ($ld)
 	    --prefix=PREFIX        where to install things ($prefix)
 	    --kerneldir=DIR        kernel build directory for kvm.h ($kerneldir)
 EOF
@@ -29,6 +36,18 @@ while [[ "$1" = -* ]]; do
 	--kerneldir)
 	    kerneldir="$arg"
 	    ;;
+        --arch)
+	    arch="$arg"
+	    ;;
+	--cc)
+	    cc="$arg"
+	    ;;
+	--ld)
+	    ld="$arg"
+	    ;;
+	--cross-prefix)
+            cross_prefix="$arg"
+	    ;;
 	--help)
 	    usage
 	    ;;
@@ -41,4 +60,7 @@ cat <<EOF > config.mak
 cat <<EOF > config.mak
 PREFIX=$prefix
 KERNELDIR=$(readlink -f $kerneldir)
+ARCH=$arch
+CC=$cross_prefix$cc
+LD=$cross_prefix$ld
 EOF

[-- Attachment #3: Type: text/plain, Size: 314 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

             reply	other threads:[~2007-10-08  5:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08  5:10 Jerone Young [this message]
2007-10-08 16:36 ` [PATCH 2/5] Enable configure script in user directory for cross compile Avi Kivity
     [not found]   ` <470A5CAA.8090404-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-09  4:33     ` Jerone Young

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=1191820207.8106.26.camel@laptop \
    --to=jyoung5-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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