mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-28 16:20:24 +08:00
25 lines
490 B
Python
25 lines
490 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
# add the general drivers.
|
|
src = Split("""
|
|
drv_common.c
|
|
""")
|
|
|
|
if GetDepend(['RT_USING_SERIAL']):
|
|
if GetDepend(['RT_USING_SERIAL_V2']):
|
|
src += ['drv_usart_v2.c']
|
|
else:
|
|
print("\nThe current project does not support serial-v1\n")
|
|
Return('group')
|
|
|
|
path = [cwd]
|
|
path += [cwd + '/config']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
|
|
Return('group')
|