2015-08-07 13:30:13 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2018-05-18 20:19:18 +08:00
|
|
|
src = Split("""
|
|
|
|
board.c
|
|
|
|
drv_cache.c
|
|
|
|
drv_mpu.c
|
|
|
|
""")
|
2015-08-07 13:30:13 +08:00
|
|
|
|
2018-05-18 20:19:18 +08:00
|
|
|
if GetDepend('BSP_USING_SDRAM'):
|
|
|
|
src = src + ['drv_sdram.c']
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_SERIAL'):
|
|
|
|
src = src + ['drv_usart.c']
|
2015-08-07 13:30:13 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|