summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"