Idwer Vollering has uploaded this change for review.

View Change

util/board_status/board_status.sh: invoke md5 on FreeBSD

Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Change-Id: I8d9493ce0c3fa97ea9c3c2f60a0106bb98bd8315
---
M util/board_status/board_status.sh
1 file changed, 6 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/49309/1
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index ce636b7..cc83bd4 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -350,7 +350,12 @@
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

To view, visit change 49309. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8d9493ce0c3fa97ea9c3c2f60a0106bb98bd8315
Gerrit-Change-Number: 49309
Gerrit-PatchSet: 1
Gerrit-Owner: Idwer Vollering <vidwer@gmail.com>
Gerrit-MessageType: newchange