Skip to content
Draft
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
12 changes: 12 additions & 0 deletions sysbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ function(bm_install_setup)
endif()
endif()

if(SB_CONFIG_CRACEN_MICROCODE_LOAD_ONCE)
if(SB_CONFIG_CRACEN_MICROCODE_LOAD_MCUBOOT)
set_config_bool(firmware_loader CONFIG_CRACEN_LOAD_MICROCODE n)
set_config_bool(mcuboot CONFIG_CRACEN_LOAD_MICROCODE y)
set_config_bool(${DEFAULT_IMAGE} CONFIG_CRACEN_LOAD_MICROCODE n)
else(NOT DEFINED SB_CONFIG_BM_FIRMWARE_LOADER_NONE)
set_config_bool(firmware_loader CONFIG_CRACEN_LOAD_MICROCODE y)
set_config_bool(${DEFAULT_IMAGE} CONFIG_CRACEN_LOAD_MICROCODE n)
endif()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

also: needs to properly check the Kconfigs, a user might not be using ed25519 in MCUboot in which case no microcode would be loaded

endif()

ExternalZephyrProject_Add(
APPLICATION installer
SOURCE_DIR ${ZEPHYR_NRF_BM_MODULE_DIR}/applications/installer
Expand Down