From: Ian Campbell Subject: Re: [PATCH] Clean up unmodified_drivers mkbuildtree script Date: Mon, 04 Sep 2006 08:37:11 +0100 Message-ID: <1157355431.5043.4.camel@insmouth> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Travis Betak Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, 2006-09-01 at 16:04 -0500, Travis Betak wrote: > The current mkbuildtree script uses `uname -m` when linking the > directories from the xen-sparse directory to unmodified_drivers. This > doesn't work out well if you are building 32-bit modules on a 64-bit > system. > > This patch makes the architecture to be linked against a command line > option -- currently i386 or x86_64. It also cleans up the indentation a > bit. > > Any comments? Better ideas? You could copy headers for all architectures to asm-$ARCH and have asm be a symlink created at build time based on $ARCH, similar to how the asm symlink in Linux is handled. Ian.