4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-24 14:57:25 +08:00
2021-10-14 18:50:35 +08:00

25 lines
420 B
Python

# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
board.c
""")
# add serial driver code
if GetDepend('RT_USING_SERIAL'):
src += ['drv_uart.c']
# add gpio driver code
if GetDepend(['RT_USING_PIN']):
src += ['drv_gpio.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')