From 748e0972287bcb300bf11ef86d3ccb45bce59146 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 27 Jul 2023 08:13:28 +0100 Subject: 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 --- resources/scripts/update/blobs/download | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'resources') 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 ) -- cgit v1.2.1