summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-14 08:30:21 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-14 08:30:21 +0100
commitd34f381301279deb8e50a1fb1b08391ddf329ee0 (patch)
tree0aaf0a1d2216320f637713dbdb2033e126a6e048
parent5da7554a3b55994071c5a036965035a2d14f89b7 (diff)
blobutil/inject: check me path
-rwxr-xr-xresources/scripts/blobs/inject4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/scripts/blobs/inject b/resources/scripts/blobs/inject
index 0664d96a..b8fe1c9b 100755
--- a/resources/scripts/blobs/inject
+++ b/resources/scripts/blobs/inject
@@ -258,7 +258,9 @@ inject_blob_intel_me()
{
rom="${1}"
- # TODO: check if CONFIG_ME_BIN_PATH is empty
+ 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'
${ifdtool} -i me:${_me_location} ${rom} -O ${rom} || exit 1