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
|
|
|
|
2023-03-23 20:06:50 +08:00
|
|
|
if not GetDepend('RT_USING_HW_ATOMIC'):
|
|
|
|
SrcRemove(src, 'atomic_riscv.c')
|
|
|
|
|
2024-02-20 03:33:47 +08:00
|
|
|
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
Return('group')
|