File tree Expand file tree Collapse file tree 7 files changed +10
-9
lines changed Expand file tree Collapse file tree 7 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
3
add_subdirectory (options )
4
+ add_subdirectory_ifdef(CONFIG_EVENTFD eventfd)
4
5
add_subdirectory_ifdef(CONFIG_POSIX_SHELL shell)
Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ menu "POSIX API Support"
7
7
rsource "options/Kconfig"
8
8
rsource "shell/Kconfig"
9
9
10
- endmenu # "POSIX API Support"
10
+ endmenu
11
+
12
+ # Eventfd Support (not officially POSIX)
13
+ rsource "eventfd/Kconfig"
Original file line number Diff line number Diff line change
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ zephyr_library()
4
+ zephyr_library_sources(eventfd.c)
Original file line number Diff line number Diff line change 3
3
#
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- menu "Miscellaneous POSIX-related options"
7
-
8
6
config EVENTFD
9
7
bool "Support for eventfd"
10
8
select ZVFS
@@ -13,5 +11,3 @@ config EVENTFD
13
11
Enable support for event file descriptors, eventfd. An eventfd can
14
12
be used as an event wait/notify mechanism together with POSIX calls
15
13
like read, write and poll.
16
-
17
- endmenu
File renamed without changes.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ if (NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
30
30
endif ()
31
31
32
32
if (CONFIG_POSIX_API OR CONFIG_POSIX_THREADS OR CONFIG_POSIX_TIMERS OR
33
- CONFIG_POSIX_MESSAGE_PASSING OR CONFIG_POSIX_FILE_SYSTEM OR CONFIG_EVENTFD OR
33
+ CONFIG_POSIX_MESSAGE_PASSING OR CONFIG_POSIX_FILE_SYSTEM OR
34
34
CONFIG_POSIX_C_LIB_EXT OR CONFIG_POSIX_SINGLE_PROCESS)
35
35
# This is a temporary workaround so that Newlib declares the appropriate
36
36
# types for us. POSIX features to be formalized as part of #51211
@@ -39,7 +39,6 @@ if(CONFIG_POSIX_API OR CONFIG_POSIX_THREADS OR CONFIG_POSIX_TIMERS OR
39
39
endif ()
40
40
41
41
zephyr_library()
42
- zephyr_library_sources_ifdef(CONFIG_EVENTFD eventfd.c)
43
42
44
43
if (NOT CONFIG_TC_PROVIDES_POSIX_ASYNCHRONOUS_IO)
45
44
zephyr_library_sources_ifdef(CONFIG_POSIX_ASYNCHRONOUS_IO aio.c)
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ rsource "Kconfig.xsi_threads_ext"
40
40
41
41
endmenu # "X/Open system interfaces"
42
42
43
- rsource "Kconfig.compat"
44
-
45
43
rsource "Kconfig.toolchain"
46
44
47
45
endmenu # "POSIX Options"
You can’t perform that action at this time.
0 commit comments