Skip to content

avrdude build scripts for Arduino/Genuino

Notifications You must be signed in to change notification settings


Repository files navigation

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


Just run:


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


Consult the list of contributors here and here.


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