2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
add_subdirectory(${SOC_SERIES})
|
2021-06-17 17:03:15 +08:00
|
|
|
add_subdirectory(common)
|
2019-09-23 20:26:56 +08:00
|
|
|
|
|
|
|
zephyr_sources(
|
|
|
|
validate_base_addresses.c
|
2020-03-27 20:53:34 +08:00
|
|
|
validate_enabled_instances.c
|
2019-09-23 20:26:56 +08:00
|
|
|
)
|
2020-08-18 08:19:30 +08:00
|
|
|
|
|
|
|
if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
|
2020-09-03 19:17:42 +08:00
|
|
|
if(CONFIG_TIMING_FUNCTIONS)
|
|
|
|
# Use nRF-specific timing calculations only if DWT is not present
|
|
|
|
if(NOT CONFIG_CORTEX_M_DWT)
|
|
|
|
zephyr_library_sources(timing.c)
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-08-18 08:19:30 +08:00
|
|
|
endif()
|
2021-12-15 22:13:47 +08:00
|
|
|
|
|
|
|
if(CONFIG_BUILD_WITH_TFM)
|
|
|
|
set_property(TARGET zephyr_property_target
|
|
|
|
APPEND PROPERTY TFM_CMAKE_OPTIONS -DHAL_NORDIC_PATH=${ZEPHYR_HAL_NORDIC_MODULE_DIR}
|
|
|
|
)
|
2023-10-03 22:59:14 +08:00
|
|
|
|
|
|
|
set_property(TARGET zephyr_property_target
|
|
|
|
APPEND PROPERTY TFM_CMAKE_OPTIONS -DZEPHYR_BASE=${ZEPHYR_BASE}
|
|
|
|
)
|
2023-12-07 22:05:13 +08:00
|
|
|
|
|
|
|
set_property(TARGET zephyr_property_target
|
|
|
|
APPEND PROPERTY TFM_CMAKE_OPTIONS -DNRF_NS_STORAGE=${CONFIG_TFM_NRF_NS_STORAGE}
|
|
|
|
)
|
2021-12-15 22:13:47 +08:00
|
|
|
endif()
|