util/board_status/board_status.sh: improve mktemp behaviour on non-linux OSes

Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Change-Id: I763b0e7c7c81a2447ed20db0a25047d106e30606
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49308
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Idwer Vollering 2021-01-11 14:07:21 +01:00 committed by Patrick Georgi
parent 3c70774629
commit a3c44d843c
1 changed files with 8 additions and 1 deletions

View File

@ -315,7 +315,14 @@ fi
# Results will be placed in a temporary location until we're ready to upload. # 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. # If the user does not wish to upload, results will remain in /tmp.
case $(uname) in
FreeBSD)
tmpdir=$(mktemp -d -t coreboot_board_status)
;;
*)
tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX) tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX)
;;
esac
# Obtain coreboot config by running cbfstool on the ROM image. cbfstool may # 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 # already exist in build/ or util/cbfstool/, but if not then we'll build it