b99769f686
* [libcpu][riscv]移除ch32中的冗余文件,使用common下的文件 * 修正cpuport.h宏定义 * 规范宏定义格式
18 lines
353 B
Python
18 lines
353 B
Python
# RT-Thread building script for component
|
|
|
|
from building import *
|
|
|
|
Import('rtconfig')
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c') + Glob('*.cpp')
|
|
CPPPATH = [cwd]
|
|
ASFLAGS = ' -I ' + cwd
|
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
src += Glob('*_gcc.S')
|
|
|
|
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
|
|
|
|
Return('group')
|