Patching_AVR_GCC

If you want to add support for new devices, in most cases you have to patch several files.

They are listed here.

gcc

/usr/src/avr-toolchain-src/gcc-3.4.4/gcc/config/avr/avr.c (line 162 ff)
                                                   /avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS)
                                                   /t-avr (MULTILIB_MATCHES)

binutils

/usr/src/avr-toolchain-src/binutils-2.16.1/gas/config/tc-avr.c

avr-libc

/usr/src/avr-toolchain-src/avr-libc-1.2.5/configure.in
                                         /include/avr/io.h
                                         /include/avr/eeprom.h
                                         /include/avr/xxx.h

The file xxx.h is the header file, that is specific for the new device, e.g. iom1280.h Normally the file eeprom.h shouldn't need no patching any more.

current patches

This patch includes patches for:

to add support for avr-gcc for the following devices:

not yet supported by this patchset:

patch-2005-05.zip

see also:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/avr-gcc/files/
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/avr-binutils/files/

Back to AVR-GCC

KielTech: Patching_AVR_GCC (last edited 2008-06-07 15:13:47 by localhost)