[uffs] fix the SConscript file of uffs.
Signed-off-by: pangwei <271372443@qq.com>
This commit is contained in:
parent
d3a031c084
commit
570e9470b1
@ -133,7 +133,7 @@
|
|||||||
/* #define RT_USING_DFS_NFS */
|
/* #define RT_USING_DFS_NFS */
|
||||||
|
|
||||||
/* DFS: UFFS nand file system options */
|
/* DFS: UFFS nand file system options */
|
||||||
//#define RT_USING_DFS_UFFS
|
#define RT_USING_DFS_UFFS
|
||||||
/* configuration for uffs, more to see dfs_uffs.h and uffs_config.h */
|
/* configuration for uffs, more to see dfs_uffs.h and uffs_config.h */
|
||||||
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_HW_AUTO
|
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_HW_AUTO
|
||||||
/* enable this ,you need provide a mark_badblock/check_block function */
|
/* enable this ,you need provide a mark_badblock/check_block function */
|
||||||
|
@ -3,9 +3,36 @@
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
|
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
|
uffs = Split('''
|
||||||
|
src/uffs/uffs_badblock.c
|
||||||
|
src/uffs/uffs_blockinfo.c
|
||||||
|
src/uffs/uffs_buf.c
|
||||||
|
src/uffs/uffs_debug.c
|
||||||
|
src/uffs/uffs_device.c
|
||||||
|
src/uffs/uffs_ecc.c
|
||||||
|
src/uffs/uffs_crc.c
|
||||||
|
src/uffs/uffs_fd.c
|
||||||
|
src/uffs/uffs_find.c
|
||||||
|
src/uffs/uffs_flash.c
|
||||||
|
src/uffs/uffs_fs.c
|
||||||
|
src/uffs/uffs_init.c
|
||||||
|
src/uffs/uffs_mem.c
|
||||||
|
src/uffs/uffs_mtb.c
|
||||||
|
src/uffs/uffs_pool.c
|
||||||
|
src/uffs/uffs_public.c
|
||||||
|
src/uffs/uffs_tree.c
|
||||||
|
src/uffs/uffs_utils.c
|
||||||
|
src/uffs/uffs_version.c
|
||||||
|
|
||||||
|
''')
|
||||||
|
|
||||||
|
src = src + uffs
|
||||||
|
|
||||||
CPPPATH = [cwd, cwd + '/src/inc']
|
CPPPATH = [cwd, cwd + '/src/inc']
|
||||||
|
|
||||||
group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS', 'RT_USING_DFS_UFFS'], CPPPATH = CPPPATH)
|
group = DefineGroup('Filesystem', src , depend = ['RT_USING_DFS', 'RT_USING_DFS_UFFS'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user