From fc7b142961fa193d424eaeb0f5084624676900e9 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Wed, 6 May 2020 13:51:30 +0200 Subject: [PATCH] net: openthread: Use newlib in samples OpenThread throws a warning when minimal libc is used, as some of its new files use stdlib functions not available in the minimal implementation. It's not critical failure, as those new functions are not linked anyway in default configuration, but the warnings do not look well. Therefore, use newlib by default in the sample to prevent warnings. Signed-off-by: Robert Lubos --- samples/net/openthread/ncp/prj.conf | 1 + samples/net/sockets/echo_client/overlay-ot.conf | 1 + samples/net/sockets/echo_server/overlay-ot.conf | 1 + 3 files changed, 3 insertions(+) diff --git a/samples/net/openthread/ncp/prj.conf b/samples/net/openthread/ncp/prj.conf index 6707cc00fd6..ab92a25d7e6 100644 --- a/samples/net/openthread/ncp/prj.conf +++ b/samples/net/openthread/ncp/prj.conf @@ -13,6 +13,7 @@ CONFIG_NET_IPV6_NBR_CACHE=n CONFIG_NET_IPV6_MLD=n # Kernel options +CONFIG_NEWLIB_LIBC=y CONFIG_MAIN_STACK_SIZE=4096 CONFIG_ENTROPY_GENERATOR=y CONFIG_TEST_RANDOM_GENERATOR=y diff --git a/samples/net/sockets/echo_client/overlay-ot.conf b/samples/net/sockets/echo_client/overlay-ot.conf index 04c1d84024c..1d7fca47342 100644 --- a/samples/net/sockets/echo_client/overlay-ot.conf +++ b/samples/net/sockets/echo_client/overlay-ot.conf @@ -1,3 +1,4 @@ +CONFIG_NEWLIB_LIBC=y CONFIG_CPLUSPLUS=y CONFIG_BT=n diff --git a/samples/net/sockets/echo_server/overlay-ot.conf b/samples/net/sockets/echo_server/overlay-ot.conf index c4829e58ae5..ba6a6004848 100644 --- a/samples/net/sockets/echo_server/overlay-ot.conf +++ b/samples/net/sockets/echo_server/overlay-ot.conf @@ -1,3 +1,4 @@ +CONFIG_NEWLIB_LIBC=y CONFIG_CPLUSPLUS=y CONFIG_BT=n