west: sign/rimage: fix rimage argument if --no-manifest

If --no-manifest is specified, '-e' is still being passed
to rimage to build the extended manifest. Fix this so
that when --no-manifest is specified, '-e' is no longer
passed to rimage.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-09-21 13:37:33 -07:00 committed by Anas Nashif
parent 045c4bbf72
commit 10eab23f08

View file

@ -461,13 +461,18 @@ class RimageSigner(Signer):
else:
no_manifest = False
if no_manifest:
extra_ri_args = ['-i', '3']
else:
extra_ri_args = ['-i', '3', '-e']
if 'imx8' in target:
sign_base = ([tool_path] + args.tool_args +
['-o', out_bin] + conf_path_cmd + ['-i', '3', '-e'] +
['-o', out_bin] + conf_path_cmd + extra_ri_args +
[kernel])
else:
sign_base = ([tool_path] + args.tool_args +
['-o', out_bin] + conf_path_cmd + ['-i', '3', '-e'] +
['-o', out_bin] + conf_path_cmd + extra_ri_args +
[bootloader, kernel])
if not args.quiet: