diff options
author | Leah Rowe <leah@libreboot.org> | 2023-07-27 08:13:28 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-07-27 08:13:28 +0100 |
commit | 748e0972287bcb300bf11ef86d3ccb45bce59146 (patch) | |
tree | a54553c8d32086311338b39117f5d6146be381e1 /resources/scripts | |
parent | e594ac1697d9267cbfa5a54636fd24f278717313 (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-x | resources/scripts/update/blobs/download | 5 |
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 ) |