rt-thread-official/bsp/CME_M7/drivers/SConscript

21 lines
376 B
Python
Raw Normal View History

2014-08-30 00:19:16 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
2014-08-31 00:09:08 +08:00
src = ['board.c']
# add uart driver.
src += ['uart.c']
# add EMAC driver for Lwip.
if GetDepend('RT_USING_LWIP') == True:
src += ['emac.c', 'app_phy.c']
2014-08-30 00:19:16 +08:00
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')