diff --git a/bsp/lm4f232/drivers/SConscript b/bsp/lm4f232/drivers/SConscript index 5a977fd8c5..5cf28890ca 100644 --- a/bsp/lm4f232/drivers/SConscript +++ b/bsp/lm4f232/drivers/SConscript @@ -9,12 +9,10 @@ CPPPATH = [cwd] # remove no need file. if GetDepend('RT_USING_LWIP') == False: - src_need_remove = ['luminaryif.c'] # need remove file list. - src = SrcRemove(src, src_need_remove) + SrcRemove(src, ['luminaryif.c']) # need remove file list. if GetDepend('RT_USING_DFS') == False: - src_need_remove = ['sdcard.c'] # need remove file list. - src = SrcRemove(src, src_need_remove) + SrcRemove(src, ['sdcard.c']) # need remove file list. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)