Hi all,
I've made a new set of fedora ARM cross toolchain RPMS available at:
http://www.wantstofly.org/~buytenh/cross/
These RPMS are built from vanilla Fedora sources, with only packaging (.spec) changes. The goal is to produce a complete cross toolchain that is as close as possible to a native Fedora toolchain, and usable to cross-build Fedora packages with which are fully binary compatible with natively built packages, with as little source/packaging changes to the package as possible.
To try it out, drop cross.repo into /etc/yum.repos.d/, and run
# yum install armv5tel-redhat-linux-gnueabi-gcc
The cross-compiler package will pull in a set of noarch RPMS containing target libraries, such as glibc. These libraries are installed in the default gcc sysroot location (/usr/$target_triple/sys-root), and the noarch RPMS that contain said libraries are created by repack_cross.pl, provided in the same directory as above.
After installation, you will end up with /usr/bin/armv5tel-redhat-linux-gnueabi-gcc, which can be used to build ARM binaries just like you would build i386 binaries.
To cross-build an autoconf-using package, specify --host and/or --target on the autoconf command line. For example, to build an ARM binary of bash-3.2 on your i386 machine, you would do:
$ ./configure --host=armv5tel-redhat-linux-gnueabi $ make
This works fine, and the resulting binary runs fine in an FC6 ARM chroot on real ARM hardware.
Please send feedback. :-)
thanks, Lennert