Commit 06bc5484 authored by Andrej Butok's avatar Andrej Butok Committed by David Brown
Browse files

imgtool: fix "align" script error

Fix "align" possible script error, caused by #1833.
Set default value for the align parameter.

Signed-off-by: default avatarAndrej Butok <andrey.butok@nxp.com>
parent 79c284b0
Loading
Loading
Loading
Loading
+1 −0
Changes for scripts/imgtool/main.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -377,6 +377,7 @@ class BasedIntParamType(click.ParamType):
              'keyword to automatically generate it from the image version.')
@click.option('-v', '--version', callback=validate_version,  required=True)
@click.option('--align', type=click.Choice(['1', '2', '4', '8', '16', '32']),
              default='1',
              required=False,
              help='Alignment used by swap update modes.')
@click.option('--max-align', type=click.Choice(['8', '16', '32']),