diff --git a/bsp/mini2440/application.c b/bsp/mini2440/application.c index b95e602eb42b98f1f8d146ea6cb746cabd26edfa..5c6ddbea7f55ed306babe9151b331efa1e67e5f8 100644 --- a/bsp/mini2440/application.c +++ b/bsp/mini2440/application.c @@ -31,9 +31,11 @@ #include /* dfs Filesystem APIs */ #include +#ifdef RT_USING_DFS_UFFS /* dfs filesystem:UFFS filesystem init */ #include #endif +#endif #ifdef RT_USING_LWIP #include diff --git a/bsp/mini2440/rtconfig.h b/bsp/mini2440/rtconfig.h index 71e55f074dbf02df973a95310655fa2bb15d24b5..21266626ae7cf1ef2f05ee8310da45d4ef7a90fd 100644 --- a/bsp/mini2440/rtconfig.h +++ b/bsp/mini2440/rtconfig.h @@ -96,7 +96,7 @@ /* the max number of file length */ #define RT_DFS_ELM_MAX_LFN 32 /* #define RT_USING_DFS_YAFFS2 */ -#define RT_USING_UFFS +/* #define RT_USING_DFS_UFFS */ #define RT_USING_DFS_NFS #define RT_NFS_HOST_EXPORT "192.168.1.5:/" diff --git a/components/dfs/SConscript b/components/dfs/SConscript index 2914dbaf745cc239b1c723e4fedca569a1e6d739..63be90e533930aaabfb56f2a23721ede9208aa08 100644 --- a/components/dfs/SConscript +++ b/components/dfs/SConscript @@ -117,7 +117,7 @@ if GetDepend('RT_USING_DFS_DEVFS'): src_local = src_local + devfs path = path + [RTT_ROOT + '/components/dfs/filesystems/devfs'] -if GetDepend('RT_USING_DFS_DEVFS'): +if GetDepend('RT_USING_DFS_UFFS'): src_local = src_local + uffs path = path + [RTT_ROOT + '/components/dfs/filesystems/uffs/src/inc', RTT_ROOT + '/components/dfs/filesystems/uffs', RTT_ROOT + '/components/dfs/filesystems/uffs/flash']