summaryrefslogtreecommitdiff
path: root/libcpu/risc-v/common/SConscript
blob: deaa2907c567f7d570e46a0126bc3bb736414eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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')