Skip to content

Commit 7080e96

Browse files
garyajdanicampora
authored andcommitted
cc3200/appsign.sh: Use md5 if running under Darwin.
1 parent 0096013 commit 7080e96

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cc3200/appsign.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ fi
99
BUILD=$1
1010

1111
# Generate the MD5 hash
12+
# md5 on Darwin, md5sum on Unix
13+
if [ `uname -s` = "Darwin" ]; then
14+
echo -n `md5 -q $BUILD/application.bin` > __md5hash.bin
15+
else
1216
echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin
17+
fi
1318

1419
# Concatenate it with the application binary
1520
cat $BUILD/application.bin __md5hash.bin > $BUILD/mcuimg.bin

0 commit comments

Comments
 (0)