From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aron Griffis Subject: Re: [PATCH 1 of 2] Make tools/Makefile cross-friendly Date: Sat, 19 Jan 2008 09:48:00 -0500 Message-ID: <20080119144759.GA22728@fc.hp.com> References: <79cf8ffbc6678f201d35.1200715350@jenkins.nashua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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: Keir Fraser Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Keir Fraser wrote: [Sat Jan 19 2008, 03:26:30AM EST] > On 19/1/08 04:02, "Aron Griffis" 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