Skip to contentSkip to conversation

cross-compilation howto

DISCUSSION Aron Griffis 1 participant 1 message Jan 29, 2008

lore
Share & tools
lore
#0 lore raw

I've written a cross-compilation howto and posted it to
http://wiki.xensource.com/xenwiki/CrossCompiling

It's a little bit hard to follow because <h1> is rendered incorrectly by the stylesheet. It's possibly easier to read the print version at
http://wiki.xensource.com/xenwiki/CrossCompiling?action=print

The howto is targetted at building Xen/ia64 (including tools) on a Fedora8/x86_64 box, though it shouldn't be hard to do other combinations. Pre-built compiler rpms and a pre-built sys-root are provided, so all told it should take only a few minutes to setup.

After completing the setup, it should be possible to do a full build with:

make XEN_TARGET_ARCH=ia64 CROSS_COMPILE=ia64-linux-gnu- world

Notes:

1. ext2fs-lib detection bug was fixed just a couple days ago in cset 1fbab289fed1, so make sure you pull the latest xen-unstable.hg...

2. The tools build breaks right now in ioemu due to the ia64 custom linker script. My next step will be to either fix that or get rid of it. If you comment it out of Makefile.target, the build should work entirely.

Thanks,
Aron