diff options
| author | Bernard Xiong <[email protected]> | 2021-12-05 13:16:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-05 13:16:39 +0800 |
| commit | 36d51542565800d503ad204d882e4b1dd3fcfe7d (patch) | |
| tree | debed47f95688577bcbde7846fd9892e9283668e /components/libc/posix/src/SConscript | |
| parent | 04535363844d30971edca03f643fc92ba2cd40a7 (diff) | |
| parent | 1040f4a3479b3751a7ad5d5383b62d602fccabed (diff) | |
Merge pull request #5320 from mysterywolf/pse-master
[POSIX] move PSE branch to master
Diffstat (limited to 'components/libc/posix/src/SConscript')
| -rw-r--r-- | components/libc/posix/src/SConscript | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/components/libc/posix/src/SConscript b/components/libc/posix/src/SConscript index 78a2a933ed..4be5ac83cc 100644 --- a/components/libc/posix/src/SConscript +++ b/components/libc/posix/src/SConscript @@ -2,25 +2,35 @@ from building import * -src = ['unistd.c'] +src = [] cwd = GetCurrentDir() CPPPATH = [cwd] +group = [] -if GetDepend('RT_USING_POSIX_STDIO'): +flag = False +src += ['unistd.c'] #TODO + +if GetDepend('RT_USING_POSIX_DEVIO'): src += ['libc.c'] + flag = True if GetDepend('RT_USING_POSIX_DELAY'): src += ['delay.c'] + flag = True if GetDepend('RT_USING_POSIX_POLL'): src += ['poll.c'] + flag = True if GetDepend('RT_USING_POSIX_SELECT'): src += ['select.c'] + flag = True if GetDepend('RT_USING_POSIX_MMAP'): src += ['mmap.c'] + flag = True -group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH) +if flag == True: + group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH) Return('group') |
