Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions modules/Kconfig.mcuboot
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,16 @@ endmenu # On board MCUboot operation mode

endif # BOOTLOADER_MCUBOOT

menu "Sysbuild passed options"

config MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519
bool "Use ED25519 signature"

config MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE
bool "Signature is verified over an image rather than sha of an image"

endmenu # Sysbuild passed options

menuconfig MCUBOOT_BOOTUTIL_LIB
bool "MCUboot utility library"
help
Expand Down
12 changes: 12 additions & 0 deletions share/sysbuild/image_configurations/MAIN_image_default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,16 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
elseif(SB_CONFIG_MCUBOOT_MODE_FIRMWARE_UPDATER)
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_MODE_FIRMWARE_UPDATER y)
endif()

if(SB_CONFIG_BOOT_SIGNATURE_TYPE_ED25519)
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 y)
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_PURE)
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE y)
else()
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE n)
endif()
else()
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 n)
endif()

endif()
Loading