1Import('RTT_ROOT') 2Import('rtconfig') 3from building import * 4 5cwd = GetCurrentDir() 6 7# add the general drivers. 8src = Split(""" 9""") 10 11if GetDepend(['RT_USING_PIN']): 12 src += ['drv_gpio.c'] 13 14if GetDepend(['RT_USING_SERIAL']): 15 src += ['drv_uart.c'] 16 17src += ['drv_common.c'] 18 19path = [cwd] 20path += [cwd + '/config'] 21 22group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) 23 24Return('group') 25