blobutil/ec: abort if kbc1126 ec extraction fails

This was an oversight on my part.

Should extraction fail, we must abort. This is in preparation
for addition of future mainboards, where further tweaking is
required in blobutil. This error check will warn us about it.

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-07-27 08:13:28 +01:00
parent e594ac1697
commit 748e097228
1 changed files with 5 additions and 0 deletions

View File

@ -337,6 +337,11 @@ extract_ec()
unar -D ROM.CAB Rom.bin
mv Rom.bin ec.bin
fi
if [ ! -f ec.bin ]; then
printf "could not extract ec.bin for board '%s'" ${board} \
1>&2
fail "aborting the build. please audit blobutil carefully."
fi
"${kbc1126_ec_dump}" ec.bin
)