mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 11:03:30 +08:00
0227b5823e
2. Modify the return code to -1 when failed 3. Change the mounting filesystem from ramfs to sdcard 4. Replace RT_USING_RTGUI with PKG_USING_GUIENGINE and remove RT_USING_FTK
42 lines
851 B
Python
42 lines
851 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
|
|
|
# add the general drivers.
|
|
src = Split("""
|
|
board.c
|
|
led.c
|
|
uart.c
|
|
""")
|
|
|
|
if GetDepend('RT_USING_DFS'):
|
|
src += ['sdcard.c']
|
|
|
|
if GetDepend('RT_USING_LWIP'):
|
|
src += ['dm9000.c']
|
|
|
|
if GetDepend('PKG_USING_GUIENGINE'):
|
|
src += ['touch.c', 'key.c']
|
|
|
|
if GetDepend('RT_USING_RTI'):
|
|
src += ['rti_stub.c']
|
|
|
|
if GetDepend('PKG_USING_GUIENGINE'):
|
|
if rtconfig.RT_USING_LCD_TYPE == 'PNL_A70':
|
|
src += ['lcd_a70.c']
|
|
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_N35':
|
|
src += ['lcd_n35.c']
|
|
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_T35':
|
|
src += ['lcd_t35.c']
|
|
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_X35':
|
|
src += ['lcd_x35.c']
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|
|
|