From bd8410cf3c64053c712bccf16ad0d66abe53bc15 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Wed, 25 Mar 2020 09:21:12 +0100 Subject: [PATCH] net: openthread: Fix builds with NCP option disabled In case OPENTHREAD_NCP option is disabled, uart.c platform driver should not be compiled as it misses dependencies. Signed-off-by: Robert Lubos --- subsys/net/lib/openthread/platform/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)