[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.