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
This commit is contained in:
wuyangyong
2012-09-09 05:50:58 +00:00
parent 52fdfa1bf8
commit 01aa24f2c5
3 changed files with 81 additions and 2 deletions

View File

@@ -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']):