diff --git a/bsp/simulator/drivers/SConscript b/bsp/simulator/drivers/SConscript index 6a3cfe2b47..e97a5018a5 100644 --- a/bsp/simulator/drivers/SConscript +++ b/bsp/simulator/drivers/SConscript @@ -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]