util/lint: Add support for FreeBSD

Change-Id: I9f7ceb2233d5d68b6e6f57faeaa0253390e0e003
Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86768
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
This commit is contained in:
Nicholas Sudsgaard 2025-03-08 12:08:01 +09:00 committed by Matt DeVillier
commit 30c4e79294

View file

@ -30,11 +30,12 @@ junit_write () {
}
# Look if we have getopt. If not, build it.
if [ "$(uname)" = "Darwin" ]; then
GETOPT="getopt hIJ"
else
GETOPT="getopt -l help,junit,invert -o hIJ"
fi
case "$(uname)" in
Darwin|FreeBSD)
GETOPT="getopt hIJ" ;;
*)
GETOPT="getopt -l help,junit,invert -o hIJ" ;;
esac
if ! cmd_args="$($GETOPT -- "$@")"; then
usage