This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc on coldfire 5485


>I'm working on getting linux running on a 5485.  I'm looking for -mcfv4e
>support in gcc.  Has anyone ported Peter Barada's support for this option
>in gcc from 3.0.4 up to 3.4.1?

Not that I know of.  I've heard some rumblings of people trying it,
but haven't heard of anyone finishing it.  Right now I don't have
enough spare time to do it, nor do I have access to a v4e core to test it.

Of course if someone could make a v4e eval board available to me it
would make the process go a whole lot quicker :)

>My goal right now is to get working gcc/glibc for this cpu integrated into
>Dan Kegel's crosstools scripts.  I can currently build a kernel (using
>-m5407 and -Wa,-mcfv4e), but the default gcc/glibc chain builds libs
>for -m68000.  What's the right way to do what I'm trying to do?  I know I
>can hack around adding -m flags everywhere, but it doesn't seem the
>right thing, and doesn't really make a good candidate for re-inclusion.

If you want to go for reinclusion of the glibc code, then I'd create a
new target for glibc (maybe --target=coldfire-linux?).  Look at:

http://sources.redhat.com/ml/libc-alpha/2002-09/msg00491.html

For a quick outline of what I had to change to add the that target.

>I'm not a gcc expert; would it make sense to add --with-cpu= support
>to the m68k config process?  There was a thread about this back in 2002
>somewhere, but it didn't have a resolution.

At the rate that Freescale is creating cbnew ColdFire hips it would
probably make sense adding --with-cpu= instead of keep adding -m
option for each of them....

-- 
Peter Barada
peter@the-baradas.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]