summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-16 17:50:42 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-16 17:50:42 +0100
commitbc853fbb89a55257632ea287f4d8d3b9a114c608 (patch)
treee11ffe7f816b6983d1e9b5fcf03d243348add5fa /script
parent12b26f207fe343ffe7077398abc75f09b83c7506 (diff)
roms build_uboot_roms(): move rom, don't copy
that way, we don't have to delete the temporary file. just move it entirely. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/roms b/script/roms
index fd294e06..6c998067 100755
--- a/script/roms
+++ b/script/roms
@@ -293,8 +293,7 @@ build_uboot_roms()
newrom="$romdir/uboot_payload_${board}_${initmode}_$displaymode.rom"
x_ cp "$cbrom" "$tmprom"
cbfs "$tmprom" "$ubootelf" "fallback/payload"
- x_ cprom cp "$tmprom" "$newrom"
- x_ rm -f "$tmprom"
+ x_ cprom mv "$tmprom" "$newrom"
}
cprom()