rtt-f030/bsp/gd32450z-eval/drivers/SConscript

34 lines
676 B
Python
Raw Normal View History

2017-08-22 15:52:57 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
# add the general drivers.
src = Split("""
board.c
2017-08-23 19:19:52 +08:00
drv_exmc_sdram.c
2017-08-22 15:52:57 +08:00
drv_usart.c
""")
CPPPATH = [cwd]
2017-08-29 19:30:21 +08:00
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
src += ['drv_enet.c', 'synopsys_emac.c']
# add lcd drivers.
2018-03-03 16:34:01 +08:00
if GetDepend('PKG_USING_GUIENGINE'):
2017-08-29 19:30:21 +08:00
src += ['drv_lcd.c', 'gd32f450z_lcd_eval.c']
# add spi flash drivers.
if GetDepend('RT_USING_SFUD'):
src += ['drv_spi_flash.c', 'drv_spi.c']
elif GetDepend('RT_USING_SPI'):
src += ['drv_spi.c']
2017-08-22 15:52:57 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')