Commit 826abf46 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

imgtool: update help message for slot-size

In case slot sizes are different, use the secondary slot (to use for
calculations, padding, etc).

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent ad055d19
Loading
Loading
Loading
Loading
+2 −1
Changes for scripts/imgtool/main.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -260,7 +260,8 @@ class BasedIntParamType(click.ParamType):
@click.option('--pad', default=False, is_flag=True,
              help='Pad image to --slot-size bytes, adding trailer magic')
@click.option('-S', '--slot-size', type=BasedIntParamType(), required=True,
              help='Size of the slot where the image will be written')
              help='Size of the slot. If the slots have different sizes, use '
              'the size of the secondary slot.')
@click.option('--pad-header', default=False, is_flag=True,
              help='Add --header-size zeroed bytes at the beginning of the '
                   'image')