d1780aac42
This command is useful for signing binaries for loading by a bootloader. At present, only MCUboot's "imgtool" is supported, but it would be straightforward to add support for additional tools. Using this command instead of "plain" imgtool avoids looking up any numbers for the flash write block size, text section offset, or slot size to get a signed binary. All users need to specify is the location of the signing key. This greatly improves usability for those unfamiliar with MCUboot, or even experienced users who have to deal with multiple flash partition layouts, boards, etc. The command works by inspecting state in the Zephyr build system, some of which is also provided by the runner package. Signed-off-by: Marti Bolivar <marti@foundries.io>
29 lines
877 B
YAML
29 lines
877 B
YAML
# Keep the help strings in sync with the values in the .py files!
|
|
west-commands:
|
|
- file: scripts/west_commands/build.py
|
|
commands:
|
|
- name: build
|
|
class: Build
|
|
help: compile a Zephyr application
|
|
- file: scripts/west_commands/sign.py
|
|
commands:
|
|
- name: sign
|
|
class: Sign
|
|
help: sign a Zephyr binary for bootloader chain-loading
|
|
- file: scripts/west_commands/flash.py
|
|
commands:
|
|
- name: flash
|
|
class: Flash
|
|
help: flash and run a binary on a board
|
|
- file: scripts/west_commands/debug.py
|
|
commands:
|
|
- name: debug
|
|
class: Debug
|
|
help: flash and interactively debug a Zephyr application
|
|
- name: debugserver
|
|
class: DebugServer
|
|
help: connect to board and launch a debug server
|
|
- name: attach
|
|
class: Attach
|
|
help: interactively debug a board
|