mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-25 14:28:20 +08:00
[BSP]fixed some bugs for compile.
Signed-off-by: pangwei <271372443@qq.com>
This commit is contained in:
+10
-33
@@ -1,37 +1,14 @@
|
||||
import rtconfig
|
||||
# for module compiling
|
||||
import os
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
src_bsp = ['application.c', 'startup.c', 'board.c']
|
||||
src_drv = ['console.c', 'led.c']
|
||||
cwd = str(Dir('#'))
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
if GetDepend('RT_USING_DFS'):
|
||||
src_drv += ['sdcard.c']
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
if GetDepend('RT_USING_LWIP'):
|
||||
src_drv += ['dm9000.c']
|
||||
|
||||
if GetDepend('RT_USING_RTGUI'):
|
||||
src_drv += ['touch.c', 'key.c', 'calibration.c']
|
||||
|
||||
if GetDepend('RT_USING_FTK'):
|
||||
src_drv += ['touch.c', 'key.c']
|
||||
|
||||
if GetDepend('RT_USING_RTI'):
|
||||
src_drv += ['rti_stub.c']
|
||||
|
||||
if GetDepend('RT_USING_RTGUI') or GetDepend('RT_USING_FTK'):
|
||||
if rtconfig.RT_USING_LCD_TYPE == 'PNL_A70':
|
||||
src_drv += ['lcd_a70.c']
|
||||
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_N35':
|
||||
src_drv += ['lcd_n35.c']
|
||||
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_T35':
|
||||
src_drv += ['lcd_t35.c']
|
||||
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_X35':
|
||||
src_drv += ['lcd_x35.c']
|
||||
|
||||
src = File(src_bsp + src_drv)
|
||||
CPPPATH = [GetCurrentDir()]
|
||||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Return('objs')
|
||||
|
||||
Reference in New Issue
Block a user