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

16 lines
369 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')
2020-12-19 16:49:11 +08:00
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
2019-01-07 06:09:45 +08:00
Return('group')