summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-14 08:31:59 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-14 08:31:59 +0100
commit54f8a45325daf718cef772584bc7b60aa2114d85 (patch)
tree6f16a29d4ea67f435fd1e33e081aea42b2c28edf
parentd34f381301279deb8e50a1fb1b08391ddf329ee0 (diff)
blobutil/inject: check that me.bin exists
-rwxr-xr-xresources/scripts/blobs/inject9
1 files changed, 8 insertions, 1 deletions
diff --git a/resources/scripts/blobs/inject b/resources/scripts/blobs/inject
index b8fe1c9b..805db0db 100755
--- a/resources/scripts/blobs/inject
+++ b/resources/scripts/blobs/inject
@@ -256,13 +256,20 @@ inject_blob_intel_mrc()
inject_blob_intel_me()
{
+ printf 'adding intel management engine\n'
+
rom="${1}"
if [ -z ${CONFIG_ME_BIN_PATH} ]; then
fail "CONFIG_ME_BIN_PATH not set"
fi
+
_me_location=${CONFIG_ME_BIN_PATH#../../}
- printf 'adding intel management engine\n'
+
+ if [ ! -f "${_me_location}" ]; then
+ fail "CONFIG_ME_BIN_PATH points to missing file"
+ fi
+
${ifdtool} -i me:${_me_location} ${rom} -O ${rom} || exit 1
}