roms: simplify mkSeabiosRom()
remove variables that are not meaningfully used Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
19baf8d1a7
commit
a9819d7385
|
@ -272,14 +272,11 @@ build_grub_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
|
||||||
mkSeabiosRom() {
|
mkSeabiosRom() {
|
||||||
_cbrom="$1" # rom to insert seabios in. will not be touched
|
tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" # 1=cbrom, 2=cbfs path
|
||||||
# (a tmpfile will be made instead)
|
|
||||||
_seabios_cbfs_path="$2" # e.g. fallback/payload
|
|
||||||
_seabioself="elf/seabios/default/$initmode/bios.bin.elf"
|
_seabioself="elf/seabios/default/$initmode/bios.bin.elf"
|
||||||
tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)"
|
|
||||||
|
|
||||||
x_ cp "$_cbrom" "$tmprom"
|
x_ cp "$1" "$tmprom"
|
||||||
cbfs "$tmprom" "$_seabioself" "$_seabios_cbfs_path"
|
cbfs "$tmprom" "$_seabioself" "$2"
|
||||||
x_ "$cbfstool" "$tmprom" add-int -i 3000 -n etc/ps2-keyboard-spinup
|
x_ "$cbfstool" "$tmprom" add-int -i 3000 -n etc/ps2-keyboard-spinup
|
||||||
|
|
||||||
z="2"; [ "$initmode" = "vgarom" ] && z="0"
|
z="2"; [ "$initmode" = "vgarom" ] && z="0"
|
||||||
|
|
Loading…
Reference in New Issue