You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
372 B
15 lines
372 B
# RT-Thread building script for component
|
|
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
|
|
CPPPATH = [cwd]
|
|
ASFLAGS = ' -I ' + cwd
|
|
|
|
if not GetDepend('RT_USING_HW_ATOMIC'):
|
|
SrcRemove(src, 'atomic_riscv.c')
|
|
|
|
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
|
|
|
|
Return('group')
|
|
|