给vector模块添加构建脚本
This commit is contained in:
parent
3268716c4f
commit
d3820ed77e
|
@ -16,6 +16,8 @@ if rtconfig.CPU in common64_arch :
|
||||||
else :
|
else :
|
||||||
group += SConscript(os.path.join('common', 'SConscript'))
|
group += SConscript(os.path.join('common', 'SConscript'))
|
||||||
|
|
||||||
|
group += SConscript(os.path.join('vector', 'SConscript'))
|
||||||
|
|
||||||
# cpu porting code files
|
# cpu porting code files
|
||||||
if 'VENDOR' in vars(rtconfig) and rtconfig.VENDOR != '':
|
if 'VENDOR' in vars(rtconfig) and rtconfig.VENDOR != '':
|
||||||
group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
|
group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
|
||||||
|
|
|
@ -5,9 +5,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if GetDepend('ARCH_RISCV_VECTOR'):
|
|
||||||
CPPPATH += [cwd + '/../../vector/rvv-1.0']
|
|
||||||
|
|
||||||
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# RT-Thread building script for component
|
||||||
|
|
||||||
|
from building import *
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
src = []
|
||||||
|
CPPPATH = []
|
||||||
|
|
||||||
|
CPPPATH += [cwd + '/rvv-1.0']
|
||||||
|
|
||||||
|
group = DefineGroup('libcpu', src, depend = ['ARCH_RISCV_VECTOR'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
|
Return('group')
|
|
@ -5,9 +5,6 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if GetDepend('ARCH_RISCV_VECTOR'):
|
|
||||||
CPPPATH += [cwd + '/../vector/rvv-1.0']
|
|
||||||
|
|
||||||
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue