Skip to content

Commit a69c04f

Browse files
committed
eventfd: bring config to top-level of posix dir, since it is not posix
The eventfd configuration does not need to be so deeply nested within POSIX since it does not depend on POSIX completely. Signed-off-by: Chris Friedt <[email protected]>
1 parent 36bc2f3 commit a69c04f

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

lib/posix/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
add_subdirectory(options)
4+
add_subdirectory_ifdef(CONFIG_EVENTFD eventfd)
45
add_subdirectory_ifdef(CONFIG_POSIX_SHELL shell)

lib/posix/Kconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ menu "POSIX API Support"
77
rsource "options/Kconfig"
88
rsource "shell/Kconfig"
99

10-
endmenu # "POSIX API Support"
10+
endmenu
11+
12+
# Eventfd Support (not officially POSIX)
13+
rsource "eventfd/Kconfig"

lib/posix/eventfd/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()
4+
zephyr_library_sources(eventfd.c)

lib/posix/options/Kconfig.compat renamed to lib/posix/eventfd/Kconfig

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

6-
menu "Miscellaneous POSIX-related options"
7-
86
config EVENTFD
97
bool "Support for eventfd"
108
select ZVFS
@@ -13,5 +11,3 @@ config EVENTFD
1311
Enable support for event file descriptors, eventfd. An eventfd can
1412
be used as an event wait/notify mechanism together with POSIX calls
1513
like read, write and poll.
16-
17-
endmenu
File renamed without changes.

lib/posix/options/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ if (NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
3030
endif()
3131

3232
zephyr_library()
33-
zephyr_library_sources_ifdef(CONFIG_EVENTFD eventfd.c)
3433

3534
if (NOT CONFIG_TC_PROVIDES_POSIX_ASYNCHRONOUS_IO)
3635
zephyr_library_sources_ifdef(CONFIG_POSIX_ASYNCHRONOUS_IO aio.c)

lib/posix/options/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ rsource "Kconfig.xsi_threads_ext"
4040

4141
endmenu # "X/Open system interfaces"
4242

43-
rsource "Kconfig.compat"
44-
4543
rsource "Kconfig.toolchain"
4644

4745
endmenu # "POSIX Options"

0 commit comments

Comments
 (0)