roms: simplify mkUbootRom()
remove variables that are not meaningfully used Signed-off-by: Leah Rowe <leah@libreboot.org>audit6-merge1
parent
92aa83a236
commit
c8944f1ca8
11
script/roms
11
script/roms
|
@ -302,14 +302,9 @@ build_uboot_roms()
|
||||||
|
|
||||||
# make a rom in /tmp/ and then print the path of that ROM
|
# make a rom in /tmp/ and then print the path of that ROM
|
||||||
mkUbootRom() {
|
mkUbootRom() {
|
||||||
_cbrom="$1"
|
tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" # 1=cbrom, 2=cbfs path
|
||||||
_uboot_cbfs_path="$2"
|
x_ cp "$1" "$tmprom"
|
||||||
|
cbfs "$tmprom" "$ubootelf" "$2"
|
||||||
tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)"
|
|
||||||
|
|
||||||
x_ cp "$_cbrom" "$tmprom"
|
|
||||||
cbfs "$tmprom" "$ubootelf" "$_uboot_cbfs_path"
|
|
||||||
|
|
||||||
printf "%s\n" "$tmprom"
|
printf "%s\n" "$tmprom"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue