From 072b5aa5c5a8ea23012c7a948d788b6955ba0ee0 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 17 Dec 2015 12:44:35 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/12760 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/board_status/board_status.sh | 2 ++ 1 file changed, 2 insertions(+) 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: # /// @@ -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 -- cgit v1.1