reconstruct USB host project directory

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2206 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc@gmail.com
2012-07-07 08:49:28 +00:00
parent 25268ad23d
commit 64c485f5fc
12 changed files with 24 additions and 705 deletions

View File

@@ -1,9 +1,14 @@
Import('RTT_ROOT')
# for module compiling
import os
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = ['RT_USING_USB_DEVICE'], CPPPATH = CPPPATH)
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
Return('group')
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
Return('objs')