1# RT-Thread building script for component
2
3from building import *
4
5Import('rtconfig')
6
7cwd     = GetCurrentDir()
8src     = Glob('*.c')
9CPPPATH = [cwd]
10
11if rtconfig.PLATFORM in ['gcc', 'armclang', 'llvm-arm']:
12    src += Glob('*context_gcc.S')
13
14group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
15
16Return('group')
17