刷新龙芯工程

This commit is contained in:
Meco Man
2021-09-15 11:39:01 -04:00
parent 5c058b624f
commit 9f55c88ddd
13 changed files with 1016 additions and 175 deletions

View 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')

View File

@@ -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:

View File

@@ -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')