zephyr/modules/openthread/platform/CMakeLists.txt
Jamel Arbi ec4e0192fb modules: openthread: Add of spinel hdlc rcp host interface
Add a spinel support to an RCP design, the core of OpenThread lives on the
host processor connected to an RCP radio controller over a HDLC interface.

Signed-off-by: Jamel Arbi <jamel.arbi@nxp.com>
2024-11-27 10:37:21 -05:00

32 lines
959 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_library_named(openthread_platform)
zephyr_library_sources(
alarm.c
entropy.c
misc.c
platform.c
)
zephyr_library_sources_ifndef(CONFIG_HDLC_RCP_IF
radio.c
spi.c
)
zephyr_library_sources_ifdef(CONFIG_HDLC_RCP_IF
radio_spinel.cpp
hdlc_interface.cpp
)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_BLE_TCAT ble.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_DIAG diag.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_COPROCESSOR uart.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_CRYPTO_PSA crypto_psa.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_SHELL shell.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_EXTERNAL_HEAP memory.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_PLATFORM_MESSAGE_MANAGEMENT messagepool.c)
zephyr_library_sources_ifdef(CONFIG_SETTINGS settings.c)
zephyr_library_sources_ifndef(CONFIG_LOG_BACKEND_SPINEL logging.c)
zephyr_include_directories(.)