From 17d0d8e1b304094130189a65574b0acfba59ed92 Mon Sep 17 00:00:00 2001 From: Vincent Wan Date: Fri, 30 Aug 2019 13:56:32 -0700 Subject: [PATCH] modules: Kconfig.simplelink: Remove POSIX_API, use fine-grained opts PR #18780 introduces a way to decouple pthread support from the general CONFIG_POSIX_API global switch. This commit modifies the build of SimpleLink components to take advantage of it, since SimpleLink libraries only require pthread, sem, clock, and sleep support, not entire POSIX API. This fixes the build errors in the http_get sample introduced by the merge of #18736. As such, this patch also removes cc3220sf_launchxl exclude from sample.yaml of that sample. Signed-off-by: Vincent Wan Signed-off-by: Paul Sokolovsky --- modules/Kconfig.simplelink | 2 +- samples/net/sockets/http_get/sample.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/Kconfig.simplelink b/modules/Kconfig.simplelink index 9bbc40df003..b2fca60b7ee 100644 --- a/modules/Kconfig.simplelink +++ b/modules/Kconfig.simplelink @@ -13,8 +13,8 @@ config SIMPLELINK_HOST_DRIVER depends on MULTITHREADING select NEWLIB_LIBC select ERRNO - select POSIX_API select PTHREAD_IPC + select POSIX_CLOCK help Build the SimpleLink host driver diff --git a/samples/net/sockets/http_get/sample.yaml b/samples/net/sockets/http_get/sample.yaml index d3ca1d3e142..695f9af71b4 100644 --- a/samples/net/sockets/http_get/sample.yaml +++ b/samples/net/sockets/http_get/sample.yaml @@ -13,7 +13,6 @@ tests: - CONFIG_NET_SOCKETS_POSIX_NAMES=y # Forcibly defines CONFIG_POSIX_API, which is incompatible with # CONFIG_NET_SOCKETS_POSIX_NAMES. - platform_exclude: cc3220sf_launchxl cc3235sf_launchxl sample.net.sockets.http_get.posix: filter: not CONFIG_NET_SOCKETS_OFFLOAD extra_configs: