1# Copyright (c) 2021 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4add_subdirectory_ifdef(CONFIG_RISCV_CORE_NORDIC_VPR vpr) 5 6if(CONFIG_ARM) 7 # Let SystemInit() be called in place of soc_reset_hook() by default. 8 zephyr_linker_symbol(SYMBOL soc_reset_hook EXPR "@SystemInit@") 9 10 # This file is used when the CMake linker script generator is disabled. 11 zephyr_linker_sources(SECTIONS arm_platform_init.ld) 12endif() 13 14zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c) 15if(CONFIG_ARM) 16 zephyr_library_sources_ifdef(CONFIG_NRF_PLATFORM_HALTIUM soc_lrcconf.c) 17endif() 18 19if((CONFIG_SOC_SERIES_NRF54HX OR CONFIG_SOC_SERIES_NRF92X) AND CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS) 20 zephyr_library_sources(nrf54hx_nrf92x_mpu_regions.c) 21endif() 22 23zephyr_include_directories(.) 24 25if(CONFIG_HAS_NORDIC_DMM) 26 zephyr_library_sources(dmm.c) 27endif() 28 29if(CONFIG_TFM_PARTITION_PLATFORM) 30 zephyr_library_sources(soc_secure.c) 31 zephyr_library_include_directories( 32 $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include 33 ) 34endif() 35 36zephyr_library_sources_ifdef(CONFIG_NRF_SYS_EVENT nrf_sys_event.c) 37zephyr_library_sources_ifdef(CONFIG_MRAM_LATENCY mram_latency.c) 38