mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
刷新龙芯工程
This commit is contained in:
23
components/libc/compilers/common/partial/ls/SConscript
Normal file
23
components/libc/compilers/common/partial/ls/SConscript
Normal file
@@ -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')
|
||||
@@ -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:
|
||||
|
||||
@@ -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')
|
||||
Reference in New Issue
Block a user