File tree Expand file tree Collapse file tree 6 files changed +10
-7
lines changed Expand file tree Collapse file tree 6 files changed +10
-7
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
depends on !NATIVE_APPLICATION
@@ -14,5 +12,3 @@ config EVENTFD
14
12
Enable support for event file descriptors, eventfd. An eventfd can
15
13
be used as an event wait/notify mechanism together with POSIX calls
16
14
like read, write and poll.
17
-
18
- endmenu
File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if (NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
25
25
endif ()
26
26
27
27
if (CONFIG_POSIX_API OR CONFIG_POSIX_THREADS OR CONFIG_POSIX_TIMERS OR
28
- CONFIG_POSIX_MESSAGE_PASSING OR CONFIG_POSIX_FILE_SYSTEM OR CONFIG_EVENTFD OR
28
+ CONFIG_POSIX_MESSAGE_PASSING OR CONFIG_POSIX_FILE_SYSTEM OR
29
29
CONFIG_POSIX_C_LIB_EXT OR CONFIG_POSIX_SINGLE_PROCESS )
30
30
# This is a temporary workaround so that Newlib declares the appropriate
31
31
# types for us. POSIX features to be formalized as part of #51211
@@ -34,7 +34,6 @@ if(CONFIG_POSIX_API OR CONFIG_POSIX_THREADS OR CONFIG_POSIX_TIMERS OR
34
34
endif ()
35
35
36
36
zephyr_library ()
37
- zephyr_library_sources_ifdef (CONFIG_EVENTFD eventfd.c )
38
37
39
38
if (NOT CONFIG_TC_PROVIDES_POSIX_ASYNCHRONOUS_IO )
40
39
zephyr_library_sources_ifdef (CONFIG_POSIX_ASYNCHRONOUS_IO aio.c )
You can’t perform that action at this time.
0 commit comments