4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 16:33:31 +08:00
Shell 83e95bdff4
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00

25 lines
474 B
Python

from building import *
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include']
group = []
src = []
if not GetDepend(['RT_USING_SERIAL']):
Return('group')
if GetDepend(['RT_USING_SMART']):
src += Glob('serial_tty.c')
if GetDepend(['RT_USING_SERIAL_V2']):
src += ['serial_v2.c']
else:
src += ['serial.c']
if GetDepend(['RT_USING_DM']):
src += ['serial_dm.c']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')