forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysbuild: Add Kconfig to load microcode once only on nRF54L devices
Prevents the microcode for CRACEN being loaded multiple times per image if the Kconfig is enabled by only loading it in the first image that uses it Signed-off-by: Jamie McCrae <[email protected]>
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
||
config SUPPORT_CRACEN | ||
bool | ||
default y if SOC_SERIES_NRF54LX | ||
help | ||
Hidden symbol indicating if CRACEN is supported on the device. | ||
|
||
if SUPPORT_CRACEN | ||
|
||
menu "CRACEN" | ||
|
||
config CRACEN_MICROCODE_LOAD_B0 | ||
bool | ||
depends on SECURE_BOOT_APPCORE && SECURE_BOOT_SIGNATURE_TYPE_ED25519 | ||
default y | ||
help | ||
Hidden symbol indicating if b0 is using CRACEN. | ||
|
||
config CRACEN_MICROCODE_LOAD_MCUBOOT | ||
bool | ||
depends on BOOTLOADER_MCUBOOT && BOOT_SIGNATURE_TYPE_ED25519 | ||
default y | ||
help | ||
Hidden symbol indicating if MCUboot is using CRACEN. | ||
|
||
config CRACEN_MICROCODE_LOAD_ONCE | ||
bool "Load CRACEN microcode once only" | ||
depends on CRACEN_MICROCODE_LOAD_B0 || CRACEN_MICROCODE_LOAD_MCUBOOT | ||
default y | ||
help | ||
If enabled, will only load microcode for CRACEN in the first system bootable image, | ||
which will be either b0 or MCUboot, depending on project configuration. | ||
|
||
endmenu | ||
|
||
endif # SUPPORT_CRACEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters