avrdude build scripts for Arduino/Genuino
This is the build script for the avrdude tool used in the Arduino IDE.
The latest version available is 6.3.
As soon as avrdude ships a new version, we pull the source code, patch it with some user contributed patches and deliver it with the Arduino IDE. Therefore, the resulting binaries may differ significantly from upstream, you should start blaming us if things are not working as expected :)
Setup has been done on partially set up development machines. If you find any package missing from the following list, please open an issue at once!
sudo apt-get install build-essential bison subversion zip automake flex pkg-config
Mac OSX requirements
You need to install MacPorts: https://www.macports.org/install.php. Once done, open a terminal and type:
sudo port selfupdate sudo port upgrade outdated sudo port install wget +universal sudo port install automake +universal sudo port install autoconf +universal sudo port install gpatch +universal sudo port install libusb +universal
Windows cross-compile from Linux requirements
sudo apt-get install gcc-mingw-w64-i686
When building you must set the env var
mingw for example:
cross compile with mingw has been tested on Ubuntu 14.04 (mingw-w64 4.8), different versions of mingw may behave differently and fail to build.
WARNING: the script for native Cygwin or Mingw builds has been started and abandoned in favor of cross compile with mingw (see section above). Please consider this part of the build script as a best effort bonus (it may work as it may, very probably, not work).
You need to install Cygwin: http://www.cygwin.com/. Once you have run
setup-x86.exe, use the
Search text field to filter and select for installation the following packages:
You also need to install MinGW: http://www.mingw.org/. Once you have run mingw-get-setup.exe, select and install (clicking on "Installation" -> "Apply changes") the following packages:
Build process ported from Debian. Thank you guys for your awesome work.
The bash scripts are GPLv2 licensed. Every other software used by these bash scripts has its own license. Consult them to know the terms.