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
|
2017-08-23 19:19:52 +08:00
|
|
|
gd32f450z_lcd_eval.c
|
|
|
|
drv_lcd.c
|
2017-08-25 19:31:19 +08:00
|
|
|
drv_enet.c
|
2017-08-28 18:51:32 +08:00
|
|
|
synopsys_emac.c
|
2017-08-22 15:52:57 +08:00
|
|
|
""")
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|