Commit e484e68
committed
soc: st: stm32: Add Kconfig option to control signing CLI '-align' flag
Starting in v2.21.0, the STM32 signing tool ('STM32_SigningTool_CLI')
stopped automatically adding padding bytes at the beginning of the
payload to align it to the 0x400 offset. To restore this behavior, the
'-align' flag must be passed to the signing tool.
This commit introduces a new Kconfig option,
'CONFIG_STM32_SIGNING_TOOL_ALIGN_FLAG', that controls whether the
'-align' flag is passed to the signing tool when signing images. This
option is now enabled by default for STM32N6x series devices.
For compatibility with 'STM32_SigningTool_CLI' v2.20.0 and earlier, this
Kconfig option must be disabled. For example, the following config in
'app/sysbuild/mcuboot/boards/stm32n6570_dk_stm32n657xx_fsbl.conf' will
omit the '-align' flag from the signing tool arguments:
CONFIG_STM32_SIGNING_TOOL_ALIGN_FLAG=n
Fixes #99456
Signed-off-by: Chris Wilson <chris@binho.io>1 parent f1c2ce4 commit e484e68
2 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
135 | 142 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
0 commit comments