Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.19 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.19 KB

Up-to-date AVR GNU GCC Toolchain from source

Installation

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"

Building locally with Docker

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.

Building in Github Actions

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.