From: Matthias Zoechmann <[email protected]>

If an additional block to be authenticated is added via
'hab_do_block off+size@addr' the CST tool will fail.
It seems that an own line is expected for each authentication
block. Add a '\' and linefeed after the comma to avoid a fail of CST.

Signed-off-by: Matthias Zoechmann <[email protected]>
---
 scripts/imx/imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index 
26027f0f3548ce5ce60c84bf1c94d3a699a331cc..6dabaf59c159b582dfe84eff81cec039c4863b77
 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -488,7 +488,7 @@ static int do_hab_blocks(struct config_data *data, int 
argc, char *argv[])
                        return -EINVAL;
                }
 
-               ret = asprintf(&str, ", 0x%08x 0x%08x 0x%08x \"%s\"", addr, 
off, size, data->outfile);
+               ret = asprintf(&str, ", \\\n 0x%08x 0x%08x 0x%08x \"%s\"", 
addr, off, size, data->outfile);
                if (ret < 0)
                        return -ENOMEM;
 

-- 
2.47.2


Reply via email to