Skip to content

Commit 4ab903d

Browse files
committed
samples: select required POSIX features
Explicitly enable all required POSIX features, instead of relying on `POSIX_API` to enable defaults. Signed-off-by: Jordan Yates <[email protected]>
1 parent 7297de7 commit 4ab903d

File tree

42 files changed

+82
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+82
-0
lines changed

samples/drivers/video/tcpserversink/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CONFIG_NET_IPV4=y
55
CONFIG_NET_SOCKETS=y
66
CONFIG_ZVFS_OPEN_MAX=6
77
CONFIG_POSIX_API=y
8+
CONFIG_POSIX_AEP_CHOICE_PSE51=y
9+
CONFIG_POSIX_NETWORKING=y
810

911
# Kernel options
1012
CONFIG_MAIN_STACK_SIZE=2048

samples/modules/thrift/hello/client/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CONFIG_CPP=y
55
CONFIG_STD_CPP17=y
66
CONFIG_CPP_EXCEPTIONS=y
77
CONFIG_POSIX_API=y
8+
CONFIG_POSIX_NETWORKING=y
9+
CONFIG_POSIX_AEP_CHOICE_PSE53=y
810
CONFIG_XOPEN_STREAMS=y
911
CONFIG_COMMON_LIBC_THRD=y
1012
CONFIG_DYNAMIC_THREAD=y

samples/modules/thrift/hello/server/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ CONFIG_CPP=y
66
CONFIG_STD_CPP17=y
77
CONFIG_CPP_EXCEPTIONS=y
88
CONFIG_POSIX_API=y
9+
CONFIG_POSIX_NETWORKING=y
10+
CONFIG_POSIX_AEP_CHOICE_PSE53=y
911
CONFIG_XOPEN_STREAMS=y
1012
CONFIG_NET_SOCKETPAIR=y
1113
CONFIG_HEAP_MEM_POOL_SIZE=16384

samples/net/cellular_modem/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
CONFIG_POSIX_API=y
5+
CONFIG_POSIX_NETWORKING=y
6+
CONFIG_POSIX_DEVICE_IO=y
57

68
# Networking
79
CONFIG_NETWORKING=y

samples/net/cloud/aws_iot_mqtt/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ CONFIG_HW_STACK_PROTECTION=y
1313
CONFIG_REQUIRES_FULL_LIBC=y
1414
CONFIG_JSON_LIBRARY=y
1515
CONFIG_POSIX_API=y
16+
CONFIG_POSIX_AEP_CHOICE_PSE51=y
17+
CONFIG_POSIX_NETWORKING=y
1618

1719
# DNS
1820
CONFIG_DNS_RESOLVER=y

samples/net/cloud/mqtt_azure/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CONFIG_NETWORKING=y
22
CONFIG_POSIX_API=y
3+
CONFIG_POSIX_AEP_CHOICE_PSE51=y
4+
CONFIG_POSIX_NETWORKING=y
35

46
# Disable IPv6 support
57
CONFIG_NET_IPV6=n

samples/net/cloud/tagoio_http_post/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CONFIG_MAIN_STACK_SIZE=4096
77
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=4096
88

99
CONFIG_POSIX_API=y
10+
CONFIG_POSIX_AEP_CHOICE_PSE51=y
11+
CONFIG_POSIX_NETWORKING=y
1012

1113
# Networking config
1214
CONFIG_NETWORKING=y

samples/net/dsa/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ CONFIG_NET_DSA_LOG_LEVEL_INF=y
3737
CONFIG_NET_SOCKETS=y
3838
CONFIG_NET_SOCKETS_PACKET=y
3939
CONFIG_POSIX_API=y
40+
CONFIG_POSIX_NETWORKING=y
41+
CONFIG_POSIX_AEP_CHOICE_PSE51=y
4042

4143
# How many traffic classes to enable
4244
CONFIG_NET_TC_TX_COUNT=6

samples/net/mdns_responder/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
4747

4848
CONFIG_NET_SOCKETS=y
4949
CONFIG_POSIX_API=y
50+
CONFIG_POSIX_AEP_CHOICE_PSE51=y
51+
CONFIG_POSIX_NETWORKING=y

samples/net/mqtt_publisher/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=2
1010
CONFIG_PRINTK=y
1111
CONFIG_STDOUT_CONSOLE=y
1212
CONFIG_POSIX_API=y
13+
CONFIG_POSIX_NETWORKING=y
14+
CONFIG_POSIX_DEVICE_IO=y
1315

1416
# Enable IPv6 support
1517
CONFIG_NET_IPV6=n

0 commit comments

Comments
 (0)