mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
blobutil/inject: check that me.bin exists
This commit is contained in:
@@ -256,13 +256,20 @@ inject_blob_intel_mrc()
|
|||||||
|
|
||||||
inject_blob_intel_me()
|
inject_blob_intel_me()
|
||||||
{
|
{
|
||||||
|
printf 'adding intel management engine\n'
|
||||||
|
|
||||||
rom="${1}"
|
rom="${1}"
|
||||||
|
|
||||||
if [ -z ${CONFIG_ME_BIN_PATH} ]; then
|
if [ -z ${CONFIG_ME_BIN_PATH} ]; then
|
||||||
fail "CONFIG_ME_BIN_PATH not set"
|
fail "CONFIG_ME_BIN_PATH not set"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_me_location=${CONFIG_ME_BIN_PATH#../../}
|
_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
|
${ifdtool} -i me:${_me_location} ${rom} -O ${rom} || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user