diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-16 12:51:47 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-16 12:51:47 +0100 |
commit | c8944f1ca893268cc82d5057b342c943d03aeb30 (patch) | |
tree | 2a8a865c3be6f4f1cdbf48dbfb339e857ccfc5f0 /script/roms | |
parent | 92aa83a23696cd5706770af78d49858ef2d0c28d (diff) |
roms: simplify mkUbootRom()
remove variables that are not meaningfully used
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/roms')
-rwxr-xr-x | script/roms | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/script/roms b/script/roms index ea2f4b26..fe14b22a 100755 --- a/script/roms +++ b/script/roms @@ -302,14 +302,9 @@ build_uboot_roms() # make a rom in /tmp/ and then print the path of that ROM mkUbootRom() { - _cbrom="$1" - _uboot_cbfs_path="$2" - - tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" - - x_ cp "$_cbrom" "$tmprom" - cbfs "$tmprom" "$ubootelf" "$_uboot_cbfs_path" - + tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" # 1=cbrom, 2=cbfs path + x_ cp "$1" "$tmprom" + cbfs "$tmprom" "$ubootelf" "$2" printf "%s\n" "$tmprom" } |