|
| 1 | +# |
| 2 | +# Copyright (c) 2025, Nordic Semiconductor ASA. |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 5 | +# |
| 6 | + |
| 7 | +set(NRF_BOARD_SELECTED True) |
| 8 | + |
| 9 | +add_subdirectory(${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf54l10 nrf54l10) |
| 10 | + |
| 11 | +add_subdirectory(.. tfm_board) |
| 12 | + |
| 13 | +target_include_directories(platform_s |
| 14 | + PUBLIC |
| 15 | + ${ZEPHYR_NRF_MODULE_DIR}/subsys/nrf_security/src/drivers/cracen/cracenpsa/include |
| 16 | + ) |
| 17 | + |
| 18 | +target_sources(platform_s |
| 19 | + PRIVATE |
| 20 | + ${ZEPHYR_BASE}/soc/nordic/nrf54l/soc.c |
| 21 | + ) |
| 22 | + |
| 23 | +target_include_directories(platform_s |
| 24 | + PRIVATE |
| 25 | + ${ZEPHYR_BASE}/modules/cmsis/ |
| 26 | + ${ZEPHYR_BASE}/soc/nordic/nrf54l |
| 27 | + ${ZEPHYR_BASE}/soc/nordic/common |
| 28 | + ) |
| 29 | + |
| 30 | +# nrf54l10_application.h should be defining __ICACHE_PRESENT, but |
| 31 | +# it is not, until this is fixed we define it here. |
| 32 | +target_compile_definitions(platform_s |
| 33 | + PRIVATE |
| 34 | + __ICACHE_PRESENT=1 |
| 35 | + ) |
| 36 | + |
| 37 | +install(FILES ${CMAKE_CURRENT_LIST_DIR}/ns/cpuarch_ns.cmake |
| 38 | + DESTINATION ${INSTALL_PLATFORM_NS_DIR} |
| 39 | + RENAME cpuarch.cmake) |
| 40 | + |
| 41 | +install(FILES config.cmake |
| 42 | + DESTINATION ${INSTALL_PLATFORM_NS_DIR}) |
| 43 | + |
| 44 | +install(FILES ../common/config.cmake |
| 45 | + DESTINATION ${INSTALL_PLATFORM_NS_DIR}/../common/) |
| 46 | + |
| 47 | +install(DIRECTORY ${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/nrf54l15dk_nrf54l10_cpuapp/tests |
| 48 | + DESTINATION ${INSTALL_PLATFORM_NS_DIR} |
| 49 | +) |
0 commit comments