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 10:33:05 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 19 Jan 2008 07:33:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080119144759.GA22728@xxxxxxxxx>
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> <20080119144759.GA22728@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
To follow up a bit more on the sys-root question, this web page
explains it:

http://benoit.papillault.free.fr/notes/cross-gcc.php.en

The sys-root is built into both the compiler and binutils using the
--with-sysroot option.  That way the compiler can find the include
files, and the linker can find the libraries.

The cross-toolchain that I based mine on are from here:

http://www.redhat.com/archives/fedora-devel-list/2007-October/msg00045.html

These assume the sys-root will be in /usr/$target/sys-root, so that's
how I set things up too.  Lennert suggests using a script
repack_cross.pl to install target rpms in the sys-root.  I used that
for a while but the number of rpms needed was overwhelming, so
eventually I realized it would be a lot easier to use an entire root
filesystem.

For the rootfs, I started with fedora8/ia64 but it's missing some
libs, so I switched to rhel5/ia64.  For the howto, I intend to switch
to centos4.6 so licensing isn't an issue.  In any case, it's not hard
to do a simple ia64 installation then bundle up the sys-root from it.

Hope that helps,
Aron

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