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 <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-03-25 09:21:12 +01:00 committed by Jukka Rissanen
commit bd8410cf3c

View file

@ -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)