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


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

[PATCH] add m68k-uclinux-* target


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/



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