Skip to content

Commit 429e2fe

Browse files
committed
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 Signed-off-by: Jamie McCrae <[email protected]>
1 parent ef78369 commit 429e2fe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

boot/zephyr/Kconfig

+19
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,9 @@ config MEASURED_BOOT_MAX_CBOR_SIZE
729729

730730
choice BOOT_FAULT_INJECTION_HARDENING_PROFILE
731731
prompt "Fault injection hardening profile"
732+
default BOOT_FIH_PROFILE_HIGH if BOOT_FIH_PROFILE_DEFAULT_HIGH
733+
default BOOT_FIH_PROFILE_MEDIUM if BOOT_FIH_PROFILE_DEFAULT_MEDIUM
734+
default BOOT_FIH_PROFILE_LOW if BOOT_FIH_PROFILE_DEFAULT_LOW
732735
default BOOT_FIH_PROFILE_OFF
733736

734737
config BOOT_FIH_PROFILE_OFF
@@ -1021,6 +1024,22 @@ endif # BOOT_DECOMPRESSION
10211024

10221025
endif # BOOT_DECOMPRESSION_SUPPORT
10231026

1027+
menu "Defaults"
1028+
# Items in this menu should not be manually set. These options are for modules/sysbuild to
1029+
# set as defaults to allow MCUboot's default configuration to be set, but still allow it
1030+
# to be overridden by users.
1031+
1032+
config BOOT_FIH_PROFILE_DEFAULT_LOW
1033+
bool "Default to low fault inject hardening level"
1034+
1035+
config BOOT_FIH_PROFILE_DEFAULT_MEDIUM
1036+
bool "Default to medium fault inject hardening level"
1037+
1038+
config BOOT_FIH_PROFILE_DEFAULT_HIGH
1039+
bool "Default to high fault inject hardening level"
1040+
1041+
endmenu
1042+
10241043
endmenu
10251044

10261045
config MCUBOOT_DEVICE_SETTINGS

0 commit comments

Comments
 (0)