Download the latest modm-avr-gcc.tar.bz2
from Releases
and unpack it to /opt
:
tar xf modm-avr-gcc.tar.bz2 --directory /opt
Add the bin/
directory to your $PATH
,
e.g. by adding the following line to your ~/.bashrc
file:
export PATH="/opt/avr-gcc/bin:$PATH"
There is a Docker image with all prerequisites for building, created from the Dockerfile
in this repository.
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-io/avr-gcc.git
Run the build.sh script
cd avr-gcc
./build.sh
The toolchain will be in /opt/avr-gcc
.
There is a Github Actions job defined in .github/workflows/
which builds the
toolchain. For tagged commits, a Github release will be created with the
toolchain put into a downloadable .tar.bz2
at
Releases.