Skip to content

Prebuilt upstream avr-gcc for Linux

Notifications You must be signed in to change notification settings

modm-io/avr-gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.