diff options
| author | bernard.xiong <[email protected]> | 2010-04-22 02:27:27 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-22 02:27:27 +0000 |
| commit | c988a222ed97c399dd83ec32f92ce4df294dbebb (patch) | |
| tree | 5fe3fab9428c242bc678c0781d77c3e4e901cabf /components | |
| parent | 38c432620f3c1df2e88dc892dbd24ef19a198bd2 (diff) | |
fix option check.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@664 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/SConscript | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript index 66186ac0be..d647c5f3d4 100644 --- a/components/dfs/SConscript +++ b/components/dfs/SConscript @@ -52,17 +52,16 @@ src_local = dfs # The set of source files associated with this SConscript file.
path = [RTT_ROOT + '/components/dfs', RTT_ROOT + '/components/dfs/include']
-if rtconfig.RT_USING_DFS_YAFFS2:
+if 'RT_USING_DFS_YAFFS2' in dir(rtconfig) and rtconfig.RT_USING_DFS_YAFFS2:
src_local = src_local + yaffs2_main + yaffs2_comm
path = path + [RTT_ROOT + '/components/dfs/filesystems/yaffs2', RTT_ROOT + '/components/dfs/filesystems/yaffs2/direct']
-if rtconfig.RT_DFS_ELM_USE_LFN:
+if 'RT_DFS_ELM_USE_LFN' in dir(rtconfig) and rtconfig.RT_DFS_ELM_USE_LFN:
elmfat += ['filesystems/elmfat/option/cc936.c']
-if rtconfig.RT_USING_DFS_ELMFAT:
+if 'RT_USING_DFS_ELMFAT' in dir(rtconfig) and rtconfig.RT_USING_DFS_ELMFAT:
src_local = src_local + elmfat
- # path = path + [RTT_ROOT + '/components/dfs/filesystems/elmfat']
-
+
# group definitions
group = {}
group['name'] = 'Filesystem'
|
