diff options
author | Martin Roth <martinroth@google.com> | 2015-12-17 12:44:35 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2015-12-20 01:17:25 +0100 |
commit | 072b5aa5c5a8ea23012c7a948d788b6955ba0ee0 (patch) | |
tree | 664e3f742518002164d2b6700ed4febc6a8952dd | |
parent | 574d16559210ef2b17f24fa40ac4be17101a062b (diff) | |
download | coreboot-staging-072b5aa5c5a8ea23012c7a948d788b6955ba0ee0.zip coreboot-staging-072b5aa5c5a8ea23012c7a948d788b6955ba0ee0.tar.gz |
board_status.sh: checksum the rom and save it for later verification
This allows users who build the rom from the board-status repo to
verify that their rom matches the original.
Change-Id: I4e8564e389495909219f92ccdafb8e9568f8f0d0
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12760
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rwxr-xr-x | util/board_status/board_status.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 578e40a..410488f 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -242,6 +242,7 @@ if [ -n "$(echo $rom_contents | grep payload_version)" ]; then echo "Extracting payload_version from build/coreboot.rom" $cbfstool_cmd build/coreboot.rom extract -n payload_version -f "${tmpdir}/payload_version.txt" >/dev/null 2>&1 fi +md5sum -b build/coreboot.rom > "${tmpdir}/rom_checksum.txt" # Obtain board and revision info to form the directory structure: # <vendor>/<board>/<revision>/<timestamp> @@ -264,6 +265,7 @@ test -f "${tmpdir}/payload_config.txt" && mv "${tmpdir}/payload_config.txt" "${t test -f "${tmpdir}/payload_version.txt" && mv "${tmpdir}/payload_version.txt" "${tmpdir}/${results}" mv "${tmpdir}/config.short.txt" "${tmpdir}/${results}" mv "${tmpdir}/cbfs.txt" "${tmpdir}/${results}" +mv "${tmpdir}/rom_checksum.txt" "${tmpdir}/${results}" touch ${tmpdir}/${results}/revision.txt printf "Local revision: %s\n" "$($getrevision -l)" >> ${tmpdir}/${results}/revision.txt |