diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/SConscript | 5 | ||||
| -rw-r--r-- | components/dfs/filesystems/elmfat/ffconf.h | 7 |
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.
|
