lib POSIX: Enable selectively for POSIX ARCH

The POSIX API compatibility shim can be used for some
of the POSIX ARCH targets.
Narrow the Kconfig filtering accordingly.

Note that the recommended configuration when building
with the native simulator is still to use an embedded
C library. Using the host C library will in some cases
cause undesired behaviour.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-05-31 17:09:25 +02:00 committed by Chris Friedt
parent fbe47d0c01
commit 3454d8f727

View file

@ -12,7 +12,7 @@ config POSIX_MAX_FDS
files, sockets, special devices, etc.
config POSIX_API
depends on !ARCH_POSIX
depends on !NATIVE_APPLICATION
bool "POSIX APIs"
help
Enable mostly-standards-compliant implementations of
@ -160,7 +160,7 @@ config APP_LINK_WITH_POSIX_SUBSYS
config EVENTFD
bool "Support for eventfd"
depends on !ARCH_POSIX
depends on !NATIVE_APPLICATION
select POLL
default y if POSIX_API
help