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>
audit2-merge1
Leah Rowe 2024-06-16 17:50:42 +01:00 committed by Leah Rowe
parent dd2854b3e8
commit f43525d14f
1 changed files with 1 additions and 2 deletions

View File

@ -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()