mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-05 01:54:35 +08:00
49b6614763
[libcpu]添加对riscv vector的支持
14 lines
334 B
Python
14 lines
334 B
Python
# RT-Thread building script for component
|
|
|
|
from building import *
|
|
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')
|