Skip to content

Dockerfile to cleanly build avr-gcc and tools from source.

Notifications You must be signed in to change notification settings

antima/avr-gcc-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avr-gcc-env

Simplified environments to cleanly build the avr-gcc toolchain from source.

Table of Contents

Build the image

The following is an example of how to build an image for the environment.

Note that you have to pass the version tags for binutils, gcc and avr-libc, and you must ensure that those version exists on the relative servers where the image fetches them from. These are the gnu ftp server and the avr-libc git server hosted on github; for this last one refer to the tags related to the releases.

docker build \
	--build-arg BINUTILS_VERSION=2.38 \
	--build-arg GCC_VERSION=11.3.0    \
	--build-arg LIBC_VERSION=2.1.0    \ 
	-t avr-gcc-env:<your-tag> .

Build the toolchain

docker run --rm -v $(pwd)/avr-env:/local/avr avr-gcc-env:<your-tag> 

List the available tools versions

You can get a list of the available version of gcc/binutils/libc to install through the docker container, by using the list-versions.py script:

python list-versions.py gcc
python list-versions.py binutils
python list-versions.py libc

Usage:

Lists the available version for the packages in the GNU packages.
Usage: ./list-versions.py PACKAGE
  -h, --help
      shows this help message
  PACKAGE
      gcc, binutils, libc

About

Dockerfile to cleanly build avr-gcc and tools from source.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published