提交 664a1d6a 编写于 作者: mysterywolf's avatar mysterywolf

增加 RT_USING_POSIX_SELECT RT_USING_POSIX_POLL

上级 f0023fb4
...@@ -43,18 +43,28 @@ config RT_USING_POSIX ...@@ -43,18 +43,28 @@ config RT_USING_POSIX
default n default n
if RT_USING_POSIX if RT_USING_POSIX
config RT_USING_POSIX_MMAP
bool "Enable mmap() API" config RT_USING_POSIX_POLL
bool "Enable poll()"
default n default n
config RT_USING_POSIX_TERMIOS config RT_USING_POSIX_SELECT
bool "Enable termios APIs" bool "Enable select()"
select RT_USING_POSIX_POLL
default n default n
config RT_USING_POSIX_GETLINE config RT_USING_POSIX_GETLINE
bool "Enable getline()/getdelim() APIs" bool "Enable getline()/getdelim() APIs"
default n default n
config RT_USING_POSIX_MMAP
bool "Enable mmap() API"
default n
config RT_USING_POSIX_TERMIOS
bool "Enable termios APIs"
default n
config RT_USING_POSIX_AIO config RT_USING_POSIX_AIO
bool "Enable AIO" bool "Enable AIO"
default n default n
......
...@@ -2,10 +2,16 @@ ...@@ -2,10 +2,16 @@
from building import * from building import *
src = Glob('*.c') src = ['libc.c','delay.c','unistd.c']
cwd = GetCurrentDir() cwd = GetCurrentDir()
CPPPATH = [cwd] CPPPATH = [cwd]
if GetDepend('RT_USING_POSIX_POLL'):
src += ['poll.c']
if GetDepend('RT_USING_POSIX_SELECT'):
src += ['select.c']
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH) group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH)
Return('group') Return('group')
...@@ -42,6 +42,7 @@ config RT_USING_SAL ...@@ -42,6 +42,7 @@ config RT_USING_SAL
bool "Enable BSD socket operated by file system API" bool "Enable BSD socket operated by file system API"
default n default n
select RT_LIBC_USING_FILEIO select RT_LIBC_USING_FILEIO
select RT_USING_POSIX_SELECT
help help
Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册