This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add m68k-uclinux target
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Christoph Hellwig <hch at infradead dot org>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>, Pauli <pauli at moreton dot com dot au>,Gunther Nikl <gni at gecko dot de>, uclinux-dev <uclinux-dev at uclinux dot org>
- Date: Tue, 16 Sep 2003 05:37:32 +0200
- Subject: Re: [PATCH] Add m68k-uclinux target
- Organization: Develer S.r.l.
- References: <3F650703.7020703@develer.com> <20030915101755.A25491@infradead.org>
Christoph Hellwig wrote:
[...]
Are you sure it should really be m68k-unknown-uclinux and not
m68k-unknown-linux-uclibc?
[...]
Out of curiosity, I tried configuring for m68k-uclinux-uclibc
or m68k-unknown-uclinux-uclibc and I had a great deal of fun
trying to figure out what I'm supposed to do in config.sub
and gcc/config.gcc to get it to work.
So far, I've managed to get past config.sub with
--target=m68k-uclinux-uclibc by applying the change below
in addition to the uClinux patch.
Unfortunately, config.gcc seems to get confused about the
machine name because the target tuple contains three parts
without "unknown" in the middle.
If I configure with --target=m68k-unknown-uclinux-uclibc,
other bad things happen in the top-level configure script
because $target happens to be empty (???).
Does anyone know what I'd have to do to get it right?
--- gcc-3.4-20030910.orig/config.sub 2003-06-14 16:08:09.000000000 +0200
+++ gcc-3.4-20030910/config.sub 2003-09-16 05:28:48.000000000 +0200
@@ -1112,16 +1112,17 @@
;;
# First accept the basic system types.
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -uclibc* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html