Thanks, applied as 3573571a0883b7119d8b36553befaa6c7857f407.

Michael

[sent from post-receive hook]

On Tue, 19 May 2020 14:23:42 +0200, Bastian Krause <[email protected]> wrote:
> Until now only kernel and fdt are signed by mkimage. If a ramdisk is
> used sign it also.
> 
> Unfortunately quotes are not usable in the alternative value of
> variable paramater substitution ${parameter:+alt_value}:
> 
>   
> https://stackoverflow.com/questions/40995523/bash-variable-expansion-var-in-here-document-removing-double-quotes
> 
> Thus use printf as a workaround.
> 
> Signed-off-by: Bastian Krause <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/scripts/lib/ptxd_make_fit_image.sh 
> b/scripts/lib/ptxd_make_fit_image.sh
> index c2725ab3ddde..56f273686dc4 100644
> --- a/scripts/lib/ptxd_make_fit_image.sh
> +++ b/scripts/lib/ptxd_make_fit_image.sh
> @@ -78,7 +78,7 @@ EOF
>                       signature-1 {
>                               algo = "sha256,rsa4096";
>                               key-name-hint = "${image_key_name_hint}";
> -                             sign-images = "fdt", "kernel";
> +                             sign-images = "fdt", 
> "kernel"${image_initramfs:+$(printf %s ', "ramdisk"')};
>                       };
>  EOF
>       fi

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to