Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/libc/posix/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ if RT_USING_POSIX_FS
select RT_USING_POSIX_POLL
default n

if RT_USING_SMART
config RT_USING_POSIX_EPOLL
bool "Enable I/O Multiplexing epoll <sys/epoll.h>"
select RT_USING_POSIX_POLL
default n
endif

config RT_USING_POSIX_SOCKET
bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
select RT_USING_POSIX_SELECT
Expand Down
14 changes: 14 additions & 0 deletions components/libc/posix/io/epoll/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# RT-Thread building script for component

from building import *

cwd = GetCurrentDir()
src = []
CPPPATH = [cwd]

if GetDepend('RT_USING_POSIX_EPOLL'):
src += ['epoll.c']

group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
Loading