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: Fabio Utzig <utzig@apache.org>
This commit is contained in:
Fabio Utzig 2020-07-13 20:56:35 -03:00 committed by Fabio Utzig
parent ad055d19e6
commit 826abf4645
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ class BasedIntParamType(click.ParamType):
@click.option('--pad', default=False, is_flag=True, @click.option('--pad', default=False, is_flag=True,
help='Pad image to --slot-size bytes, adding trailer magic') help='Pad image to --slot-size bytes, adding trailer magic')
@click.option('-S', '--slot-size', type=BasedIntParamType(), required=True, @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, @click.option('--pad-header', default=False, is_flag=True,
help='Add --header-size zeroed bytes at the beginning of the ' help='Add --header-size zeroed bytes at the beginning of the '
'image') 'image')