change config for fs

This commit is contained in:
li_zan 2021-03-26 17:00:15 +08:00
parent 51e587ca44
commit 195172e655
4 changed files with 5 additions and 2 deletions

View File

@ -96,6 +96,7 @@ source "../../kernel/liteos_a/fs/jffs2/Kconfig"
config ENABLE_READ_BUFFER
bool "Enable read buffer Option"
default n
depends on FS_VFS
help
Answer Y to add enable read buffer Option.

View File

@ -39,5 +39,5 @@ config FS_FAT_VOLUMES
config FS_FAT_DISK
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

View File

@ -37,7 +37,9 @@
#ifndef _DISK_H
#define _DISK_H
#include "fs/fs.h"
#include "los_base.h"
#include "pthread.h"
#ifdef LOSCFG_FS_FAT_CACHE
#include "bcache.h"

View File

@ -37,7 +37,6 @@
#ifdef LOSCFG_DRIVERS_MMC
#include "mmc/block.h"
#include "disk.h"
#include "ff.h"
#endif
#include "sys/mount.h"
#ifdef LOSCFG_PLATFORM_ROOTFS
@ -65,6 +64,7 @@ extern "C" {
#endif /* __cplusplus */
#ifdef LOSCFG_STORAGE_EMMC
#include "ff.h"
#define STORAGE_SIZE 0x3200000
STATIC los_disk *g_emmcDisk = NULL;
#endif