2018-04-06 01:11:15 +08:00
|
|
|
# Copyright (c) 2018 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
config POSIX_MAX_FDS
|
2018-10-08 18:55:03 +08:00
|
|
|
int "Maximum number of open file descriptors"
|
|
|
|
default 16 if POSIX_API
|
|
|
|
default 4
|
|
|
|
help
|
|
|
|
Maximum number of open file descriptors, this includes
|
|
|
|
files, sockets, special devices, etc.
|
|
|
|
|
2018-09-27 23:08:12 +08:00
|
|
|
config POSIX_API
|
2019-02-20 05:26:23 +08:00
|
|
|
depends on !ARCH_POSIX
|
2018-09-27 23:08:12 +08:00
|
|
|
bool "POSIX APIs"
|
|
|
|
help
|
|
|
|
Enable mostly-standards-compliant implementations of
|
|
|
|
various POSIX (IEEE 1003.1) APIs.
|
|
|
|
|
2018-04-06 01:11:15 +08:00
|
|
|
config PTHREAD_IPC
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "POSIX pthread IPC API"
|
2019-08-30 02:57:19 +08:00
|
|
|
default y if POSIX_API
|
2018-04-06 01:11:15 +08:00
|
|
|
help
|
|
|
|
This enables a mostly-standards-compliant implementation of
|
|
|
|
the pthread mutex, condition variable and barrier IPC
|
|
|
|
mechanisms.
|
|
|
|
|
|
|
|
if PTHREAD_IPC
|
|
|
|
config MAX_PTHREAD_COUNT
|
2019-05-11 19:43:01 +08:00
|
|
|
int "Maximum simultaneously active pthread count in POSIX application"
|
2018-04-06 01:11:15 +08:00
|
|
|
default 5
|
|
|
|
range 0 255
|
|
|
|
help
|
2019-05-11 19:43:01 +08:00
|
|
|
Maximum number of simultaneously active threads in a POSIX application.
|
2018-04-06 01:11:15 +08:00
|
|
|
|
|
|
|
config SEM_VALUE_MAX
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Maximum semaphore limit"
|
2018-04-06 01:11:15 +08:00
|
|
|
default 32767
|
|
|
|
range 1 32767
|
|
|
|
help
|
|
|
|
Maximum semaphore count in POSIX compliant Application.
|
|
|
|
|
2018-09-27 23:08:12 +08:00
|
|
|
endif # PTHREAD_IPC
|
|
|
|
|
2019-08-30 02:57:19 +08:00
|
|
|
config POSIX_CLOCK
|
|
|
|
bool "POSIX clock, timer, and sleep APIs"
|
|
|
|
default y if POSIX_API
|
|
|
|
help
|
|
|
|
This enables POSIX clock\_\*(), timer\_\*(), and \*sleep()
|
|
|
|
functions.
|
|
|
|
|
2018-04-06 01:11:15 +08:00
|
|
|
config MAX_TIMER_COUNT
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Maximum timer count in POSIX application"
|
2018-04-06 01:11:15 +08:00
|
|
|
default 5
|
|
|
|
range 0 255
|
|
|
|
help
|
|
|
|
Mention maximum number of timers in POSIX compliant application.
|
|
|
|
|
|
|
|
config POSIX_MQUEUE
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Enable POSIX message queue"
|
2019-08-30 02:57:19 +08:00
|
|
|
default y if POSIX_API
|
2018-04-06 01:11:15 +08:00
|
|
|
help
|
|
|
|
This enabled POSIX message queue related APIs.
|
|
|
|
|
|
|
|
if POSIX_MQUEUE
|
2019-11-01 17:24:07 +08:00
|
|
|
config MSG_COUNT_MAX
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Maximum number of messages in message queue"
|
2018-04-06 01:11:15 +08:00
|
|
|
default 16
|
|
|
|
help
|
|
|
|
Mention maximum number of messages in message queue in POSIX compliant
|
|
|
|
application.
|
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
config MSG_SIZE_MAX
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Maximum size of a message"
|
2018-04-06 01:11:15 +08:00
|
|
|
default 16
|
|
|
|
help
|
|
|
|
Mention maximum size of message in bytes.
|
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
config MQUEUE_NAMELEN_MAX
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Maximum size of a name length"
|
2018-04-06 01:11:15 +08:00
|
|
|
default 16
|
|
|
|
range 2 255
|
|
|
|
help
|
|
|
|
Mention length of message queue name in number of characters.
|
|
|
|
|
|
|
|
endif
|
2018-05-03 19:47:22 +08:00
|
|
|
|
|
|
|
config POSIX_FS
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Enable POSIX file system API support"
|
2019-08-30 02:57:19 +08:00
|
|
|
default y if POSIX_API
|
kconfig: Replace some single-symbol 'if's with 'depends on'
I think people might be reading differences into 'if' and 'depends on'
that aren't there, like maybe 'if' being needed to "hide" a symbol,
while 'depends on' just adds a dependency.
There are no differences between 'if' and 'depends on'. 'if' is just a
shorthand for 'depends on'. They work the same when it comes to creating
implicit menus too.
The way symbols get "hidden" is through their dependencies not being
satisfied ('if'/'depends on' get copied up as a dependency on the
prompt).
Since 'if' and 'depends on' are the same, an 'if' with just a single
symbol in it can be replaced with a 'depends on'. IMO, it's best to
avoid 'if' there as a style choice too, because it confuses people into
thinking there's deep Kconfig magic going on that requires 'if'.
Going for 'depends on' can also remove some nested 'if's, which
generates nicer symbol information and docs, because nested 'if's really
are so simple/dumb that they just add the dependencies from both 'if's
to all symbols within.
Replace a bunch of single-symbol 'if's with 'depends on' to despam the
Kconfig files a bit and make it clearer how things work. Also do some
other minor related dependency refactoring.
The replacement isn't complete. Will fix up the rest later. Splitting it
a bit to make it more manageable.
(Everything above is true for choices, menus, and comments as well.)
Detected by tweaking the Kconfiglib parsing code. It's impossible to
detect after parsing, because 'if' turns into 'depends on'.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-02-08 10:45:50 +08:00
|
|
|
depends on FILE_SYSTEM
|
2018-05-03 19:47:22 +08:00
|
|
|
help
|
2018-10-08 18:55:03 +08:00
|
|
|
This enables POSIX style file system related APIs.
|
2018-05-03 19:47:22 +08:00
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
config POSIX_MAX_OPEN_FILES
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Maximum number of open file descriptors"
|
2018-05-03 19:47:22 +08:00
|
|
|
default 16
|
kconfig: Replace some single-symbol 'if's with 'depends on'
I think people might be reading differences into 'if' and 'depends on'
that aren't there, like maybe 'if' being needed to "hide" a symbol,
while 'depends on' just adds a dependency.
There are no differences between 'if' and 'depends on'. 'if' is just a
shorthand for 'depends on'. They work the same when it comes to creating
implicit menus too.
The way symbols get "hidden" is through their dependencies not being
satisfied ('if'/'depends on' get copied up as a dependency on the
prompt).
Since 'if' and 'depends on' are the same, an 'if' with just a single
symbol in it can be replaced with a 'depends on'. IMO, it's best to
avoid 'if' there as a style choice too, because it confuses people into
thinking there's deep Kconfig magic going on that requires 'if'.
Going for 'depends on' can also remove some nested 'if's, which
generates nicer symbol information and docs, because nested 'if's really
are so simple/dumb that they just add the dependencies from both 'if's
to all symbols within.
Replace a bunch of single-symbol 'if's with 'depends on' to despam the
Kconfig files a bit and make it clearer how things work. Also do some
other minor related dependency refactoring.
The replacement isn't complete. Will fix up the rest later. Splitting it
a bit to make it more manageable.
(Everything above is true for choices, menus, and comments as well.)
Detected by tweaking the Kconfiglib parsing code. It's impossible to
detect after parsing, because 'if' turns into 'depends on'.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-02-08 10:45:50 +08:00
|
|
|
depends on POSIX_FS
|
2018-05-03 19:47:22 +08:00
|
|
|
help
|
2018-10-08 18:55:03 +08:00
|
|
|
Maximum number of open files. Note that this setting
|
|
|
|
is additionally bounded by CONFIG_POSIX_MAX_FDS.
|
2019-08-30 02:57:19 +08:00
|
|
|
|
2019-05-06 21:50:24 +08:00
|
|
|
# The name of this option is mandated by zephyr_interface_library_named
|
|
|
|
# cmake directive.
|
|
|
|
config APP_LINK_WITH_POSIX_SUBSYS
|
2019-11-01 17:24:07 +08:00
|
|
|
bool "Make POSIX headers available to application"
|
|
|
|
default y
|
kconfig: Replace some single-symbol 'if's with 'depends on'
I think people might be reading differences into 'if' and 'depends on'
that aren't there, like maybe 'if' being needed to "hide" a symbol,
while 'depends on' just adds a dependency.
There are no differences between 'if' and 'depends on'. 'if' is just a
shorthand for 'depends on'. They work the same when it comes to creating
implicit menus too.
The way symbols get "hidden" is through their dependencies not being
satisfied ('if'/'depends on' get copied up as a dependency on the
prompt).
Since 'if' and 'depends on' are the same, an 'if' with just a single
symbol in it can be replaced with a 'depends on'. IMO, it's best to
avoid 'if' there as a style choice too, because it confuses people into
thinking there's deep Kconfig magic going on that requires 'if'.
Going for 'depends on' can also remove some nested 'if's, which
generates nicer symbol information and docs, because nested 'if's really
are so simple/dumb that they just add the dependencies from both 'if's
to all symbols within.
Replace a bunch of single-symbol 'if's with 'depends on' to despam the
Kconfig files a bit and make it clearer how things work. Also do some
other minor related dependency refactoring.
The replacement isn't complete. Will fix up the rest later. Splitting it
a bit to make it more manageable.
(Everything above is true for choices, menus, and comments as well.)
Detected by tweaking the Kconfiglib parsing code. It's impossible to
detect after parsing, because 'if' turns into 'depends on'.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-02-08 10:45:50 +08:00
|
|
|
depends on POSIX_API
|
2019-11-01 17:24:07 +08:00
|
|
|
help
|
|
|
|
Add POSIX subsystem header files to the 'app' include path.
|
2019-11-05 23:09:42 +08:00
|
|
|
|
|
|
|
config EVENTFD
|
|
|
|
bool "Enable support for eventfd"
|
|
|
|
depends on !ARCH_POSIX
|
|
|
|
help
|
|
|
|
Enable support for event file descriptors, eventfd. An eventfd can
|
|
|
|
be used as an event wait/notify mechanism together with POSIX calls
|
|
|
|
like read, write and poll.
|
|
|
|
|
|
|
|
config EVENTFD_MAX
|
|
|
|
int "Maximum number of eventfd's"
|
|
|
|
depends on EVENTFD
|
|
|
|
default 1
|
|
|
|
range 1 4096
|
|
|
|
help
|
|
|
|
The maximum number of supported event file descriptors.
|