1Import('RTT_ROOT') 2Import('rtconfig') 3from building import * 4import copy 5 6cwd = os.path.join(str(Dir('#')), 'drivers') 7src = Glob('*.c') 8CPPPATH = [cwd] 9 10# remove no need file. 11if GetDepend('RT_USING_LWIP') == False: 12 SrcRemove(src, ['luminaryif.c']) # need remove file list. 13 14if GetDepend('RT_USING_DFS') == False: 15 SrcRemove(src, ['sdcard.c']) # need remove file list. 16 17group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) 18 19Return('group') 20