cc3200/appsign.sh: Use md5 if running under Darwin.

This commit is contained in:
Gary Ashton-Jones 2015-08-24 11:28:10 +10:00 committed by danicampora
parent 00960133c2
commit 7080e9632c
1 changed files with 5 additions and 0 deletions

View File

@ -9,7 +9,12 @@ fi
BUILD=$1
# Generate the MD5 hash
# md5 on Darwin, md5sum on Unix
if [ `uname -s` = "Darwin" ]; then
echo -n `md5 -q $BUILD/application.bin` > __md5hash.bin
else
echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin
fi
# Concatenate it with the application binary
cat $BUILD/application.bin __md5hash.bin > $BUILD/mcuimg.bin