提交 195172e6 编写于 作者: L li_zan

change config for fs

上级 51e587ca
...@@ -96,6 +96,7 @@ source "../../kernel/liteos_a/fs/jffs2/Kconfig" ...@@ -96,6 +96,7 @@ source "../../kernel/liteos_a/fs/jffs2/Kconfig"
config ENABLE_READ_BUFFER config ENABLE_READ_BUFFER
bool "Enable read buffer Option" bool "Enable read buffer Option"
default n default n
depends on FS_VFS
help help
Answer Y to add enable read buffer Option. Answer Y to add enable read buffer Option.
......
...@@ -39,5 +39,5 @@ config FS_FAT_VOLUMES ...@@ -39,5 +39,5 @@ config FS_FAT_VOLUMES
config FS_FAT_DISK config FS_FAT_DISK
bool "Enable partinfo for storage device" bool "Enable partinfo for storage device"
depends on FS_FAT || DRIVERS_MMC || DRIVERS_USB depends on FS_VFS && (FS_FAT || DRIVERS_MMC || DRIVERS_USB)
default y default y
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
#ifndef _DISK_H #ifndef _DISK_H
#define _DISK_H #define _DISK_H
#include "fs/fs.h"
#include "los_base.h" #include "los_base.h"
#include "pthread.h"
#ifdef LOSCFG_FS_FAT_CACHE #ifdef LOSCFG_FS_FAT_CACHE
#include "bcache.h" #include "bcache.h"
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#ifdef LOSCFG_DRIVERS_MMC #ifdef LOSCFG_DRIVERS_MMC
#include "mmc/block.h" #include "mmc/block.h"
#include "disk.h" #include "disk.h"
#include "ff.h"
#endif #endif
#include "sys/mount.h" #include "sys/mount.h"
#ifdef LOSCFG_PLATFORM_ROOTFS #ifdef LOSCFG_PLATFORM_ROOTFS
...@@ -65,6 +64,7 @@ extern "C" { ...@@ -65,6 +64,7 @@ extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
#ifdef LOSCFG_STORAGE_EMMC #ifdef LOSCFG_STORAGE_EMMC
#include "ff.h"
#define STORAGE_SIZE 0x3200000 #define STORAGE_SIZE 0x3200000
STATIC los_disk *g_emmcDisk = NULL; STATIC los_disk *g_emmcDisk = NULL;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册