update bsp/simulator/SConscript to auto remove drivers according to rtconfig.h

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2420 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
goprife@gmail.com 2012-11-16 07:15:03 +00:00
parent 9a89567e8f
commit 13d2e4a5ac
1 changed files with 8 additions and 4 deletions

View File

@ -4,10 +4,14 @@ cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
# remove no need file. # remove no need file.
if GetDepend('RT_USING_LWIP') == False: if GetDepend('RT_USING_RTGUI') == False:
SrcRemove(src, 'emac.c') SrcRemove(src, 'sdl_fb.c')
if GetDepend('RT_USING_DFS') == False: if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_ELMFAT') == False:
SrcRemove(src, 'sd.c') SrcRemove(src, 'sd_sim.c')
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_UFFS') == False:
SrcRemove(src, 'nand_sim.c')
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_JFFS2') == False:
SrcRemove(src, 'sst25vfxx_mtd_sim.c')
CPPPATH = [cwd] CPPPATH = [cwd]