From 01aa24f2c5b11e3a3ad99ebbf9f99d471690c7c9 Mon Sep 17 00:00:00 2001 From: wuyangyong Date: Sun, 9 Sep 2012 05:50:58 +0000 Subject: update elmfat: add RT_DFS_ELM_CODE_PAGE define. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2285 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/dfs/SConscript | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'components/dfs/SConscript') diff --git a/components/dfs/SConscript b/components/dfs/SConscript index 9d51586886..21c91a4aee 100644 --- a/components/dfs/SConscript +++ b/components/dfs/SConscript @@ -152,7 +152,19 @@ if GetDepend('RT_USING_DFS_YAFFS2'): if GetDepend('RT_USING_DFS_ELMFAT'): if GetDepend('RT_DFS_ELM_USE_LFN'): - elmfat += ['filesystems/elmfat/option/cc936.c'] + if GetDepend('RT_DFS_ELM_CODE_PAGE_FILE'): + elmfat += ['filesystems/elmfat/option/ccfile.c'] + else: + if GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 932: + elmfat += ['filesystems/elmfat/option/cc932.c'] + elif GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 936: + elmfat += ['filesystems/elmfat/option/cc936.c'] + elif GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 949: + elmfat += ['filesystems/elmfat/option/cc949.c'] + elif GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 950: + elmfat += ['filesystems/elmfat/option/cc950.c'] + else: + elmfat += ['filesystems/elmfat/option/ccsbcs.c'] src_local = src_local + elmfat if GetDepend(['RT_USING_DFS_NFS', 'RT_USING_LWIP']): -- cgit v1.3.1