Download the latest avr-gcc.tar.bz2
from Releases
and unpack it to /opt
:
tar xf avr-gcc.tar.bz2 --directory /opt
Add the bin/
directories of avr-gcc and avr-binutils to your $PATH
,
e.g. by adding the following line to your ~/.bashrc
file:
export PATH="/work/avr-gcc/avr-gcc/bin:/work/avr-gcc/avr-binutils/bin:$PATH"
There is a Docker image with all prerequisites for building, created from the Dockerfile
in this repository.
Pull and start the image from Dockerhub with:
docker run -it modm/avr-gcc-prerequisites
Or build the image from the local Dockerfile
and start it:
docker build --tag avr-gcc-prerequisites:local .
docker run -it avr-gcc-prerequisites:local
Inside the Docker container get this repository
git clone https://github.com/modm-ext/docker-avr-gcc.git
Run the build.sh script
cd docker-avr-gcc
time ./build.sh
The toolchain will be in /opt/avr-gcc
.
There is a CircleCI job defined in .circleci/config.yml
which builds the
toolchain using the Docker container. For tagged commits, a Github release
will be created with the toolchain put into a downloadable .tar.bz2
at
Releases.