1# 2# Copyright (c) 2019, Microchip Technology Inc. 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7zephyr_sources(soc.c) 8zephyr_include_directories(.) 9 10zephyr_sources_ifdef(CONFIG_PM 11 device_power.c 12 power.c 13 ) 14 15if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS) 16 if(CONFIG_TIMING_FUNCTIONS) 17 # Use MEC15xx timing calculations only if DWT is not present 18 if(NOT CONFIG_CORTEX_M_DWT) 19 zephyr_library_sources(timing.c) 20 endif() 21 endif() 22endif() 23 24set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "") 25