diff mbox series

[meta-swupdate-boards] sama5d27-som1-ek-sd: Adapt to the new sha256 syntax

Message ID 20220605141550.527640-1-festevam@gmail.com
State Accepted
Headers show
Series [meta-swupdate-boards] sama5d27-som1-ek-sd: Adapt to the new sha256 syntax | expand

Commit Message

Fabio Estevam June 5, 2022, 2:15 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

The new recommended syntax for passing the sha256 of the image is
to use the $swupdate_get_sha256() format.

Switch to the new syntax.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 .../images/update-image/sama5d27-som1-ek-sd/sw-description    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stefano Babic June 5, 2022, 3:52 p.m. UTC | #1
On 05.06.22 16:15, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> The new recommended syntax for passing the sha256 of the image is
> to use the $swupdate_get_sha256() format.
> 
> Switch to the new syntax.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>   .../images/update-image/sama5d27-som1-ek-sd/sw-description    | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description b/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description
> index f2f77544146a..99dfa7f7f410 100644
> --- a/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description
> +++ b/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description
> @@ -9,7 +9,7 @@ software =
>                   images: ({
>                           filename = "core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
>                           type = "raw";
> -                        sha256 = "@core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
> +                        sha256 = "$swupdate_get_sha256(core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz)";
>                           compressed = "zlib";
>                           device = "/dev/mmcblk0p2";
>                   });
> @@ -26,7 +26,7 @@ software =
>                   images: ({
>                           filename = "core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
>                           type = "raw";
> -                        sha256 = "@core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
> +                        sha256 = "$swupdate_get_sha256(core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz)";
>                           compressed = "zlib";
>                           device = "/dev/mmcblk0p3";
>                   });

Applied to -master and -kirkstone, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description b/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description
index f2f77544146a..99dfa7f7f410 100644
--- a/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description
+++ b/recipes-extended/images/update-image/sama5d27-som1-ek-sd/sw-description
@@ -9,7 +9,7 @@  software =
                 images: ({
                         filename = "core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
                         type = "raw";
-                        sha256 = "@core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
+                        sha256 = "$swupdate_get_sha256(core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz)";
                         compressed = "zlib";
                         device = "/dev/mmcblk0p2";
                 });
@@ -26,7 +26,7 @@  software =
                 images: ({
                         filename = "core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
                         type = "raw";
-                        sha256 = "@core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz";
+                        sha256 = "$swupdate_get_sha256(core-image-full-cmdline-sama5d27-som1-ek-sd.ext4.gz)";
                         compressed = "zlib";
                         device = "/dev/mmcblk0p3";
                 });