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:
parent
9a89567e8f
commit
13d2e4a5ac
|
@ -4,10 +4,14 @@ cwd = GetCurrentDir()
|
|||
src = Glob('*.c')
|
||||
|
||||
# remove no need file.
|
||||
if GetDepend('RT_USING_LWIP') == False:
|
||||
SrcRemove(src, 'emac.c')
|
||||
if GetDepend('RT_USING_DFS') == False:
|
||||
SrcRemove(src, 'sd.c')
|
||||
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')
|
||||
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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue