4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 14:33:31 +08:00
2018-05-18 20:19:18 +08:00

21 lines
336 B
Python

from building import *
cwd = GetCurrentDir()
src = Split("""
board.c
drv_cache.c
drv_mpu.c
""")
if GetDepend('BSP_USING_SDRAM'):
src = src + ['drv_sdram.c']
if GetDepend('RT_USING_SERIAL'):
src = src + ['drv_usart.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')