Commit 25b7c7a8 authored by Andrej Butok's avatar Andrej Butok Committed by David Brown
Browse files

imgtool: make "align" command line parameter optional

Align parameter should be optional:
- it has a default value.
- it is not used for non-swap update modes.

Signed-off-by: default avatarAndrej Butok <andrey.butok@nxp.com>
parent 301d5655
Loading
Loading
Loading
Loading
+1 −1
Changes for scripts/imgtool/main.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -377,7 +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']),
              required=True)
              required=False)
@click.option('--max-align', type=click.Choice(['8', '16', '32']),
              required=False,
              help='Maximum flash alignment. Set if flash alignment of the '