diff options
-rwxr-xr-x | util/board_status/board_status.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 5235a289fc..01fc7ecbd9 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -315,7 +315,14 @@ fi # Results will be placed in a temporary location until we're ready to upload. # If the user does not wish to upload, results will remain in /tmp. -tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX) +case $(uname) in + FreeBSD) + tmpdir=$(mktemp -d -t coreboot_board_status) + ;; + *) + tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX) + ;; +esac # Obtain coreboot config by running cbfstool on the ROM image. cbfstool may # already exist in build/ or util/cbfstool/, but if not then we'll build it |