summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-07-27 08:13:28 +0100
committerLeah Rowe <leah@libreboot.org>2023-07-27 08:13:28 +0100
commit748e0972287bcb300bf11ef86d3ccb45bce59146 (patch)
treea54553c8d32086311338b39117f5d6146be381e1 /resources/scripts
parente594ac1697d9267cbfa5a54636fd24f278717313 (diff)
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>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/update/blobs/download5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/scripts/update/blobs/download b/resources/scripts/update/blobs/download
index 0896ed47..dbb56e9b 100755
--- a/resources/scripts/update/blobs/download
+++ b/resources/scripts/update/blobs/download
@@ -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
)