Skip to content

Commit 9720fe6

Browse files
committed
[nrf fromlist] zephyr: Fix BOOT_DOWNGRADE_PREVENTION_CHOICE symbol
The BOOT_DOWNGRADE_PREVENTION_CHOICE choice should not have a child Kconfig symbols defined inside it. Upstream PR #: 2545 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent d4b0cd6 commit 9720fe6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

boot/zephyr/Kconfig

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,16 @@ config MCUBOOT_DOWNGRADE_PREVENTION
11231123
only protects against some attacks against version downgrades (for
11241124
example, a JTAG could be used to write an older version).
11251125

1126+
config MCUBOOT_HW_DOWNGRADE_PREVENTION
1127+
bool "HW based downgrade prevention"
1128+
help
1129+
Prevent undesirable/malicious software downgrades. When this option is
1130+
set, any upgrade must have greater or equal security counter value.
1131+
Because of the acceptance of equal values it allows for software
1132+
downgrade to some extent.
1133+
1134+
endchoice
1135+
11261136
config MCUBOOT_DOWNGRADE_PREVENTION_SECURITY_COUNTER
11271137
bool "Use image security counter instead of version number"
11281138
depends on MCUBOOT_DOWNGRADE_PREVENTION
@@ -1134,14 +1144,6 @@ config MCUBOOT_DOWNGRADE_PREVENTION_SECURITY_COUNTER
11341144
Because of the acceptance of equal values it allows for software
11351145
downgrades to some extent.
11361146

1137-
config MCUBOOT_HW_DOWNGRADE_PREVENTION
1138-
bool "HW based downgrade prevention"
1139-
help
1140-
Prevent undesirable/malicious software downgrades. When this option is
1141-
set, any upgrade must have greater or equal security counter value.
1142-
Because of the acceptance of equal values it allows for software
1143-
downgrade to some extent.
1144-
11451147
config MCUBOOT_HW_DOWNGRADE_PREVENTION_COUNTER_LIMITED
11461148
bool "HW based downgrade prevention counter has limited number of updates"
11471149
depends on MCUBOOT_HW_DOWNGRADE_PREVENTION
@@ -1165,8 +1167,6 @@ config MCUBOOT_HW_DOWNGRADE_PREVENTION_LOCK
11651167
This prevents the application from accidental updates of the counter,
11661168
that may invalidate the currently running image.
11671169

1168-
endchoice
1169-
11701170
config MCUBOOT_UUID_VID
11711171
bool "Expect vendor unique identifier in image's TLV"
11721172
help

0 commit comments

Comments
 (0)