Skip to content
avrdude build scripts for Arduino/Genuino
Branch: master
Clone or download
facchinm Merge pull request #10 from swarren/aarch64
Add AArch64 build support
1
Latest commit 667f1c9 May 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
avrdude-6.3-patches
libelf-0.8.13-patches
libusb-compat-0.1.5-patches
.gitignore update .gitignore May 31, 2016
Readme.md
avrdude-6.3.build.bash
libelf-0.8.13.build.bash
libusb-1.0.20.build.bash TEST: disable shared libraries Jun 13, 2016
libusb-compat-0.1.5.build.bash
package-avrdude.bash

Readme.md

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.

You can’t perform that action at this time.