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 <vincent.wan@linaro.org>
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Vincent Wan 2019-08-30 13:56:32 -07:00 committed by Kumar Gala
commit 17d0d8e1b3
2 changed files with 1 additions and 2 deletions

View file

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

View file

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