Add generic SoC support for the supported nordic SoCs: - nrf5340 - nrf9160 - nrf9120 Add generic SoC support by taking board specific configurations from zephyr devicetree and kconfig. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
28 lines
749 B
CMake
28 lines
749 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
add_subdirectory(${SOC_SERIES})
|
|
add_subdirectory(common)
|
|
|
|
zephyr_sources(
|
|
validate_base_addresses.c
|
|
validate_enabled_instances.c
|
|
)
|
|
|
|
if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
|
|
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()
|
|
endif()
|
|
|
|
if(CONFIG_BUILD_WITH_TFM)
|
|
set_property(TARGET zephyr_property_target
|
|
APPEND PROPERTY TFM_CMAKE_OPTIONS -DHAL_NORDIC_PATH=${ZEPHYR_HAL_NORDIC_MODULE_DIR}
|
|
)
|
|
|
|
set_property(TARGET zephyr_property_target
|
|
APPEND PROPERTY TFM_CMAKE_OPTIONS -DZEPHYR_BASE=${ZEPHYR_BASE}
|
|
)
|
|
endif()
|