diff options
| author | Meco Man <[email protected]> | 2021-09-15 11:39:01 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-09-15 11:50:53 -0400 |
| commit | 9f55c88ddde6d55524217a2ae609df83cd6c09d2 (patch) | |
| tree | b504aaed8683d71bd9c4f6fcbb64429b23423b63 /components/libc/compilers/common/partial/ls/SConscript | |
| parent | 5c058b624f01c0026b8683c3561124838a0a46cc (diff) | |
刷新龙芯工程
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') |
