Skip to content

Commit

Permalink
west: sign: Add rimage signing tool documentation
Browse files Browse the repository at this point in the history
Add documentation specific to rimage signing tool.

Fixes zephyrproject-rtos#26596

Signed-off-by: Andrei Emeltchenko <[email protected]>
  • Loading branch information
finikorg authored and carlescufi committed Aug 3, 2020
1 parent 8b531aa commit 51182ab
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions scripts/west_commands/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@
imgtool
-------
Currently, MCUboot's 'imgtool' tool is supported. To build a signed
binary you can load with MCUboot using imgtool, run this from your
build directory:
To build a signed binary you can load with MCUboot using imgtool,
run this from your build directory:
west sign -t imgtool -- --key YOUR_SIGNING_KEY.pem
Expand All @@ -58,7 +57,18 @@
the build directory using .config and the device tree. A default
version number of 0.0.0+0 is used (which can be overridden by passing
"--version x.y.z+w" after "--key"). As shown above, extra arguments
after a '--' are passed to imgtool directly.'''
after a '--' are passed to imgtool directly.
rimage
------
To create a signed binary with the rimage tool, run this from your build
directory:
west sign -t rimage -- -k YOUR_SIGNING_KEY.pem
For this to work, either rimage must be installed or you must pass
the path to rimage using the -p option.'''


class ToggleAction(argparse.Action):
Expand Down

0 comments on commit 51182ab

Please sign in to comment.