trustfence-sign-artifact: verify CONFIG_SIGN_MODE argument is set
If CONFIG_SIGN_MODE is unset, we were assuming the sign mode to be AHAB whereas it is preferable to abort the signing process and notify with an error message. https://jira.digi.com/browse/DEL-7024 Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
This commit is contained in:
parent
9b4a03c14c
commit
5b23f09622
|
|
@ -83,6 +83,10 @@ if [ -z "${CONFIG_SIGN_KEYS_PATH}" ]; then
|
|||
exit 1
|
||||
fi
|
||||
[ -d "${CONFIG_SIGN_KEYS_PATH}" ] || mkdir "${CONFIG_SIGN_KEYS_PATH}"
|
||||
if [ -z "${CONFIG_SIGN_MODE}" ]; then
|
||||
echo "Undefined CONFIG_SIGN_MODE";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${CONFIG_SIGN_MODE}" = "HAB" ]; then
|
||||
if [ -n "${CONFIG_DEK_PATH}" ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue