[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Bug in attiny2313 support ?
From: |
Frederik Rouleau |
Subject: |
Re: [avr-gcc-list] Bug in attiny2313 support ? |
Date: |
Wed, 22 Dec 2004 20:16:24 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 |
It seems that only a small change is needed in configure.in to rebuild
avr-libc.
Frederik Rouleau wrote:
Here is a quick patch to move attiny13 and attiny2313 to avr2
architecture in gcc. I have successfully rebuilt gcc-4.0-20041205 (the
latest snapshot that can be built for avr).
But this move might need some change in avr-libc also...
Please be carreful, I did not fully test it yet and I am new to gcc
internal.
Frederik
Index: configure.in
===================================================================
RCS file: /cvsroot/avr-libc/avr-libc/configure.in,v
retrieving revision 1.133
diff -u -r1.133 configure.in
--- configure.in 20 Dec 2004 21:47:48 -0000 1.133
+++ configure.in 22 Dec 2004 19:11:13 -0000
@@ -345,12 +345,19 @@
dnl default build directory -> avr1 and avr2
avrlib_cflags="-mmcu=avr2 ${avrlib_opt_space}"
avrlib_asflags='-mmcu=avr2'
+ CHECK_AVR_DEVICE(attiny13)
+ CHECK_AVR_DEVICE(attiny2313)
AVR_CRT_AT90='crts1200.o crts2313.o crts2323.o crts2333.o crts2343.o \\\
crts4414.o crts4433.o crts4434.o crts8515.o crts8535.o \\\
crtc8534.o'
AVR_CRT_TINY='crttn11.o crttn12.o crttn15.o crttn28.o crttn22.o crttn26.o'
AVR_CRT_OTHER='crt86401.o'
-
+ if test "x$HAS_attiny13" = "xyes"; then
+ AVR_CRT_TINY="$AVR_CRT_TINY crttn13.o"
+ fi
+ if test "x$HAS_attiny2313" = "xyes"; then
+ AVR_CRT_TINY="$AVR_CRT_TINY crttn2313.o"
+ fi
dnl We only want to build the docs for the default target case and only
dnl if the user has passed "--enable-doc" to configure.
if test "$enable_doc" = "yes"; then
@@ -364,8 +371,6 @@
AVR_CRT_OTHER='crt43320.o crt43355.o crt76711.o'
;;
avr4)
- CHECK_AVR_DEVICE(attiny13)
- CHECK_AVR_DEVICE(attiny2313)
CHECK_AVR_DEVICE(atmega48)
CHECK_AVR_DEVICE(atmega88)
avrlib_cflags=${avrlib_opt_space}
@@ -377,12 +382,6 @@
if test "x$HAS_atmega88" = "xyes"; then
AVR_CRT_MEGA="$AVR_CRT_MEGA crtm88.o"
fi
- if test "x$HAS_attiny13" = "xyes"; then
- AVR_CRT_TINY="$AVR_CRT_TINY crttn13.o"
- fi
- if test "x$HAS_attiny2313" = "xyes"; then
- AVR_CRT_TINY="$AVR_CRT_TINY crttn2313.o"
- fi
;;
avr5)
CHECK_AVR_DEVICE(atmega165)
Re: [avr-gcc-list] Bug in attiny2313 support ?, Marek Michalkiewicz, 2004/12/17