summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorIdwer Vollering <vidwer@gmail.com>2021-01-11 14:08:39 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-01-25 09:08:53 +0000
commitf0712795b01f741a1b0ca725a0b3ddc8eee373f2 (patch)
tree783b288dd0984aa938fde68203977da69a48a5ba /util
parenta3c44d843cf6690f508a59ac13b2f9c7b44e6032 (diff)
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>
Diffstat (limited to 'util')
-rwxr-xr-xutil/board_status/board_status.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 01fc7ecbd9..1024ff67b2 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -361,7 +361,14 @@ if [ -n "$(echo $rom_contents | grep payload_version)" ]; then
echo "Extracting payload_version from $COREBOOT_IMAGE"
$cbfstool_cmd "$COREBOOT_IMAGE" extract -n payload_version -f "${tmpdir}/payload_version.txt" >/dev/null 2>&1
fi
-md5sum -b "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"
+case $(uname) in
+ FreeBSD)
+ md5 "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"
+ ;;
+ *)
+ md5sum -b "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"
+ ;;
+esac
if test $do_clean_cbfstool -eq 1; then
$MAKE -C util/cbfstool clean