Skip to content

Commit efdc39a

Browse files
committed
[nrf noup] boot: zephyr: kconfig: Sort out dependency mess
Fixes a mess created with Kconfig options that did not have proper dependencies that would then cause a cmake Kconfig error Signed-off-by: Jamie McCrae <[email protected]>
1 parent 3af92df commit efdc39a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

boot/zephyr/Kconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ if BOOT_SIGNATURE_TYPE_ED25519
267267
config BOOT_SIGNATURE_TYPE_PURE
268268
bool "Use Pure signature of image"
269269
depends on BOOT_SIGNATURE_TYPE_PURE_ALLOW
270+
depends on NRF_SECURITY
270271
help
271272
The Pure signature is calculated directly over image rather than
272273
hash of an image.
@@ -293,6 +294,7 @@ config BOOT_ED25519_MBEDTLS
293294

294295
config BOOT_ED25519_PSA
295296
bool "Use PSA crypto"
297+
depends on NRF_SECURITY
296298
select BOOT_USE_PSA_CRYPTO
297299
select BOOT_ED25519_PSA_DEPENDENCIES
298300
select BOOT_X25519_PSA_DEPENDENCIES if BOOT_ENCRYPT_IMAGE
@@ -304,15 +306,18 @@ endchoice
304306

305307
config BOOT_SIGNATURE_USING_KMU
306308
bool "Use KMU stored keys for signature verification"
309+
depends on NRF_SECURITY
310+
depends on CRACEN_LIB_KMU
307311
select PSA_WANT_ALG_GCM
308312
select PSA_WANT_KEY_TYPE_AES
309313
select PSA_WANT_AES_KEY_SIZE_256
310314
select PSA_WANT_ALG_SP800_108_COUNTER_CMAC
311315
select PSA_WANT_ALG_CMAC
312316
select PSA_WANT_ALG_ECB_NO_PADDING
317+
select BOOT_HW_KEY
313318
help
314-
The MCUboot will use keys provisioned to board for signature verification
315-
instead of compiling in a key data.
319+
MCUboot will use keys provisioned to the device key management unit for signature
320+
verification instead of compiling in key data from a file.
316321

317322
if !BOOT_SIGNATURE_USING_KMU
318323

0 commit comments

Comments
 (0)