WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-devel] [PATCH 1 of 2] Make tools/Makefile cross-friendly

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1 of 2] Make tools/Makefile cross-friendly
From: Aron Griffis <aron@xxxxxx>
Date: Sat, 19 Jan 2008 09:48:00 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 19 Jan 2008 06:48:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3B764B6.12866%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <79cf8ffbc6678f201d35.1200715350@xxxxxxxxxxxxxx> <C3B764B6.12866%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
Keir Fraser wrote:  [Sat Jan 19 2008, 03:26:30AM EST]
> On 19/1/08 04:02, "Aron Griffis" <aron@xxxxxx> wrote:
> 
> > +# For the sake of linking, set the sys-root
> > +ifneq ($(CROSS_COMPILE),)
> > +CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
> > +export CROSS_SYS_ROOT
> >  endif
> 
> I suppose this is a completely arbitrary path that happens to work for you?

No, it appears to be pretty standard.  I took my cue on the sys-root
from the cross-compilers on arm.  My own cross compilers are theirs
plus some patches (which I'm preparing to send their direction next)

> For your example command line
> make -j1 XEN_TARGET_ARCH=ia64 CROSS_COMPILE=ia64-linux-gnu-
> ...this would link against the ugly and bizarre path
> /usr/ia64linuxgnu/sys-root?

No, $(CROSS_COMPILE:-=) only removes the trailing dash.  The resulting
path is /usr/ia64-linux-gnu/sys-root, so the sys-root lives right next
to the rest of the toolchain support:

$ ls /usr/ia64-linux-gnu
bin/  lib/  sys-root/

Aron

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel