1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library_named(openthread_platform)
4zephyr_library_sources(
5  alarm.c
6  entropy.c
7  misc.c
8  platform.c
9  )
10
11zephyr_library_sources_ifndef(CONFIG_HDLC_RCP_IF
12  radio.c
13  spi.c
14  )
15
16zephyr_library_sources_ifdef(CONFIG_HDLC_RCP_IF
17  radio_spinel.cpp
18  hdlc_interface.cpp
19  )
20
21zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_BLE_TCAT ble.c)
22zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_DIAG diag.c)
23zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_COPROCESSOR uart.c)
24zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_CRYPTO_PSA crypto_psa.c)
25zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_SHELL shell.c)
26zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_EXTERNAL_HEAP memory.c)
27zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_PLATFORM_MESSAGE_MANAGEMENT messagepool.c)
28zephyr_library_sources_ifdef(CONFIG_SETTINGS settings.c)
29zephyr_library_sources_ifndef(CONFIG_LOG_BACKEND_SPINEL logging.c)
30
31zephyr_include_directories(.)
32