From 826abf4645318eed7864e2bf6cb65d6a2e16118e Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Mon, 13 Jul 2020 20:56:35 -0300 Subject: [PATCH] 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 --- scripts/imgtool/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/imgtool/main.py b/scripts/imgtool/main.py index b16832d7..ff7c79b5 100755 --- a/scripts/imgtool/main.py +++ b/scripts/imgtool/main.py @@ -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')