Skip to content

Commit 51f0b2c

Browse files
ahasztagnordicjm
authored andcommitted
[nrf fromtree] bootloader: mcuboot: Fix encryption not being selected in bootloader
In some cases this resulted in the device not booting. Signed-off-by: Artur Hadasz <[email protected]> (cherry picked from commit b43ce97)
1 parent f5564e3 commit 51f0b2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

share/sysbuild/image_configurations/BOOTLOADER_image_default.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ foreach(loopkeytype ${keytypes})
8080
endforeach()
8181

8282
if(SB_CONFIG_BOOT_ENCRYPTION)
83+
set_config_bool(${image} CONFIG_BOOT_ENCRYPT_IMAGE y)
8384
set_config_string(${ZCMAKE_APPLICATION} CONFIG_BOOT_ENCRYPTION_KEY_FILE "${SB_CONFIG_BOOT_ENCRYPTION_KEY_FILE}")
8485
if(SB_CONFIG_BOOT_ENCRYPTION_ALG_AES_128)
8586
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_BOOT_ENCRYPT_ALG_AES_128 y)

0 commit comments

Comments
 (0)