vendor.sh: break up the extract_kbc1126 subshell

stick it in a new function, for easier reading.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-10-01 07:19:04 +01:00
parent 347330a611
commit 3b6d2b799c
+12 -9
View File
@@ -313,7 +313,18 @@ extract_archive()
extract_kbc1126ec() extract_kbc1126ec()
{ {
( ( extract_kbc1126ec_dump ) || \
err "$board: can't extract kbc1126 fw" "extract_kbc1126ec" "$@"
# throw error if either file is missing
x_ e "$appdir/ec.bin.fw1" f
x_ e "$appdir/ec.bin.fw2" f
x_ cp "$appdir/"ec.bin.fw* "${_pre_dest%/*}/"
}
extract_kbc1126ec_dump()
{
x_ cd "$appdir/" x_ cd "$appdir/"
if mv Rompaq/68*.BIN ec.bin; then if mv Rompaq/68*.BIN ec.bin; then
@@ -335,14 +346,6 @@ extract_kbc1126ec()
if x_ e ec.bin f; then if x_ e ec.bin f; then
x_ "$kbc1126_ec_dump" ec.bin x_ "$kbc1126_ec_dump" ec.bin
fi fi
) || err "$board: can't extract kbc1126 fw" "extract_kbc1126ec" "$@"
# throw error if either file is missing
x_ e "$appdir/ec.bin.fw1" f
x_ e "$appdir/ec.bin.fw2" f
x_ cp "$appdir/"ec.bin.fw* "${_pre_dest%/*}/"
} }
extract_e6400vga() extract_e6400vga()