summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-04-20 01:09:07 +0000
committerqiuyiuestc <[email protected]>2010-04-20 01:09:07 +0000
commit1f42e27ecee6024edf18b99f8e4f21e3bc47cab2 (patch)
tree385933f5897442a8a1e616ff4b63a00bff8c0b47 /components/dfs
parent005d4141d992c845c9fbec791f131000c46d725f (diff)
[mini2440]use long filename feature
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@655 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/SConscript5
-rw-r--r--components/dfs/filesystems/elmfat/ffconf.h7
2 files changed, 10 insertions, 2 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript
index d8511cd7f7..66186ac0be 100644
--- a/components/dfs/SConscript
+++ b/components/dfs/SConscript
@@ -56,10 +56,13 @@ if 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:
+ elmfat += ['filesystems/elmfat/option/cc936.c']
+
if rtconfig.RT_USING_DFS_ELMFAT:
src_local = src_local + elmfat
# path = path + [RTT_ROOT + '/components/dfs/filesystems/elmfat']
-
+
# group definitions
group = {}
group['name'] = 'Filesystem'
diff --git a/components/dfs/filesystems/elmfat/ffconf.h b/components/dfs/filesystems/elmfat/ffconf.h
index 87494d075e..7227b81c2e 100644
--- a/components/dfs/filesystems/elmfat/ffconf.h
+++ b/components/dfs/filesystems/elmfat/ffconf.h
@@ -84,9 +84,14 @@
/ 1 - ASCII only (Valid for non LFN cfg.)
*/
-
+#ifdef RT_DFS_ELM_USE_LFN
+#define _USE_LFN RT_DFS_ELM_USE_LFN
+#define _MAX_LFN RT_DFS_ELM_MAX_LFN
+#else
#define _USE_LFN 0 /* 0, 1 or 2 */
#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
+#endif
+
/* The _USE_LFN option switches the LFN support.
/
/ 0: Disable LFN. _MAX_LFN and _LFN_UNICODE have no effect.