Skip to content

Commit 4a2d452

Browse files
committed
scripts: west sign supports signing for external NOR flash memory
west sign accepts signing image when built and linked for an external NOR memory (which has no write-block size property) Signed-off-by: Francois Ramu <[email protected]>
1 parent 1d9235a commit 4a2d452

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/west_commands/sign.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,12 @@ def edt_flash_params(flash):
397397

398398
# Die on missing or zero alignment or slot_size.
399399
if "write-block-size" not in flash.props:
400-
log.die('DT zephyr,flash node has no write-block-size;',
401-
"can't determine imgtool write alignment")
402-
align = flash.props['write-block-size'].val
400+
# log.die('DT zephyr,flash node has no write-block-size;',
401+
# "can't determine imgtool write alignment")
402+
align=4
403+
else:
404+
align = flash.props['write-block-size'].val
405+
403406
if align == 0:
404407
log.die('expected nonzero flash alignment, but got '
405408
'DT flash device write-block-size {}'.format(align))

0 commit comments

Comments
 (0)