diff options
| author | Bernard Xiong <[email protected]> | 2021-09-17 12:05:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-17 12:05:05 +0800 |
| commit | 0f63ddf0def16553868b9005f4341162ee6d2950 (patch) | |
| tree | b504aaed8683d71bd9c4f6fcbb64429b23423b63 /components/libc/compilers/common/partial/ls/SConscript | |
| parent | 065f9586d038c52b50190a436e3d1f8101cdbf94 (diff) | |
| parent | 9f55c88ddde6d55524217a2ae609df83cd6c09d2 (diff) | |
Merge pull request #5058 from mysterywolf/select
[libc标准化] 将dfs_select.h功能转移到sys/select.h
Diffstat (limited to 'components/libc/compilers/common/partial/ls/SConscript')
| -rw-r--r-- | components/libc/compilers/common/partial/ls/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/libc/compilers/common/partial/ls/SConscript b/components/libc/compilers/common/partial/ls/SConscript new file mode 100644 index 0000000000..2665bee078 --- /dev/null +++ b/components/libc/compilers/common/partial/ls/SConscript @@ -0,0 +1,23 @@ +from shutil import copy +from building import * + +Import('rtconfig') + +src = [] +cwd = GetCurrentDir() +CPPPATH = [cwd] +group = [] + +if rtconfig.PLATFORM == 'gcc' and GetDepend('SOC_LS'): + try: + # There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h' + copy("../../nogcc/sys/select.h", "./sys/select.h") + except: + pass + + if GetDepend('RT_USING_LIBC'): + src += Glob('*.c') + + group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH) + +Return('group') |
