diff options
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/SConscript | 14 | ||||
| -rw-r--r-- | components/drivers/usb/SConscript | 9 |
2 files changed, 23 insertions, 0 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/drivers/usb/SConscript b/components/drivers/usb/SConscript new file mode 100644 index 0000000000..5a6486ef44 --- /dev/null +++ b/components/drivers/usb/SConscript @@ -0,0 +1,9 @@ +Import('RTT_ROOT')
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+CPPPATH = [cwd]
+group = DefineGroup('USB', src, depend = ['RT_USING_USB_DEVICE'], CPPPATH = CPPPATH)
+
+Return('group')
|
