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