4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 20:57:12 +08:00

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

View File

@ -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]