micropython/cc3200/appsign.sh
danicampora 8785645a95 cc3200: Add cc3200 port of MicroPython.
The port currently implements support for GPIO, RTC, ExtInt and the WiFi
subsystem. A small file system is available in the serial flash. A
bootloader which makes OTA updates possible, is also part of this initial
implementation.
2015-02-06 22:10:11 +00:00

18 lines
407 B
Bash

#!/bin/bash
# Build location
# First parameter passed is the board type
BUILD=build/$1
# Generate the MD5 hash
echo -n md5sum --binary $BUILD/application.bin | awk '{ print $1 }' > __md5hash.bin
# Concatenate it with the application binary
cat $BUILD/application.bin __md5hash.bin > $BUILD/MCUIMG.BIN
# Remove the tmp files
rm -f __md5hash.bin
# Remove hte unsigned binary
rm -f $BUILD/application.bin