summaryrefslogtreecommitdiff
path: root/bsp/lpc178x/drivers
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2011-12-23 03:27:46 +0000
committerwuyangyong <[email protected]>2011-12-23 03:27:46 +0000
commitb498aa0da633e757e2ea70539192eb46d62f029f (patch)
tree89b8d78226a0346cbdd22e647c432841c2a2ce94 /bsp/lpc178x/drivers
parent646c1443db6f82d59ba1b4ba137d9049c60a5364 (diff)
use new srcremove.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1870 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lpc178x/drivers')
-rw-r--r--bsp/lpc178x/drivers/SConscript8
1 files changed, 1 insertions, 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]