diff options
| author | liukangcc <[email protected]> | 2021-09-17 15:12:52 +0800 |
|---|---|---|
| committer | liukangcc <[email protected]> | 2021-09-17 15:12:52 +0800 |
| commit | c447018c406f1a49000150d8a52224b576eea65a (patch) | |
| tree | ef614a6a4edf73e2cab522b4e3e6f4d6965af68a /components/libc/compilers/common/partial/ls/SConscript | |
| parent | 2adfbcaeca0c3b565583cbb3d808c1e02ac8bd6d (diff) | |
| parent | ef71de34f76d4403fcd2cddd21a17f3a53a40296 (diff) | |
Merge remote-tracking branch 'remotes/rtt_github/master'
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') |
