public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] New avr ld emulations
@ 2002-05-16 13:12 Marek Michalkiewicz
  2002-05-16 18:02 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Michalkiewicz @ 2002-05-16 13:12 UTC (permalink / raw)
  To: binutils

This adds new ld emulations for the AVR target, as they will be needed
by GCC 3.2.  I'm still having problems with the maintainer mode (many
"bug in autoconf, please report" messages when using automake-1.4p5 and
autoconf-000227, still no idea what is wrong), so I cheated a little
and just edited Makefile.in by hand instead (added a few lines).

Please help me and regenerate Makefile.in for me if you think it is
necessary - I promise, it shouldn't happen again...  OK to commit?

Thanks,
Marek

ld/Changelog:

2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>

	* Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
	* Makefile.in: Regenerate.
	* configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.

Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.94
diff -c -3 -p -r1.94 Makefile.am
*** Makefile.am	7 May 2002 17:22:20 -0000	1.94
--- Makefile.am	16 May 2002 19:52:29 -0000
*************** ALL_EMULATIONS = \
*** 131,136 ****
--- 131,141 ----
  	eavrmega103.o \
  	eavrmega161.o \
  	eavrmega603.o \
+ 	eavr1.o \
+ 	eavr2.o \
+ 	eavr3.o \
+ 	eavr4.o \
+ 	eavr5.o \
  	ecoff_sparc.o \
  	ecrisaout.o \
  	ecriself.o \
*************** eavrmega161.c: $(srcdir)/emulparams/avrm
*** 443,448 ****
--- 448,473 ----
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
    ${GEN_DEPENDS}
  	${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
+ eavr1.c: $(srcdir)/emulparams/avr1.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr1 "$(tdir_avr85xx)"
+ eavr2.c: $(srcdir)/emulparams/avr2.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr2 "$(tdir_avr85xx)"
+ eavr3.c: $(srcdir)/emulparams/avr3.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr3 "$(tdir_avr85xx)"
+ eavr4.c: $(srcdir)/emulparams/avr4.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr4 "$(tdir_avr85xx)"
+ eavr5.c: $(srcdir)/emulparams/avr5.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr5 "$(tdir_avr85xx)"
  ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/ld/Makefile.in,v
retrieving revision 1.102
diff -c -3 -p -r1.102 Makefile.in
*** Makefile.in	7 May 2002 17:22:20 -0000	1.102
--- Makefile.in	16 May 2002 19:52:30 -0000
*************** ALL_EMULATIONS = \
*** 240,245 ****
--- 240,250 ----
  	eavrmega103.o \
  	eavrmega161.o \
  	eavrmega603.o \
+ 	eavr1.o \
+ 	eavr2.o \
+ 	eavr3.o \
+ 	eavr4.o \
+ 	eavr5.o \
  	ecoff_sparc.o \
  	ecrisaout.o \
  	ecriself.o \
*************** eavrmega161.c: $(srcdir)/emulparams/avrm
*** 1164,1169 ****
--- 1169,1194 ----
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
    ${GEN_DEPENDS}
  	${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
+ eavr1.c: $(srcdir)/emulparams/avr1.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr1 "$(tdir_avr85xx)"
+ eavr2.c: $(srcdir)/emulparams/avr2.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr2 "$(tdir_avr85xx)"
+ eavr3.c: $(srcdir)/emulparams/avr3.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr3 "$(tdir_avr85xx)"
+ eavr4.c: $(srcdir)/emulparams/avr4.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr4 "$(tdir_avr85xx)"
+ eavr5.c: $(srcdir)/emulparams/avr5.sh \
+   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
+   ${GEN_DEPENDS}
+ 	${GENSCRIPTS} avr5 "$(tdir_avr85xx)"
  ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.85
diff -c -3 -p -r1.85 configure.tgt
*** configure.tgt	30 Apr 2002 17:48:58 -0000	1.85
--- configure.tgt	16 May 2002 19:52:31 -0000
*************** arm-*-pe)		targ_emul=armpe ;
*** 22,28 ****
  			targ_extra_ofiles="deffilep.o pe-dll.o" ;;
  arc-*-elf*)		targ_emul=arcelf ;;
  avr-*-*)		targ_emul=avr85xx
! 			targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161" ;;
  cris-*-*aout*)		targ_emul=crisaout
  			targ_extra_emuls="criself crislinux"
  			targ_extra_libpath=$targ_extra_emuls ;;
--- 22,28 ----
  			targ_extra_ofiles="deffilep.o pe-dll.o" ;;
  arc-*-elf*)		targ_emul=arcelf ;;
  avr-*-*)		targ_emul=avr85xx
! 			targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161 avr1 avr2 avr3 avr4 avr5" ;;
  cris-*-*aout*)		targ_emul=crisaout
  			targ_extra_emuls="criself crislinux"
  			targ_extra_libpath=$targ_extra_emuls ;;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] New avr ld emulations
  2002-05-16 13:12 [patch] New avr ld emulations Marek Michalkiewicz
@ 2002-05-16 18:02 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2002-05-16 18:02 UTC (permalink / raw)
  To: Marek Michalkiewicz; +Cc: binutils

On Thu, May 16, 2002 at 10:12:21PM +0200, Marek Michalkiewicz wrote:
> 	* Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
> 	* Makefile.in: Regenerate.
> 	* configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-17  1:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-16 13:12 [patch] New avr ld emulations Marek Michalkiewicz
2002-05-16 18:02 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).