diff options
| author | [email protected] <[email protected]> | 2011-11-22 22:28:51 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-11-22 22:28:51 +0000 |
| commit | 8b091fc74a3a1cae4acbf888b3f085147f225d8b (patch) | |
| tree | ae37487d743a328e94cd6e82ffba712c3fc898e8 | |
| parent | 336a94a15eb4ae1247e9b567915b9648a8f2b0b4 (diff) | |
add drivers directory.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1797 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | components/drivers/SConscript | 14 | ||||
| -rw-r--r-- | components/drivers/usb/SConscript (renamed from components/usb/SConscript) | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/components/drivers/SConscript b/components/drivers/SConscript new file mode 100644 index 0000000000..1cb7618499 --- /dev/null +++ b/components/drivers/SConscript @@ -0,0 +1,14 @@ +# for module compiling
+import os
+from building import *
+
+cwd = GetCurrentDir()
+objs = []
+list = os.listdir(cwd)
+
+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')
diff --git a/components/usb/SConscript b/components/drivers/usb/SConscript index 5199a9bdd4..5a6486ef44 100644 --- a/components/usb/SConscript +++ b/components/drivers/usb/SConscript @@ -1,8 +1,9 @@ Import('RTT_ROOT')
from building import *
+cwd = GetCurrentDir()
src = Glob('*.c')
-CPPPATH = [RTT_ROOT + '/components/usb']
+CPPPATH = [cwd]
group = DefineGroup('USB', src, depend = ['RT_USING_USB_DEVICE'], CPPPATH = CPPPATH)
Return('group')
|
