1# for network related component 2import os 3Import('RTT_ROOT') 4from building import * 5 6objs = [] 7cwd = GetCurrentDir() 8list = os.listdir(cwd) 9 10# the default version of LWIP is 2.0.2 11if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP210'): 12 AddDepend('RT_USING_LWIP202') 13 14for d in list: 15 path = os.path.join(cwd, d) 16 if os.path.isfile(os.path.join(path, 'SConscript')): 17 objs = objs + SConscript(os.path.join(d, 'SConscript')) 18 19Return('objs') 20