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