mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-17 08:03:45 +08:00
增加 RT_USING_POSIX_SELECT RT_USING_POSIX_POLL
This commit is contained in:
@@ -43,6 +43,20 @@ config RT_USING_POSIX
|
||||
default n
|
||||
|
||||
if RT_USING_POSIX
|
||||
|
||||
config RT_USING_POSIX_POLL
|
||||
bool "Enable poll()"
|
||||
default n
|
||||
|
||||
config RT_USING_POSIX_SELECT
|
||||
bool "Enable select()"
|
||||
select RT_USING_POSIX_POLL
|
||||
default n
|
||||
|
||||
config RT_USING_POSIX_GETLINE
|
||||
bool "Enable getline()/getdelim() APIs"
|
||||
default n
|
||||
|
||||
config RT_USING_POSIX_MMAP
|
||||
bool "Enable mmap() API"
|
||||
default n
|
||||
@@ -51,10 +65,6 @@ if RT_USING_POSIX
|
||||
bool "Enable termios APIs"
|
||||
default n
|
||||
|
||||
config RT_USING_POSIX_GETLINE
|
||||
bool "Enable getline()/getdelim() APIs"
|
||||
default n
|
||||
|
||||
config RT_USING_POSIX_AIO
|
||||
bool "Enable AIO"
|
||||
default n
|
||||
|
@@ -2,10 +2,16 @@
|
||||
|
||||
from building import *
|
||||
|
||||
src = Glob('*.c')
|
||||
src = ['libc.c','delay.c','unistd.c']
|
||||
cwd = GetCurrentDir()
|
||||
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)
|
||||
|
||||
Return('group')
|
||||
|
Reference in New Issue
Block a user