use new srcremove.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1870 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
wuyangyong 2011-12-23 03:27:46 +00:00
parent 646c1443db
commit b498aa0da6
1 changed files with 1 additions and 7 deletions

View File

@ -9,13 +9,7 @@ src = Glob('*.c')
# remove no need file. # remove no need file.
if GetDepend('RT_USING_LWIP') == False: if GetDepend('RT_USING_LWIP') == False:
src_need_remove = ['emac.c'] # need remove file list. src_need_remove = ['emac.c'] # need remove file list.
src_tmp = copy.copy(src) SrcRemove(src, src_need_remove)
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
CPPPATH = [cwd] CPPPATH = [cwd]