mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-24 21:54:11 +02:00
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:
+12
-9
@@ -313,7 +313,18 @@ extract_archive()
|
||||
|
||||
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/"
|
||||
|
||||
if mv Rompaq/68*.BIN ec.bin; then
|
||||
@@ -335,14 +346,6 @@ extract_kbc1126ec()
|
||||
if x_ e ec.bin f; then
|
||||
x_ "$kbc1126_ec_dump" ec.bin
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user