Idwer Vollering has uploaded this change for review.

View Change

util/board_status/board_status.sh: select the right gnu make binary

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

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/49306/1
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 31c3e7c..ab4a310 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -26,6 +26,13 @@
# Used if nvramtool is not in default $PATH, e.g. not installed or when using `sudo`
NVRAMTOOL_PATH=""

+case $(uname) in
+FreeBSD)
+ MAKE=gmake;;
+*)
+ MAKE=make;;
+esac
+
# test a command
#
# $1: 0 ($LOCAL) to run command locally,
@@ -302,7 +309,7 @@
exit $EXIT_FAILURE
fi
else
- make -C util/cbfstool/
+ $MAKE -C util/cbfstool/
do_clean_cbfstool=1
fi
fi
@@ -313,7 +320,7 @@
$cbfstool_cmd "$COREBOOT_IMAGE" extract -n config -f "${tmpdir}/config.txt" >/dev/null 2>&1
mv "${tmpdir}/config.txt" "${tmpdir}/config.short.txt"
cp "${tmpdir}/config.short.txt" "${tmpcfg}"
-yes "" | make "DOTCONFIG=${tmpcfg}" oldconfig 2>/dev/null >/dev/null
+yes "" | $MAKE "DOTCONFIG=${tmpcfg}" oldconfig 2>/dev/null >/dev/null
mv "${tmpcfg}" "${tmpdir}/config.txt"
rm -f "${tmpcfg}.old"
$cbfstool_cmd "$COREBOOT_IMAGE" print > "${tmpdir}/cbfs.txt"
@@ -329,7 +336,7 @@
md5sum -b "$COREBOOT_IMAGE" > "${tmpdir}/rom_checksum.txt"

if test $do_clean_cbfstool -eq 1; then
- make -C util/cbfstool clean
+ $MAKE -C util/cbfstool clean
fi

# Obtain board and revision info to form the directory structure:

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

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