On Wed, 2011-03-23 at 11:40 +0100, Kévin Raymond wrote:
Is there a best way to cross compile for geode arch?
I've got an XO, therefor the chroot way could be easy to implement.
There are several XO distributions currently in use:
- Many deployments and G1G1 users are still running a
derivative of Fedora 9 on the XO-1.
- The last official release from OLPC is based on Fedora 11.
- Both OLPC and Activity Central are working on a new release
roughly based on Fedora 14 and Sugar 0.92.
At this time, I'd recommend ignoring Fedora 9 and targeting Fedora 11
and/or Fedora 14. Binaries compiled on Fedora 11 that are not linked
with the GTK/GNOME libraries might very well be binary compatible with
Fedora 14.
For the build environment, you have 3 options:
1. you could use a regular i686 or x86_64 machine running *any* recent
Fedora release. Using febootstrap, livecd-tools or manual file copying
from an XO, you should be able to create a chroot environment in which
you could compile binaries for the XO.
2. Install Fedora 11 in a VM. This is probably a lot easier than messing
around with chrooted environments, but it's a little inconvenient when
you need to exchange files between your system and the VM.
3. Get a user account on the Fedora 11 box used by Sugar Labs' buildbot.
Just ask me or silbe on #sugar.
You don't need to pass any special flags to GCC, but you may want to
specify -march=geode for a tiny performance boost.
I've found two useful links[1] and [2], but if you have a better
one,
that would be nice.
In an other way, I am not yet a packager but am interested in it.
Is there a way to build rpm packages locally for the XO?
Sure, just do "yum install rpm-build" and then use rpmbuild as you would
do on a regular Fedora system. You could build almost anything directly
on the XO, if you have a lot of patience, especially for C++ code.
Please feel free to update these pages with anything you find.
--
// Bernie Innocenti -
http://codewiz.org/
\X/ Sugar Labs -
http://sugarlabs.org/