1 parent 0096013 commit 7080e96Copy full SHA for 7080e96
1 file changed
cc3200/appsign.sh
@@ -9,7 +9,12 @@ fi
9
BUILD=$1
10
11
# 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
16
echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin
17
+fi
18
19
# Concatenate it with the application binary
20
cat $BUILD/application.bin __md5hash.bin > $BUILD/mcuimg.bin
0 commit comments