1Import('RTT_ROOT') 2Import('rtconfig') 3from building import * 4 5cwd = GetCurrentDir() 6group = [] 7src = ['drv_gpio.c'] 8path = [cwd] 9 10if GetDepend(['RT_USING_CONSOLE']): 11 src += ['drv_console.c'] 12 13group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) 14 15Return('group') 16