diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-11-21 14:40:28 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-11-21 14:40:28 -0800 |
| commit | 8d5c90b0d0194f6b9f94d8f5758852e49b0255f3 (patch) | |
| tree | f991652b2141522636179d7a815d038fb254ecfe /tools | |
| parent | 575d2e799839a61c3d7b15cdb986d9793d67df43 (diff) | |
Add script to build bins for Adafruit boards.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/build_bins.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/build_bins.sh b/tools/build_bins.sh new file mode 100755 index 000000000..85326d96a --- /dev/null +++ b/tools/build_bins.sh @@ -0,0 +1,17 @@ +rm -rf atmel-samd/build* +rm -rf esp8266/build* + +make -C atmel-samd BOARD=feather_m0_basic +make -C atmel-samd BOARD=feather_m0_flash +make -C atmel-samd BOARD=metro_m0_flash +make -C esp8266 BOARD=feather_huzzah + +version=`git describe --tags --exact-match` +if [ $? -ne 0 ]; then + version=`git rev-parse --short HEAD` +fi + +cp atmel-samd/build-feather_m0_basic/firmware.bin bin/adafruit-micropython-feather_m0_basic-$version.bin +cp atmel-samd/build-feather_m0_flash/firmware.bin bin/adafruit-micropython-feather_m0_flash-$version.bin +cp atmel-samd/build-metro_m0_flash/firmware.bin bin/adafruit-micropython-metro_m0_flash-$version.bin +cp esp8266/build/firmware-combined.bin bin/adafruit-micropython-feather_huzzah-$version.bin |
