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 <jonathan.nilsen@nordicsemi.no>
This commit is contained in:
committed by
Chris Friedt
parent
1cb9408f19
commit
6b93eacb6c
@@ -20,3 +20,11 @@ if(CONFIG_NRF_PERIPHCONF_GENERATE_ENTRIES)
|
||||
zephyr_sources(${periphconf_entries_c_file})
|
||||
message(STATUS "Generated ${periphconf_entries_c_file} from ${EDT_PICKLE}")
|
||||
endif()
|
||||
|
||||
if(CONFIG_NRF_PERIPHCONF_SECTION AND NOT SYSBUILD)
|
||||
message(WARNING "CONFIG_NRF_PERIPHCONF_SECTION is enabled, but Sysbuild is not being used. "
|
||||
"The global peripheral configuration will not be applied unless artifacts "
|
||||
"are generated manually/externally. To enable automatic generation, build with "
|
||||
"Sysbuild and ensure that SB_CONFIG_NRF_HALTIUM_GENERATE_UICR=y."
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user