summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-16 12:54:07 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-16 12:54:07 +0100
commitc3f0a109c3d1c5378bd55b2a7827d335fe0ad21d (patch)
tree17335503c28a8d3d6f92d6f33795c4d748454004 /script
parentc8944f1ca893268cc82d5057b342c943d03aeb30 (diff)
roms: simplify mkSeabiosRom()
remove variables that are not meaningfully used Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms9
1 files changed, 3 insertions, 6 deletions
diff --git a/script/roms b/script/roms
index fe14b22a..c8c2ae64 100755
--- a/script/roms
+++ b/script/roms
@@ -272,14 +272,11 @@ build_grub_roms()
# make a rom in /tmp/ and then print the path of that ROM
mkSeabiosRom() {
- _cbrom="$1" # rom to insert seabios in. will not be touched
- # (a tmpfile will be made instead)
- _seabios_cbfs_path="$2" # e.g. fallback/payload
+ tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" # 1=cbrom, 2=cbfs path
_seabioself="elf/seabios/default/$initmode/bios.bin.elf"
- tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)"
- x_ cp "$_cbrom" "$tmprom"
- cbfs "$tmprom" "$_seabioself" "$_seabios_cbfs_path"
+ x_ cp "$1" "$tmprom"
+ cbfs "$tmprom" "$_seabioself" "$2"
x_ "$cbfstool" "$tmprom" add-int -i 3000 -n etc/ps2-keyboard-spinup
z="2"; [ "$initmode" = "vgarom" ] && z="0"