1# SPDX-License-Identifier: Apache-2.0 2 3add_subdirectory(${SOC_SERIES}) 4add_subdirectory(common) 5 6zephyr_sources( 7 validate_base_addresses.c 8 validate_enabled_instances.c 9 ) 10 11if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS) 12 if(CONFIG_TIMING_FUNCTIONS) 13 # Use nRF-specific timing calculations only if DWT is not present 14 if(NOT CONFIG_CORTEX_M_DWT) 15 zephyr_library_sources(timing.c) 16 endif() 17 endif() 18endif() 19 20if(CONFIG_BUILD_WITH_TFM) 21 set_property(TARGET zephyr_property_target 22 APPEND PROPERTY TFM_CMAKE_OPTIONS -DHAL_NORDIC_PATH=${ZEPHYR_HAL_NORDIC_MODULE_DIR} 23 ) 24endif() 25