util/board_status/board_status.sh: invoke md5 on FreeBSD
Signed-off-by: Idwer Vollering <vidwer@gmail.com> Change-Id: I8d9493ce0c3fa97ea9c3c2f60a0106bb98bd8315 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49309 Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a3c44d843c
commit
f0712795b0
|
@ -361,7 +361,14 @@ if [ -n "$(echo $rom_contents | grep payload_version)" ]; then
|
||||||
echo "Extracting payload_version from $COREBOOT_IMAGE"
|
echo "Extracting payload_version from $COREBOOT_IMAGE"
|
||||||
$cbfstool_cmd "$COREBOOT_IMAGE" extract -n payload_version -f "${tmpdir}/payload_version.txt" >/dev/null 2>&1
|
$cbfstool_cmd "$COREBOOT_IMAGE" extract -n payload_version -f "${tmpdir}/payload_version.txt" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
case $(uname) in
|
||||||
|
FreeBSD)
|
||||||
|
md5 "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
md5sum -b "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"
|
md5sum -b "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if test $do_clean_cbfstool -eq 1; then
|
if test $do_clean_cbfstool -eq 1; then
|
||||||
$MAKE -C util/cbfstool clean
|
$MAKE -C util/cbfstool clean
|
||||||
|
|
Loading…
Reference in New Issue