swu-images: add sha256 entry for script files.

This commit adds sha256 entry for the script files into
the sw-descrition. It is necessary for the Trustfence
authentication to have the included script files signed.

https://onedigi.atlassian.net/browse/DEL-8649

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
Mike Engel 2023-08-10 14:12:36 +02:00
parent 6bddaddb2c
commit 32078060f7
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ software =
scripts: ( scripts: (
{ {
filename = "@@SWUPDATE_SCRIPT_NAME@@"; filename = "@@SWUPDATE_SCRIPT_NAME@@";
sha256 = "$swupdate_get_sha256(@@SWUPDATE_SCRIPT_NAME@@)";
type = "shellscript"; type = "shellscript";
} }
); );
@ -41,6 +42,7 @@ software =
scripts: ( scripts: (
{ {
filename = "@@SWUPDATE_SCRIPT_NAME@@"; filename = "@@SWUPDATE_SCRIPT_NAME@@";
sha256 = "$swupdate_get_sha256(@@SWUPDATE_SCRIPT_NAME@@)";
type = "shellscript"; type = "shellscript";
} }
); );

View File

@ -11,6 +11,7 @@ software =
scripts: ( scripts: (
{ {
filename = "@@SWUPDATE_SCRIPT_NAME@@"; filename = "@@SWUPDATE_SCRIPT_NAME@@";
sha256 = "$swupdate_get_sha256(@@SWUPDATE_SCRIPT_NAME@@)";
type = "shellscript"; type = "shellscript";
} }
); );
@ -28,6 +29,7 @@ software =
scripts: ( scripts: (
{ {
filename = "@@SWUPDATE_SCRIPT_NAME@@"; filename = "@@SWUPDATE_SCRIPT_NAME@@";
sha256 = "$swupdate_get_sha256(@@SWUPDATE_SCRIPT_NAME@@)";
type = "shellscript"; type = "shellscript";
} }
); );
@ -45,6 +47,7 @@ software =
scripts: ( scripts: (
{ {
filename = "@@SWUPDATE_SCRIPT_NAME@@"; filename = "@@SWUPDATE_SCRIPT_NAME@@";
sha256 = "$swupdate_get_sha256(@@SWUPDATE_SCRIPT_NAME@@)";
type = "shellscript"; type = "shellscript";
} }
); );