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