[PATCH] arm: k3: Correct an awk warning

Tom Rini trini at konsulko.com
Sun Aug 7 15:29:34 CEST 2022


On Sun, Aug 07, 2022 at 07:12:19AM -0600, Simon Glass wrote:

> The k3_gen_x509_cert.sh script produced this warning on gitlab and also
> on my machine, e.g. with j7200_evm_r5:
> 
> awk: cmd. line:1: warning: regexp escape sequence `\ ' is not a known
>    regexp operator
> 
> There is no need to escape spaces, so drop the backslashes. Also split
> the line so it is a more reasonable length.
> 
> This script should really be deleted and binman used instead.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  tools/k3_gen_x509_cert.sh | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/k3_gen_x509_cert.sh b/tools/k3_gen_x509_cert.sh
> index 24cfc4e5fb5..029247c1059 100755
> --- a/tools/k3_gen_x509_cert.sh
> +++ b/tools/k3_gen_x509_cert.sh
> @@ -88,7 +88,10 @@ EOF
>  }
>  
>  parse_key() {
> -	sed '/\ \ \ \ /s/://g' key.txt | awk  '!/\ \ \ \ / {printf("\n%s\n", $0)}; /\ \ \ \ / {printf("%s", $0)}' | sed 's/\ \ \ \ //g' | awk "/$1:/{getline; print}"
> +	sed '/    /s/://g' key.txt | \
> +            awk  '!/    / {printf("\n%s\n", $0)}; /    / {printf("%s", $0)}' | \
> +            sed 's/    //g' | \
> +            awk "/$1:/{getline; print}"
>  }
>  
>  gen_degen_key() {

Since this is HS related content, and Neha has been working on a series
to move these platforms to binman
(https://patchwork.ozlabs.org/project/uboot/list/?series=304821&state=*)
adding a few more people.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220807/8015c3a7/attachment.sig>


More information about the U-Boot mailing list