Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/49308 )
Change subject: util/board_status/board_status.sh: improve mktemp behaviour on non-linux OSes ......................................................................
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 --- M util/board_status/board_status.sh 1 file changed, 8 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified David Hendricks: Looks good to me, approved
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 5235a28..01fc7ec 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -315,7 +315,14 @@
# 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