From 30c4e79294fa39c83afc5f41f0b2c9035f3dddd2 Mon Sep 17 00:00:00 2001 From: Nicholas Sudsgaard Date: Sat, 8 Mar 2025 12:08:01 +0900 Subject: [PATCH] util/lint: Add support for FreeBSD Change-Id: I9f7ceb2233d5d68b6e6f57faeaa0253390e0e003 Signed-off-by: Nicholas Sudsgaard Reviewed-on: https://review.coreboot.org/c/coreboot/+/86768 Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Brune --- util/lint/lint | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/util/lint/lint b/util/lint/lint index 56edaa65c4..30109ae0e0 100755 --- a/util/lint/lint +++ b/util/lint/lint @@ -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