1import rtconfig 2Import('RTT_ROOT') 3from building import * 4 5cwd = GetCurrentDir() 6 7src = Split(""" 8""") 9 10if GetDepend('SOC_RISCV_FAMILY_Core_V'): 11 12 if GetDepend('BSP_USING_UART'): 13 src += ['source/drv_usart.c'] 14 15path = [ 16 cwd + '/include'] 17 18group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) 19 20Return('group') 21