diff --git a/subsys/net/lib/openthread/platform/CMakeLists.txt b/subsys/net/lib/openthread/platform/CMakeLists.txt index 2c9bd472c1b..6fe4a9d5767 100644 --- a/subsys/net/lib/openthread/platform/CMakeLists.txt +++ b/subsys/net/lib/openthread/platform/CMakeLists.txt @@ -10,7 +10,7 @@ zephyr_library_sources( radio.c settings.c spi.c - uart.c ) +zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_NCP uart.c) zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_SHELL shell.c)