Skip to content

Commit 3a66249

Browse files
[nrf fromtree] soc: nordic: uicr: print cmake warning when used without sysbuild
Because generation and programming of UICR + PERIPHCONF artifacts depend on the 'uicr' image which in turn must be included by Sysbuild, many if not most nrf54h20 applications will need to be built using Sysbuild to function as intended. To make this known to the user, print a CMake warning whenever CONFIG_NRF_PERIPHCONF_SECTION=y but Sysbuild is not being used. Signed-off-by: Jonathan Nilsen <[email protected]> (cherry picked from commit 6b93eac)
1 parent 3de3dcd commit 3a66249

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

soc/nordic/common/uicr/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ if(CONFIG_NRF_PERIPHCONF_GENERATE_ENTRIES)
2020
zephyr_sources(${periphconf_entries_c_file})
2121
message(STATUS "Generated ${periphconf_entries_c_file} from ${EDT_PICKLE}")
2222
endif()
23+
24+
if(CONFIG_NRF_PERIPHCONF_SECTION AND NOT SYSBUILD)
25+
message(WARNING "CONFIG_NRF_PERIPHCONF_SECTION is enabled, but Sysbuild is not being used. "
26+
"The global peripheral configuration will not be applied unless artifacts "
27+
"are generated manually/externally. To enable automatic generation, build with "
28+
"Sysbuild and ensure that SB_CONFIG_NRF_HALTIUM_GENERATE_UICR=y."
29+
)
30+
endif()

0 commit comments

Comments
 (0)