rleh / docker-avr-gcc

Building upstream avr-gcc on CircleCI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Up-to-date AVR GNU GCC Toolchain from source

CircleCI

Installation

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"

Building locally with Docker

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.

Building in CircleCI

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.

About

Building upstream avr-gcc on CircleCI


Languages

Language:Shell 71.8%Language:Dockerfile 22.4%Language:C++ 5.8%