mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-16 22:35:05 +00:00
Add hash for EC binaries
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
15
firmware/utilities/checksums/hashes.sh
Executable file
15
firmware/utilities/checksums/hashes.sh
Executable 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user