Add hash for EC binaries

This commit is contained in:
Jack Marriott
2018-11-23 05:00:29 -05:00
parent 4d736051da
commit 7937cbca77
4 changed files with 21 additions and 10 deletions

View File

@@ -84,7 +84,11 @@ LINT_FLAGS = -i -style=file -fallback-style=none
.PRECIOUS: %/compiler.opt %/linker.cmd
all: oc_connect1
all: oc_connect1 hash
hash:
cd ../utilities/checksums; ./hashes.sh $(shell pwd)/$(OUT) -ec
oc_connect1: $(OUT)/OpenCellular.bin
$(OUT)/%/compiler.opt $(OUT)/%/linker.cmd : %.cfg

View File

@@ -18,7 +18,7 @@ default:
all: ocmw_uart ocmw_usb ocmw_eth occli ocmw_eth_stub ocware_stub hash
hash:
cd ../utilities/checksums; ./hosthash.sh $(shell pwd)/$(output_dir)
cd ../utilities/checksums; ./hashes.sh $(shell pwd)/$(output_dir) -host
.PHONY: occli

View File

@@ -0,0 +1,15 @@
#!/bin/sh -e
#
# Description
# This script records the md5 hashes of host build objects
#
BIN_FILES=$(find $1 -executable -type f)
if [ "$2" = "-host" ]; then
MD5_FILE="hmd5sums.txt"
fi
if [ "$2" = "-ec" ]; then
MD5_FILE="ecmd5sums.txt"
fi
md5sum $BIN_FILES > $MD5_FILE

View File

@@ -1,8 +0,0 @@
#!/bin/sh -e
#
# Description
# This script records the md5 hashes of host build objects
#
BIN_FILES=$(find $1 -executable -type f)
HOST_MD5_FILE="hmd5sums.txt"
md5sum $BIN_FILES > $HOST_MD5_FILE