summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-07-22 18:40:42 +0100
committerLeah Rowe <leah@libreboot.org>2024-07-22 18:40:42 +0100
commitd070eb1fefca339b6fea0f262fcb889a16d2b27d (patch)
treea0d4256122004d5867645f2959c1edae82fce105 /include
parentf85cb69ce031759c8b4bbd9ed4eb9f0f422bde13 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/rom.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 7d97e00b..58c49bb5 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -82,7 +82,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"