* [PATCH] add m68k-uclinux-* target
@ 2003-12-21 3:36 Bernardo Innocenti
2003-12-22 6:05 ` Bernardo Innocenti
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bernardo Innocenti @ 2003-12-21 3:36 UTC (permalink / raw)
To: binutils, gdb-patches
Hello,
these binutils/GDB patches add the required bits to enable
the m68k-*-uclinux-* target.
For years, the uClinux toolchain has been based on m68k-elf
with rogue patches. In 3.4, uClinux support has been merged
into GDB and binutils and the target triplet changed to
m68k-unknown-uclinux-uclibc.
So far, the only toolchain component that needs to handle
uClinux differently from m68k-elf is GCC, so these bits
are not strictly required except for consistency. These
additions are definitely required (but not sufficient)
to build the toolchain in a combined tree.
I have no CVS write access to the src repository, so
please commit these patches for me (the diffs don't
include the regenerated configure scripts).
2003-21-12 Bernardo Innocenti <bernie@develer.com>
* config.bfd: Add uClinux target.
* configure: Regenerate.
2003-21-12 Bernardo Innocenti <bernie@develer.com>
* configure.in: Add uClinux target.
* configure: Regenerate.
2003-21-12 Bernardo Innocenti <bernie@develer.com>
* configure.tgt: Add uClinux target.
* configure: Regenerate.
2003-21-12 Bernardo Innocenti <bernie@develer.com>
* configure.tgt: Add uClinux target.
* configure: Regenerate.
diff -u -p -r1.150 config.bfd
--- bfd/config.bfd 19 Dec 2003 11:43:52 -0000 1.150
+++ bfd/config.bfd 21 Dec 2003 02:56:31 -0000
@@ -651,7 +651,7 @@ case "${targ}" in
targ_defvec=m68kcoff_vec
targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
;;
- m68*-*-elf* | m68*-*-sysv4*)
+ m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux)
targ_defvec=bfd_elf32_m68k_vec
targ_selvecs="m68kcoff_vec ieee_vec"
;;
diff -u -p -r1.146 configure.in
--- gas/configure.in 19 Dec 2003 11:43:42 -0000 1.146
+++ gas/configure.in 21 Dec 2003 02:57:07 -0000
@@ -359,6 +359,7 @@ changequote([,])dnl
m68k-*-hpux*) fmt=hp300 em=hp300 ;;
m68k-*-linux*aout*) fmt=aout em=linux ;;
m68k-*-linux-gnu*) fmt=elf em=linux ;;
+ m68k-*-uclinux*) fmt=elf ;;
m68k-*-gnu*) fmt=elf ;;
m68k-*-lynxos*) fmt=coff em=lynx ;;
m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
diff -u -p -r1.142 configure.tgt
--- ld/configure.tgt 19 Dec 2003 11:43:59 -0000 1.142
+++ ld/configure.tgt 21 Dec 2003 02:58:15 -0000
@@ -367,6 +367,7 @@ m68k-*-linux-gnu*) targ_emul=m68kelf
targ_extra_emuls=m68klinux
tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
;;
+m68k-*-uclinux*) targ_emul=m68kelf ;;
m68*-*-gnu*) targ_emul=m68kelf ;;
m68*-*-lynxos*) targ_emul=m68klynx ;;
m68*-*-netbsd*4k*) targ_emul=m68k4knbsd
diff -u -p -r1.122 configure.tgt
--- gdb/configure.tgt 1 Dec 2003 21:10:46 -0000 1.122
+++ gdb/configure.tgt 21 Dec 2003 02:57:39 -0000
@@ -120,6 +120,7 @@ m68*-tandem-*) gdb_target=st2000 ;;
m68*-*-aout*) gdb_target=monitor ;;
m68*-*-coff*) gdb_target=monitor ;;
m68*-*-elf*) gdb_target=monitor ;;
+m68*-*-uclinux*) gdb_target=monitor ;;
m68*-*-linux*) gdb_target=linux
build_gdbserver=yes
;;
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] add m68k-uclinux-* target
2003-12-21 3:36 [PATCH] add m68k-uclinux-* target Bernardo Innocenti
@ 2003-12-22 6:05 ` Bernardo Innocenti
2004-01-02 16:38 ` Nick Clifton
2004-01-02 17:45 ` Daniel Jacobowitz
2 siblings, 0 replies; 4+ messages in thread
From: Bernardo Innocenti @ 2003-12-22 6:05 UTC (permalink / raw)
To: Bernardo Innocenti; +Cc: binutils, gdb-patches
Bernardo Innocenti wrote:
> diff -u -p -r1.150 config.bfd
> --- bfd/config.bfd 19 Dec 2003 11:43:52 -0000 1.150
> +++ bfd/config.bfd 21 Dec 2003 02:56:31 -0000
> @@ -651,7 +651,7 @@ case "${targ}" in
> targ_defvec=m68kcoff_vec
> targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
> ;;
> - m68*-*-elf* | m68*-*-sysv4*)
> + m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux)
> targ_defvec=bfd_elf32_m68k_vec
> targ_selvecs="m68kcoff_vec ieee_vec"
> ;;
Oops! I've just noticed I forgot the star after "m68*-*-uclinux*".
The correct patch to apply in bfd/ is:
diff -u -p -r1.150 config.bfd
--- bfd/config.bfd 19 Dec 2003 11:43:52 -0000 1.150
+++ bfd/config.bfd 21 Dec 2003 02:56:31 -0000
@@ -651,7 +651,7 @@ case "${targ}" in
targ_defvec=m68kcoff_vec
targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
;;
- m68*-*-elf* | m68*-*-sysv4*)
+ m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
targ_defvec=bfd_elf32_m68k_vec
targ_selvecs="m68kcoff_vec ieee_vec"
;;
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] add m68k-uclinux-* target
2003-12-21 3:36 [PATCH] add m68k-uclinux-* target Bernardo Innocenti
2003-12-22 6:05 ` Bernardo Innocenti
@ 2004-01-02 16:38 ` Nick Clifton
2004-01-02 17:45 ` Daniel Jacobowitz
2 siblings, 0 replies; 4+ messages in thread
From: Nick Clifton @ 2004-01-02 16:38 UTC (permalink / raw)
To: Bernardo Innocenti; +Cc: binutils, gdb-patches
Hi Bernardo,
> 2003-21-12 Bernardo Innocenti <bernie@develer.com>
>
> * config.bfd: Add uClinux target.
>
> 2003-21-12 Bernardo Innocenti <bernie@develer.com>
>
> * configure.in: Add uClinux target.
> * configure: Regenerate.
>
> 2003-21-12 Bernardo Innocenti <bernie@develer.com>
>
> * configure.tgt: Add uClinux target.
Approved and applied (with the fix to config.bfd)
Cheers
Nick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] add m68k-uclinux-* target
2003-12-21 3:36 [PATCH] add m68k-uclinux-* target Bernardo Innocenti
2003-12-22 6:05 ` Bernardo Innocenti
2004-01-02 16:38 ` Nick Clifton
@ 2004-01-02 17:45 ` Daniel Jacobowitz
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-01-02 17:45 UTC (permalink / raw)
To: Bernardo Innocenti, gdb-patches
On Sun, Dec 21, 2003 at 04:36:37AM +0100, Bernardo Innocenti wrote:
> Hello,
>
> these binutils/GDB patches add the required bits to enable
> the m68k-*-uclinux-* target.
>
> For years, the uClinux toolchain has been based on m68k-elf
> with rogue patches. In 3.4, uClinux support has been merged
> into GDB and binutils and the target triplet changed to
> m68k-unknown-uclinux-uclibc.
>
> So far, the only toolchain component that needs to handle
> uClinux differently from m68k-elf is GCC, so these bits
> are not strictly required except for consistency. These
> additions are definitely required (but not sufficient)
> to build the toolchain in a combined tree.
>
> I have no CVS write access to the src repository, so
> please commit these patches for me (the diffs don't
> include the regenerated configure scripts).
> 2003-21-12 Bernardo Innocenti <bernie@develer.com>
>
> * configure.tgt: Add uClinux target.
> * configure: Regenerate.
Applied something similar:
- The list is alphabetically sorted
- configure does not need to be regenerated.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2004-01-02 Daniel Jacobowitz <drow@mvista.com>
From Bernardo Innocenti <bernie@develer.com>:
* configure.tgt: Add uClinux target.
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.122
diff -u -p -r1.122 configure.tgt
--- configure.tgt 1 Dec 2003 21:10:46 -0000 1.122
+++ configure.tgt 2 Jan 2004 17:42:09 -0000
@@ -129,6 +129,7 @@ m68*-*-os68k*) gdb_target=os68k ;;
# OBSOLETE m68*-*-sunos3*) gdb_target=sun3os3 ;;
# OBSOLETE m68*-*-sunos4*) gdb_target=sun3os4 ;;
# OBSOLETE m68*-*-sysv4*) gdb_target=m68kv4 ;;
+m68*-*-uclinux*) gdb_target=monitor ;;
m68*-*-vxworks*) gdb_target=vxworks68 ;;
mcore*-*-*) gdb_target=mcore ;;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-02 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-21 3:36 [PATCH] add m68k-uclinux-* target Bernardo Innocenti
2003-12-22 6:05 ` Bernardo Innocenti
2004-01-02 16:38 ` Nick Clifton
2004-01-02 17:45 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox