Hello all,

recently there were some IRC discussion about addiing coldfire build to the autobuilder. I asked for it... but quickly it became obvious that it's not so easy to add, AFAIK because
the coldfire build uses the same compiler as the m68k build does.

I talked to vincent and here is his response to my email:

-------- Original Message --------
Subject: Re: m68k mint toolchain and coldfire...
Date: Wed, 10 Oct 2012 23:48:29 +0200
From: Vincent Rivière <[email protected]>
To: [email protected]

Hello, Ole.

I have finally carefully read all your emails about the Netsurf build system.

If I understood correctly, the build system now automatically builds the -m68020-60 NetSurf binary, right? That's very fine.

So the last remaining question is how to build the ColdFire binary?

They say that either gcc or maybe especially the m68k toolchain do ugly hacking to implement something which should be really coldfire-mint-atari. It's about the fact that gcc implements a completly different ISA with the tuning
flags... and it's about multilibs in /lib/m5475 /lib/m68020-60 etc...

As I seen on the ACP forum, the NetSurf people just dislikes the multilib mechanism? They can, but unfortunately for them this is the official GCC mechanism to support different CPU variants. It is the case for m68k (many 680x0 and ColdFire variants), but also for Intel processors in order to support 32/64bit compilation.

So they should just add an option in their build system to pass an additional flag to GCC such as -mcpu=5475. That should not be complicated...

They say, they can not build the netsurf SDK for different Arch, with a
cross-compiler toolchain which already
has a name which is taken by another toolchain. They need a different host
triplet in that case...

If their build system is so limited, you can just use the following bash script. Name it m5475-atari-mint-gcc and add the x flag.

#!/bin/bash
exec m68k-atari-mint-gcc -mcpu=5475 "$@"

Tada, m5475-atari-mint-gcc is a ColdFire compiler.
Easy, isn't it ?

Beware, to use the right ColdFire libs, gcc must have been compiled with multilib support, as I usually do. With the all the ColdFire libs in the right places.

Would you like to talk to the netsurf developers about this? You could talk
to them via IRC or via the Mailing list...

Sure. But I just hate Internet chat.
I can register to the mailing list if you like, if this can improve the situation. No trouble.


Vincent

--
---

Reply via email to