diff options
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/common/partial/ls/SConscript | 23 | ||||
| -rw-r--r-- | components/libc/compilers/common/partial/ls/readme.md (renamed from components/libc/compilers/common/partial/ls1/readme.md) | 1 | ||||
| -rw-r--r-- | components/libc/compilers/common/partial/ls/sys/select.h (renamed from components/libc/compilers/common/partial/ls1/sys/select.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/partial/ls1/SConscript | 23 |
4 files changed, 24 insertions, 23 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') diff --git a/components/libc/compilers/common/partial/ls1/readme.md b/components/libc/compilers/common/partial/ls/readme.md index 575d713442..fa68e1e84a 100644 --- a/components/libc/compilers/common/partial/ls1/readme.md +++ b/components/libc/compilers/common/partial/ls/readme.md @@ -2,6 +2,7 @@ This folder will be included when compiling the BSPs as follow: - ls1bdev - ls1cdev +- ls2kdev These files will be generated by scons automatically , and **DO NOT** change them: diff --git a/components/libc/compilers/common/partial/ls1/sys/select.h b/components/libc/compilers/common/partial/ls/sys/select.h index 575ad3a1b5..575ad3a1b5 100644 --- a/components/libc/compilers/common/partial/ls1/sys/select.h +++ b/components/libc/compilers/common/partial/ls/sys/select.h diff --git a/components/libc/compilers/common/partial/ls1/SConscript b/components/libc/compilers/common/partial/ls1/SConscript deleted file mode 100644 index b988f7cf5f..0000000000 --- a/components/libc/compilers/common/partial/ls1/SConscript +++ /dev/null @@ -1,23 +0,0 @@ -from shutil import copy -from building import * - -Import('rtconfig') - -src = [] -cwd = GetCurrentDir() -CPPPATH = [cwd] -group = [] - -if rtconfig.PLATFORM == 'gcc': - if GetDepend('SOC_LS1B') or GetDepend('SOC_LS1C300'): - 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') |
