Skip to content

Commit 09c3cb3

Browse files
nordicjmTychoVrahe
authored andcommitted
[nrf fromlist] boot: zephyr: kconfig: Add new defaults option for FIH
Adds a new menu with options which can be used by e.g. sysbuild to select which default options are set in a build, adds options for fault injection hardening modes Upstream PR #: 2207 Signed-off-by: Jamie McCrae <[email protected]>
1 parent 75e7291 commit 09c3cb3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

boot/zephyr/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ config MEASURED_BOOT_MAX_CBOR_SIZE
717717

718718
choice BOOT_FAULT_INJECTION_HARDENING_PROFILE
719719
prompt "Fault injection hardening profile"
720+
default BOOT_FIH_PROFILE_HIGH if BOOT_FIH_PROFILE_DEFAULT_HIGH
721+
default BOOT_FIH_PROFILE_MEDIUM if BOOT_FIH_PROFILE_DEFAULT_MEDIUM
722+
default BOOT_FIH_PROFILE_LOW if BOOT_FIH_PROFILE_DEFAULT_LOW
720723
default BOOT_FIH_PROFILE_OFF
721724

722725
config BOOT_FIH_PROFILE_OFF
@@ -1003,6 +1006,22 @@ endif # BOOT_DECOMPRESSION
10031006

10041007
endif # BOOT_DECOMPRESSION_SUPPORT
10051008

1009+
menu "Defaults"
1010+
# Items in this menu should not be manually set. These options are for modules/sysbuild to
1011+
# set as defaults to allow MCUboot's default configuration to be set, but still allow it
1012+
# to be overridden by users.
1013+
1014+
config BOOT_FIH_PROFILE_DEFAULT_LOW
1015+
bool "Default to low fault inject hardening level"
1016+
1017+
config BOOT_FIH_PROFILE_DEFAULT_MEDIUM
1018+
bool "Default to medium fault inject hardening level"
1019+
1020+
config BOOT_FIH_PROFILE_DEFAULT_HIGH
1021+
bool "Default to high fault inject hardening level"
1022+
1023+
endmenu
1024+
10061025
endmenu
10071026

10081027
config MCUBOOT_DEVICE_SETTINGS

0 commit comments

Comments
 (0)