Skip to content

Latest commit

 

History

History
94 lines (64 loc) · 2.82 KB

Readme.md

File metadata and controls

94 lines (64 loc) · 2.82 KB

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 :)

Building

Just run:

./package-avrdude.bash

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!

Debian requirements

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 CROSS_COMPILE to mingw for example:

CROSS_COMPILE=mingw ./package_avrdude.bash

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.

Windows requirements

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:

  • git
  • wget
  • unzip
  • zip
  • bison
  • flex
  • make
  • patch
  • automake
  • autoconf
  • gcc-g++

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:

  • mingw-developer-toolkit
  • mingw32-base
  • mingw32-gcc-g++
  • msys-base
  • msys-zip

Upstream credits

Build process ported from Debian. Thank you guys for your awesome work.

Credits

Consult the list of contributors here and here.

License

The bash scripts are GPLv2 licensed. Every other software used by these bash scripts has its own license. Consult them to know the terms.