From b498aa0da633e757e2ea70539192eb46d62f029f Mon Sep 17 00:00:00 2001 From: wuyangyong Date: Fri, 23 Dec 2011 03:27:46 +0000 Subject: use new srcremove. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1870 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lpc178x/drivers/SConscript | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bsp/lpc178x/drivers/SConscript b/bsp/lpc178x/drivers/SConscript index 3b1dfa33e5..80dff26c0f 100644 --- a/bsp/lpc178x/drivers/SConscript +++ b/bsp/lpc178x/drivers/SConscript @@ -9,13 +9,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: src_need_remove = ['emac.c'] # need remove file list. - src_tmp = copy.copy(src) - count = 0 - for i in range(0, len(src_tmp)): - s = os.path.basename(str(src_tmp[i])) - if s in src_need_remove: - src.pop(i-count) - count = count + 1 + SrcRemove(src, src_need_remove) CPPPATH = [cwd] -- cgit v1.3.1