Skip to content

Commit 85d4ebc

Browse files
nordicjmdanieldegrasse
authored andcommitted
soc: nordic: ironside: Fix bleeding config
Fixes generating a library for devices that do not need it which gives a cmake warning Signed-off-by: Jamie McCrae <[email protected]>
1 parent c8d9f4b commit 85d4ebc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

soc/nordic/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ endif()
4747

4848
add_subdirectory(${SOC_SERIES})
4949
add_subdirectory(common)
50-
add_subdirectory(ironside)
50+
add_subdirectory_ifdef(CONFIG_NRF_IRONSIDE ironside)

soc/nordic/ironside/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
zephyr_include_directories(include)
5-
65
zephyr_library()
7-
86
zephyr_library_sources_ifdef(CONFIG_NRF_IRONSIDE_CALL call.c)
9-
107
zephyr_library_sources_ifdef(CONFIG_NRF_IRONSIDE_BOOT_REPORT boot_report.c)
118
zephyr_library_sources_ifdef(CONFIG_NRF_IRONSIDE_CPUCONF_SERVICE cpuconf.c)
129
zephyr_library_sources_ifdef(CONFIG_NRF_IRONSIDE_UPDATE_SERVICE update.c)

soc/nordic/nrf54h/soc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
#include <soc/nrfx_coredep.h>
2323
#include <soc_lrcconf.h>
2424
#include <dmm.h>
25+
26+
#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE)
2527
#include <nrf_ironside/cpuconf.h>
28+
#endif
2629

2730
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
2831

0 commit comments

Comments
 (0)