Skip to content

Commit 94ecf89

Browse files
committed
[nrf fromtree] scripts: west_commands: sign: Deprecate imgtool signing
Deprecates signing for imgtool using west sign Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit dd7ce12)
1 parent c73baeb commit 94ecf89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/west_commands/sign.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def do_add_parser(self, parser_adder):
129129
group = parser.add_argument_group('tool control options')
130130
group.add_argument('-t', '--tool', choices=['imgtool', 'rimage'],
131131
help='''image signing tool name; imgtool and rimage
132-
are currently supported''')
132+
are currently supported (imgtool is deprecated)''')
133133
group.add_argument('-p', '--tool-path', default=None,
134134
help='''path to the tool itself, if needed''')
135135
group.add_argument('-D', '--tool-data', default=None,
@@ -246,6 +246,8 @@ def sign(self, command, build_dir, build_conf, formats):
246246
args = command.args
247247
b = pathlib.Path(build_dir)
248248

249+
log.wrn("west sign using imgtool is deprecated and will be removed in a future release")
250+
249251
imgtool = self.find_imgtool(command, args)
250252
# The vector table offset and application version are set in Kconfig:
251253
appver = self.get_cfg(command, build_conf, 'CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION')

0 commit comments

Comments
 (0)