From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile Date: Tue, 09 Oct 2007 00:19:49 -0500 Message-ID: <1191907189.11688.19.camel@laptop> Reply-To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-lTSTy+M6hwNevFfJPnOU" To: kvm-devel Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --=-lTSTy+M6hwNevFfJPnOU Content-Type: text/plain Content-Transfer-Encoding: 7bit This patch enables configure script in user directory for cross compile. Signed-off-by: Jerone Young --=-lTSTy+M6hwNevFfJPnOU Content-Disposition: attachment; filename="[PATCH 1\\2] user_dir_config_script_cross_compile" Content-Type: text/x-patch; name="[PATCH 1\\2] user_dir_config_script_cross_compile"; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r b0a20b1a7339 user/configure --- a/user/configure Mon Oct 08 23:48:50 2007 -0500 +++ b/user/configure Mon Oct 08 23:49:22 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 < config.mak cat < config.mak PREFIX=$prefix KERNELDIR=$(readlink -f $kerneldir) +ARCH=$arch +CC=$cross_prefix$cc +LD=$cross_prefix$ld EOF --=-lTSTy+M6hwNevFfJPnOU Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --=-lTSTy+M6hwNevFfJPnOU Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --=-lTSTy+M6hwNevFfJPnOU--