aboutsummaryrefslogtreecommitdiff
path: root/cc3200/appsign.sh
blob: a4b918887211b5403c9d93567f1c71861e480ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Build location
# First parameter passed is the board type
BUILD=build/$1

# Generate the MD5 hash
echo -n md5sum --binary $BUILD/application.bin | awk '{ print $1 }' > __md5hash.bin

# Concatenate it with the application binary
cat $BUILD/application.bin __md5hash.bin > $BUILD/MCUIMG.BIN

# Remove the tmp files
rm -f __md5hash.bin

# Remove hte unsigned binary
rm -f $BUILD/application.bin