west sign regression when HEX file not exists #34534
Labels
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Regression
Something, which was working, does not anymore
Milestone
Describe the bug
west sign
, as command says, should sign zephyr output files for MCUboot, for instance. When using minimal parameters west will try sign both hex and bin files. Thewest sign
is failing on current zephyr mainline for projects that create only a bin file. This is the case offrdm-k64f
board.To Reproduce
Steps to reproduce the behavior:
west build -b frdm_k64f -d build/app zephyr/samples/subsys/mgmt/updatehub
west sign -t imgtool -d build/app -- --version 1.0.0 --pad --key bootloader/mcuboot/root-rsa-2048.pem
FATAL ERROR: no unsigned .hex found at /home/gfbudke/zephyros/mainline/build/app/zephyr/zephyr.hex
Expected behavior
west sign
should skip to sign when target file not exists. if no targets, a graceful exit is expected.Impact
annoyance
Environment (please complete the following information):
Additional context
west sign --no-hex
can be used as workaround.This was discovered at #34442
The text was updated successfully, but these errors were encountered: