diff options
| author | Gary Ashton-Jones | 2015-08-24 11:28:10 +1000 |
|---|---|---|
| committer | danicampora | 2015-11-18 19:50:28 +0100 |
| commit | 7080e9632c98b06952ee480f4b4d0021e43d63b4 (patch) | |
| tree | cc510feccdd981dc3e2b3d5b9dd2304553395095 /cc3200 | |
| parent | 00960133c2b1732daf28423481b4ffc8a14f207a (diff) | |
cc3200/appsign.sh: Use md5 if running under Darwin.
Diffstat (limited to 'cc3200')
| -rw-r--r-- | cc3200/appsign.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc3200/appsign.sh b/cc3200/appsign.sh index 3906433e8..5752b40cd 100644 --- a/cc3200/appsign.sh +++ b/cc3200/appsign.sh @@ -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 |
