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>
This commit is contained in:
parent
574d165592
commit
072b5aa5c5
|
@ -242,6 +242,7 @@ if [ -n "$(echo $rom_contents | grep payload_version)" ]; then
|
||||||
echo "Extracting payload_version from build/coreboot.rom"
|
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
|
$cbfstool_cmd build/coreboot.rom extract -n payload_version -f "${tmpdir}/payload_version.txt" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
md5sum -b build/coreboot.rom > "${tmpdir}/rom_checksum.txt"
|
||||||
|
|
||||||
# Obtain board and revision info to form the directory structure:
|
# Obtain board and revision info to form the directory structure:
|
||||||
# <vendor>/<board>/<revision>/<timestamp>
|
# <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}"
|
test -f "${tmpdir}/payload_version.txt" && mv "${tmpdir}/payload_version.txt" "${tmpdir}/${results}"
|
||||||
mv "${tmpdir}/config.short.txt" "${tmpdir}/${results}"
|
mv "${tmpdir}/config.short.txt" "${tmpdir}/${results}"
|
||||||
mv "${tmpdir}/cbfs.txt" "${tmpdir}/${results}"
|
mv "${tmpdir}/cbfs.txt" "${tmpdir}/${results}"
|
||||||
|
mv "${tmpdir}/rom_checksum.txt" "${tmpdir}/${results}"
|
||||||
|
|
||||||
touch ${tmpdir}/${results}/revision.txt
|
touch ${tmpdir}/${results}/revision.txt
|
||||||
printf "Local revision: %s\n" "$($getrevision -l)" >> ${tmpdir}/${results}/revision.txt
|
printf "Local revision: %s\n" "$($getrevision -l)" >> ${tmpdir}/${results}/revision.txt
|
||||||
|
|
Loading…
Reference in New Issue