2012-11-04 13:52:14 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
|
|
|
|
# remove no need file.
|
2012-11-16 15:15:03 +08:00
|
|
|
if GetDepend('RT_USING_RTGUI') == False:
|
|
|
|
SrcRemove(src, 'sdl_fb.c')
|
|
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_ELMFAT') == False:
|
|
|
|
SrcRemove(src, 'sd_sim.c')
|
2012-12-01 14:59:37 +08:00
|
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NAND') == False:
|
2012-11-16 15:15:03 +08:00
|
|
|
SrcRemove(src, 'nand_sim.c')
|
2012-12-01 14:59:37 +08:00
|
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NOR') == False:
|
2012-11-16 15:15:03 +08:00
|
|
|
SrcRemove(src, 'sst25vfxx_mtd_sim.c')
|
2012-11-04 13:52:14 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|