circuitpython/tools/build_adafruit_bins.sh
2016-11-29 10:47:11 -08:00

20 lines
607 B
Bash
Executable File

rm -rf atmel-samd/build*
rm -rf esp8266/build*
ATMEL_BOARDS="cplay_m0_flash feather_m0_basic feather_m0_adalogger feather_m0_flash metro_m0_flash trinket_m0 gemma_m0"
for board in $ATMEL_BOARDS; do
make -C atmel-samd BOARD=$board
done
make -C esp8266 BOARD=feather_huzzah
version=`git describe --tags --exact-match`
if [ $? -ne 0 ]; then
version=`git rev-parse --short HEAD`
fi
for board in $ATMEL_BOARDS; do
cp atmel-samd/build-$board/firmware.bin bin/adafruit-micropython-$board-$version.bin
done
cp esp8266/build/firmware-combined.bin bin/adafruit-micropython-feather_huzzah-$version.bin