arduino / toolchain-avr

The AVR toolchain used by the Arduino IDE
144 stars 48 forks source link

Make build process easier to retarget to new Atmel release #43

Closed sleemanj closed 7 years ago

sleemanj commented 7 years ago

This pull request adds a file build.conf and various supporting changes to the build scripts.

The build.conf file allows you to specify simply the Atmel release version (AVR_VERSION) and that is the only change necessary to build for a new/different release from Atmel.

The version numbers of the supporting tools (autoconf...) and the gcc components not distributed by Atmel (gmp, mpfr, mpc) are automatically grepped out of the SOURCES.README in the Atmel distribution.

The URLs to these requirements are automatically constructed, and can be configured differently in the build.conf if you need to change that to a different mirror or whatever.

Also included is a slight fix to the build for automake which was failing on my system due to incompatibilities with texinfo - probably texinfo version specified by Atmel should be included into the tools build process, but maybe there is a catch-22 there.

cmaglie commented 7 years ago

Excellent, thank you! Give me some time to test this PR, but I'm fully positive for merging.

sleemanj commented 7 years ago

NB: I've also added the one liner which solves #42

cmaglie commented 7 years ago

Fixes #41 too