From 1f42e27ecee6024edf18b99f8e4f21e3bc47cab2 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Tue, 20 Apr 2010 01:09:07 +0000 Subject: [mini2440]use long filename feature git-svn-id: https://rt-thread.googlecode.com/svn/trunk@655 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/dfs/SConscript | 5 ++++- components/dfs/filesystems/elmfat/ffconf.h | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'components') 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. -- cgit v1.3.1