2015-04-03 22:26:18 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2015-05-21 17:06:05 +08:00
|
|
|
|
2015-04-03 22:26:18 +08:00
|
|
|
src = Glob('*.c')
|
2015-05-21 17:06:05 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-04-03 22:26:18 +08:00
|
|
|
CPPPATH = [cwd, cwd + '/src/inc']
|
|
|
|
|
2015-05-21 17:06:05 +08:00
|
|
|
group = DefineGroup('Filesystem', src , depend = ['RT_USING_DFS', 'RT_USING_DFS_UFFS'], CPPPATH = CPPPATH)
|
2015-04-03 22:26:18 +08:00
|
|
|
|
|
|
|
Return('group')
|