import os from building import * import rtconfig cwd = GetCurrentDir() src = [] CPPPATH = [] if GetDepend('RT_LINK_USING_UART'): src += ['uart/rtlink_port_uart.c'] group = DefineGroup('rt-link-port', src, depend = ['RT_USING_RT_LINK'], CPPPATH = CPPPATH) Return('group')