Skip to content

Commit ac8ec97

Browse files
committed
[nrf noup] soc: nrf54l: Change logic for KMU reserved area
nrf-squash! [nrf noup] soc: nrf54l: Add custom section for KMU Change how the KMU reserved area is included in the linker file. Now there is a separate Kconfig which shows it the there is a dts entry for the KMU reserved area. Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent a922397 commit ac8ec97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

soc/nordic/nrf54l/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ zephyr_library_sources(
77
)
88
zephyr_include_directories(.)
99

10+
dt_nodelabel(kmu_push_area_node NODELABEL nrf_kmu_reserved_push_area)
11+
1012
# We need a buffer in memory in a static location which can be used by
1113
# the KMU peripheral. The KMU has a static destination address, we chose
1214
# this address to be 0x20000000, which is the first address in the SRAM.
13-
if(NOT CONFIG_BUILD_WITH_TFM AND CONFIG_PSA_NEED_CRACEN_KMU_DRIVER AND CONFIG_XIP)
15+
if(NOT CONFIG_BUILD_WITH_TFM AND CONFIG_PSA_NEED_CRACEN_KMU_DRIVER AND NOT kmu_push_area_node)
1416
# Exclamation mark is printable character with the lowest number in ASCII table.
1517
# We are sure that this file will be included first.
1618
zephyr_linker_sources(RAM_SECTIONS SORT_KEY ! kmu_push_area_section.ld)

0 commit comments

Comments
 (0)