This is the mail archive of the
mailing list for the GCC project.
New cross target for uClinux
- From: Bernardo Innocenti <bernie at develer dot com>
- To: gcc at gcc dot gnu dot org
- Cc: uClinux development list <uclinux-dev at uclinux dot org>
- Date: Wed, 20 Aug 2003 14:52:42 +0200
- Subject: New cross target for uClinux
- Organization: Develer S.r.l.
I'm cleaning up uClinux patches for GCC to move all uClinux-specific target
configuration changes away from the m68k-elf target.
Up to now, the whole uClinux toolchain was configured for the m68k-elf target,
which is not appropriate since binaries produced by this toolchain are neither
really ELF, nor suitable for running on bareboard targets.
I've added a new m68k-uclinux target in gcc/config.gcc and moved all uClinux
configuration changes in gcc/config/m68k/uclinux.h. This is similar to the
arm-uclinux target already present in mainline.
As for binutils, I've not bothered adding the m68k-uclinux target because,
currently, the assembler and linker don't care what they are assembling and
Sinche the 'm68k-elf' target has been in use for several years on uClinux,
There are far too many places in the uClinux build infrastructure where m68k-elf
is assumed and I can't patch them all at the same time. We also need to make
the uClinux source base compatible with both the old and new GCC toolchains
for some time.
I'd like to reduce the impact of the target change by installing GCC with a
backwards-compatible prefix (i.e.: m68k-elf-gcc, etc.).
I'm also soft-linking /usr/local/m68k-elf to /usr/local/m68k-uclinux to let
the compiler find gas and ld properly. I also had to softlink m68k-elf-ar to
But I've just realized this thing is requiring too many kludges. Is there
something I can do, perhaps in config.gcc, to tell GCC it should be using a
different target prefix for binutils and uClibc?
// Bernardo Innocenti - Develer S.r.l., R&D dept.
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html