给vector模块添加构建脚本

This commit is contained in:
heyuanjie87 2024-11-22 11:58:18 +08:00 committed by Rbb666
parent 3268716c4f
commit d3820ed77e
4 changed files with 14 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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