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 ['armcc', 'armclang']: 12 src += Glob('*_rvds.S') 13 14if rtconfig.PLATFORM == 'armclang': 15 src += Glob('*_rvds.S') 16 17if rtconfig.PLATFORM in ['gcc', 'llvm-arm']: 18 src += Glob('*_init.S') 19 src += Glob('*_gcc.S') 20 21if rtconfig.PLATFORM in ['iccarm']: 22 src += Glob('*_iar.S') 23 24group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH) 25 26Return('group') 27