diff options
| author | [email protected] <[email protected]> | 2012-05-30 13:39:39 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-05-30 13:39:39 +0000 |
| commit | 9b2ea9bc0f07d760111d2d8e88b2b048edf31dde (patch) | |
| tree | 59cca0dec7f4763d9cd7c152e3c485cec07e24c5 /components/drivers/mtd | |
| parent | a512661b9f20894d9aee3a292820657c4f837531 (diff) | |
1. change mtd to mtd_nor, 2. update jffs2
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2140 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/mtd')
| -rw-r--r-- | components/drivers/mtd/SConscript | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/components/drivers/mtd/SConscript b/components/drivers/mtd/SConscript index e456017a6e..d798f8d63b 100644 --- a/components/drivers/mtd/SConscript +++ b/components/drivers/mtd/SConscript @@ -1,8 +1,20 @@ +Import('RTT_ROOT')
+Import('rtconfig')
from building import *
-cwd = GetCurrentDir()
-src = Glob('*.c')
+cwd = GetCurrentDir()
+src = []
+
+mtd_nor = ['mtd_nor.c']
+
+mtd_nand = ['mtd_nand.c']
+
+if GetDepend(['RT_USING_MTD_NOR']):
+ src = src + mtd_nor
+if GetDepend(['RT_USING_MTD_NAND']):
+ src = src + mtd_nand
+
CPPPATH = [cwd + '/../include']
-group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_MTD'], CPPPATH = CPPPATH)
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|
