Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7080e963
Commit
7080e963
authored
Aug 24, 2015
by
Gary Ashton-Jones
Committed by
danicampora
Nov 18, 2015
Browse files
cc3200/appsign.sh: Use md5 if running under Darwin.
parent
00960133
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/appsign.sh
View file @
7080e963
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment