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>
21 lines
559 B
YAML
21 lines
559 B
YAML
sample:
|
|
description: BSD Sockets API HTTP GET example
|
|
name: socket_http_get
|
|
common:
|
|
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
|
harness: net
|
|
min_ram: 32
|
|
min_flash: 80
|
|
tags: net socket
|
|
tests:
|
|
sample.net.sockets.http_get:
|
|
extra_configs:
|
|
- CONFIG_NET_SOCKETS_POSIX_NAMES=y
|
|
# Forcibly defines CONFIG_POSIX_API, which is incompatible with
|
|
# CONFIG_NET_SOCKETS_POSIX_NAMES.
|
|
sample.net.sockets.http_get.posix:
|
|
filter: not CONFIG_NET_SOCKETS_OFFLOAD
|
|
extra_configs:
|
|
- CONFIG_NET_SOCKETS_POSIX_NAMES=n
|
|
- CONFIG_POSIX_API=y
|