mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 12:15:32 +08:00
给vector模块添加构建脚本
This commit is contained in:
@@ -16,6 +16,8 @@ if rtconfig.CPU in common64_arch :
|
||||
else :
|
||||
group += SConscript(os.path.join('common', 'SConscript'))
|
||||
|
||||
group += SConscript(os.path.join('vector', 'SConscript'))
|
||||
|
||||
# cpu porting code files
|
||||
if 'VENDOR' in vars(rtconfig) and rtconfig.VENDOR != '':
|
||||
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')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if GetDepend('ARCH_RISCV_VECTOR'):
|
||||
CPPPATH += [cwd + '/../../vector/rvv-1.0']
|
||||
|
||||
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
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')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if GetDepend('ARCH_RISCV_VECTOR'):
|
||||
CPPPATH += [cwd + '/../vector/rvv-1.0']
|
||||
|
||||
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
|
||||
Reference in New Issue
Block a user