sysbuild: Fix mcuboot checksum only verification not working

Fixes an issue when configuring a project through sysbuild to use
mcuboot and setting the verification to checksum only whereby the
image would be unbootable.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-03-08 08:23:20 +00:00 committed by Fabio Baltieri
parent e253dc94a1
commit 5739d8dc1b

View file

@ -59,6 +59,12 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
"Signature key file for signing" FORCE
)
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE)
set(${app_name}_CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE y CACHE STRING
"MCUBOOT is configured for checksum mode" FORCE
)
endif()
# Set corresponding values in mcuboot
set(mcuboot_CONFIG_BOOT_SIGNATURE_TYPE_${SB_CONFIG_SIGNATURE_TYPE} y CACHE STRING
"MCUBOOT signature type" FORCE