summaryrefslogtreecommitdiff
path: root/components/dfs/SConscript
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2012-09-09 05:50:58 +0000
committerwuyangyong <[email protected]>2012-09-09 05:50:58 +0000
commit01aa24f2c5b11e3a3ad99ebbf9f99d471690c7c9 (patch)
tree2f68e2f7eff72931303bcea75680785fe84d8259 /components/dfs/SConscript
parent52fdfa1bf8b0527fbb52b92a41864a379e28e26b (diff)
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
Diffstat (limited to 'components/dfs/SConscript')
-rw-r--r--components/dfs/SConscript14
1 files changed, 13 insertions, 1 deletions
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']):