Skip to content

Commit fcec947

Browse files
de-nordicrlubos
authored andcommitted
[nrf noup] Fix KMU breaking non-KMU builds of MCUboot
The commit fixes problem where usage of OR instead of AND in conditional expression broke non-KMU signature builds of MCUboot. The commit also removes BOOT_SIGNATURE_TYPE_PURE_ALLOW on NRF_SECURITY, which breaks build for non-PSA builds. fixup! [nrf noup] bootutil: Add support for KMU stored ED25519 signature key Signed-off-by: Dominik Ermel <[email protected]>
1 parent 647f6e3 commit fcec947

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ if(CONFIG_MCUBOOT_SERIAL)
313313
endif()
314314
endif()
315315

316-
if(NOT CONFIG_BOOT_SIGNATURE_USING_KMU OR NOT CONFIG_BOOT_SIGNATURE_KEY_FILE STREQUAL "")
316+
if(NOT CONFIG_BOOT_SIGNATURE_USING_KMU AND NOT CONFIG_BOOT_SIGNATURE_KEY_FILE STREQUAL "")
317317
# CONF_FILE points to the KConfig configuration files of the bootloader.
318318
foreach (filepath ${CONF_FILE})
319319
file(READ ${filepath} temp_text)

boot/zephyr/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ endchoice # BOOT_IMG_HASH_ALG
194194

195195
config BOOT_SIGNATURE_TYPE_PURE_ALLOW
196196
bool
197-
depends on NRF_SECURITY
198197
help
199198
Hidden option set by configurations that allow Pure variant,
200199
for example ed25519. The pure variant means that image

0 commit comments

Comments
 (0)