rt-thread-official/libcpu/risc-v/common/SConscript

16 lines
372 B
Python
Raw Normal View History

2019-01-07 06:09:45 +08:00
# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
CPPPATH = [cwd]
2023-01-09 10:14:23 +08:00
ASFLAGS = ' -I ' + cwd
2019-01-07 06:09:45 +08:00
if not GetDepend('RT_USING_HW_ATOMIC'):
SrcRemove(src, 'atomic_riscv.c')
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
2019-01-07 06:09:45 +08:00
Return('group')