diff options
Diffstat (limited to 'bsp/lpc2478/drivers/SConscript')
| -rw-r--r-- | bsp/lpc2478/drivers/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bsp/lpc2478/drivers/SConscript b/bsp/lpc2478/drivers/SConscript new file mode 100644 index 0000000000..245bc46b05 --- /dev/null +++ b/bsp/lpc2478/drivers/SConscript @@ -0,0 +1,22 @@ +import copy
+Import('RTT_ROOT')
+Import('rtconfig')
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+
+# remove no need file.
+if GetDepend('RT_USING_LWIP') == False:
+ src_need_remove = ['dm9000.c'] # need remove file list.
+ SrcRemove(src, src_need_remove)
+
+if GetDepend('RT_USING_DFS') == False:
+ src_need_remove = ['sd.c'] # need remove file list.
+ SrcRemove(src, src_need_remove)
+
+CPPPATH = [cwd]
+
+group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')
|
