From 6ddc02a7b792b8d1d735dc4ca7750556cec2b3e1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 22 Jul 2024 18:40:42 +0100 Subject: [PATCH] rom.sh: copy tmprom to TMPDIR for modification don't rely on build/coreboot.rom staying in place, because sometimes it can get purged under certain conditions, due to idiosyncrasies in the coreboot build system, even when we don't explicitly clean it Signed-off-by: Leah Rowe --- include/rom.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/rom.sh b/include/rom.sh index 72b7864..8982138 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -80,7 +80,9 @@ mkcorebootbin() { [ "$target" = "$tree" ] && return 0 - tmprom="$srcdir/build/coreboot.rom" + tmprom="$TMPDIR/coreboot.rom" + mv "$srcdir/build/coreboot.rom" "$tmprom" || $err "!mktmprom" + initmode="${defconfig##*/}"; displaymode="${initmode##*_}" initmode="${initmode%%_*}" [ -n "$displaymode" ] && displaymode="_$displaymode"