1Import('RTT_ROOT') 2Import('rtconfig') 3from building import * 4 5cwd = os.path.join(str(Dir('#')), 'drivers') 6 7# add the general drvers. 8src = Split(""" 9board.c 10usart.c 11""") 12 13# add Ethernet drvers. 14if GetDepend('RT_USING_LED'): 15 src += ['led.c'] 16 17CPPPATH = [cwd] 18 19group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) 20 21Return('group') 22