[fedora-arm] Updated cross binutils and gcc patches against rawhide

Andy Green andy at warmcat.com
Wed Nov 17 14:04:49 UTC 2010

Hi -

Here are updates I just got working of Lennert and David's patches 
against current rawhide gcc and binutils:


which generate updated binutils and gcc cross packages.  The old ones 
are fine except that they're no longer able to build current kernels 
without errors.

They're tested to generate working cross compiler packages on x86_64 
host; the compilers generate a working kernel.org kernel on iMX31 and 
can link a test app with printf() OK, since I just need them for kernel 
compile duties I didn't go any further with cross userspace.

You can use the patches like this:

1) Grab the source RPMs you want to build against

2) cd into your rpmbuild/SOURCES dir and use

   rpm2cpio <source rpm> | cpio -id

to unpack, then mv *.spec ../SPECS

3) patch the binuntils.spec and gcc.spec files with the diffs; they 
should apply cleanly at least with exactly the rawhide sources above

4) rpmbuild -ba --define "binutils_target armv5tel-redhat-linux-gnueabi" 

5) rpm -i 

6) rpmbuild -ba --define="cross_target armv5tel-redhat-linux-gnueabi" 

7) as root: cd rpmbuild/RPMS/x86_64 ; rpm -Uvf 

8) That's it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-cross12.diff
Type: text/x-patch
Size: 50742 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/arm/attachments/20101117/4fd87507/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-cross12.diff
Type: text/x-patch
Size: 1013 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/arm/attachments/20101117/4fd87507/attachment-0003.bin 

More information about the arm mailing list