All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aron Griffis <aron@hp.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com
Subject: Re: [PATCH 1 of 2] Make tools/Makefile cross-friendly
Date: Sat, 19 Jan 2008 10:33:05 -0500	[thread overview]
Message-ID: <20080119153300.GB22728@fc.hp.com> (raw)
In-Reply-To: <20080119144759.GA22728@fc.hp.com>

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

  reply	other threads:[~2008-01-19 15:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19  4:02 [PATCH 0 of 2] Make tools cross-friendly Aron Griffis
2008-01-19  4:02 ` [PATCH 1 of 2] Make tools/Makefile cross-friendly Aron Griffis
2008-01-19  8:26   ` Keir Fraser
2008-01-19 14:48     ` Aron Griffis
2008-01-19 15:33       ` Aron Griffis [this message]
2008-01-19  4:02 ` [PATCH 2 of 2] Make tools/check scripts cross-friendly Aron Griffis
2008-01-21 11:05   ` Christoph Egger
2008-01-21 14:50     ` Aron Griffis
  -- strict thread matches above, loose matches on Subject: below --
2008-01-21 15:29 [PATCH 0 of 2] Make tools cross-friendly, try 2 Aron Griffis
2008-01-21 15:29 ` [PATCH 1 of 2] Make tools/Makefile cross-friendly Aron Griffis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080119153300.GB22728@fc.hp.com \
    --to=aron@hp.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ia64-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.