A while ago I was looking for a way to build the MMDVM firmware on a bare Debian Jessie system running on a Raspberry Pi. It has no X installed and thus I need a way to build the Arduino Due firmware without installing tons of GUI packages. I copied parts of a Makefile for the Arduino IDE as it is just executing command line binaries under the hood.
I added some support for building the MMDVM firmware using a Makefile to the github project a while ago. The only problem left was finding a way to “install” the Arduino IDE in command line mode.
Turns out that this is a realtively easy task. It is more or less downloading the package and install support for ARM Cortex M3 boards (as the Arduino Due is). Execution of the install.sh script contained in the directory is not needed (it only creates nice desktop icons). Instead you can directly execute the IDE in command line mode to install the SAM package.
I made a little bash script that should to all the tasks needed. Afterwards I could compile the MMDVM firmware for Arduino Due using “make -f Makefile.Arduino compile”.
The BASH script is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27