Adding ARM Cross generation patch to gcc and binutils specfiles

2010-12-25 Thread Andy Green
Hi -

Building on the work of Lennert Buytenhek and David Woodhouse I recently 
uplevelled the spec files for gcc and binutils they did for gcc-4.1.2 
and binutils-2.17.50.0.18 to work with recent rawhide gcc and binutils.

The goal of the spec changes is to allow rpmbuild to also build cross 
gcc and binutils packages which can co-exist with the normal host ones, 
it makes it easy then to build cross kernels or bootloaders which may 
otherwise be difficult when your native system doesn't work yet ^^

The patched spec files need to be built like this:

$ rpmbuild -ba --define binutils_target armv5tel-redhat-linux-gnueabi
rpmbuild/SPECS/gcc.spec
# rpm -i
rpmbuild/RPMS/x86_64/armv5tel-redhat-linux-gnueabi-binutils-2.20.51.0.12-2.fc15.x86_64.rpm
$ rpmbuild -ba --define=cross_target armv5tel-redhat-linux-gnueabi
rpmbuild/SPECS/gcc.spec

The binutils patch is simple and small (against 
binutils-2.20.51.0.12-2.fc15):

http://warmcat.com/binutils-cross12.diff

The gcc patch (against gcc-4.5.1-5.fc15):

http://warmcat.com/gcc-cross12.diff

is not small or selfcontained and may have some rough edges, but it 
works to build functional cross packages that don't conflict with the 
host install so its heart is at least in the right place or, best from 
my point of view, the patch can be cleaned and merged with the normal 
gcc spec.

I see Hans looks after arm-gp2x-linux-gcc which is also stuck in a 
gcc-4.1.2 timewarp that maybe my uplevelled patch can also help.

Maybe Jakub and Hans could eyeball the patches and see if there is a 
path to allowing cross packages going on just by rebuilding with the 
right rpmbuild parameters.

-Andy
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: Adding ARM Cross generation patch to gcc and binutils specfiles

2010-12-25 Thread Hans de Goede
Hi,

On 12/24/2010 01:43 PM, Andy Green wrote:
 Hi -


snip

 I see Hans looks after arm-gp2x-linux-gcc which is also stuck in a gcc-4.1.2 
 timewarp that maybe my uplevelled patch can also help.

arm-gp2x-linux-gcc is deliberately stuck at 4.1.2, because that is the version 
the gp2x community has settled at as using as a
toolchain. With that said the arm-gp2x-linux-* packages could use some love, 
which I've been failing to give them due to lack
of time. Mostly what they need is packaging of some more cross-compiled libs 
(like SDL_mixer and other SDL_foo's) to make the
chain usable to compile a wider range of gp2x programs.

Regards,

Hans
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel