From: Jerone Young Subject: [PATCH] [1/2] Update user configure script Date: Tue, 02 Oct 2007 15:25:41 -0500 Message-ID: <1191356741.15279.10.camel@laptop> Reply-To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-FtzeQmwjeIFJc3nFiE8E" 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 --=-FtzeQmwjeIFJc3nFiE8E Content-Type: text/plain Content-Transfer-Encoding: 7bit This adds the ability to change CC, ARCH, & LD variables with configure script in user directory. Signed-off-by: Jerone Young --=-FtzeQmwjeIFJc3nFiE8E Content-Disposition: attachment; filename=update_user_configure.patch Content-Type: text/x-patch; name=update_user_configure.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff --git a/user/configure b/user/configure index 0bdd3de..20b9367 100755 --- a/user/configure +++ b/user/configure @@ -2,13 +2,18 @@ prefix=/usr/local kerneldir=/lib/modules/$(uname -r)/build +cc=gcc +ld=ld +arch=`uname -m | sed -e s/i.86/x86/` usage() { cat <<-EOF Usage: $0 [options] Options include: - + --arch=ARCH architecture to compile for ($arch) + --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) EOF @@ -29,6 +34,15 @@ while [[ "$1" = -* ]]; do --kerneldir) kerneldir="$arg" ;; + --arch) + arch="$arg" + ;; + --cc) + cc="$arg" + ;; + --ld) + ld="$arg" + ;; --help) usage ;; @@ -41,4 +55,7 @@ done cat < config.mak PREFIX=$prefix KERNELDIR=$(readlink -f $kerneldir) +ARCH=$arch +CC=$cc +LD=$ld EOF --=-FtzeQmwjeIFJc3nFiE8E 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --=-FtzeQmwjeIFJc3nFiE8E 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 --=-FtzeQmwjeIFJc3nFiE8E--