Historical project documentation. Content is maintained in GitLab.

AVRToolchainGentoo

AVR Cross-Compiler Toolchain for Gentoo Linux

New method

  • Create the AVR toolchain with the newest stable versions of binutils, gcc et all:
    USE="-*" crossdev --without-headers -S -s4 --target avr
  • Should it complain about missing avr-gcc, do: emerge -av cross-avr/gcc and then restart the command above
  • Fix a small avr-libc problem which is not yet fixed:
    ln -s /usr/lib64/binutils/avr/2.20/ldscripts /usr/x86_64-pc-linux-gnu/avr/binutils-bin/2.20/ldscripts

Older method

  • Emerge crossdev:
    emerge -av crossdev
  • Create the AVR toolchain with the newest stable versions of binutils, gcc et all:
    crossdev --without-headers -S -s4 --target avr
  • Fix a small avr-libc problem which is not yet fixed in cross-avr/avr-libc-1.6.4 (normally you would need 1.6.5 or newer - this way, you can use 1.6.4):
    ln -s /usr/x86_64-pc-linux-gnu/avr/lib/ldscripts /usr/libexec/gcc/avr/ldscripts
  • Fix missing Atmel 328p definition in avr-libc:
    cp /tmp/crtm328p.o /usr/avr/lib/avr5/crtm328p.o
    You can find the definition file as attachment to this page.

You should have a working AVR toolchain now. It should compile the sources of NGOS, SB controller and RC controller.