提交 c9f2b730 编写于 作者: O openharmony_ci 提交者: Gitee

!97 解决kernel/liteos_a仓下关闭fat,编译不过的问题

Merge pull request !97 from li_zan/master
...@@ -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
...@@ -58,17 +57,18 @@ ...@@ -58,17 +57,18 @@
#define STORAGE_SIZE 0xa00000 #define STORAGE_SIZE 0xa00000
#endif #endif
#ifdef LOSCFG_STORAGE_EMMC
#include "ff.h"
#define STORAGE_SIZE 0x3200000
STATIC los_disk *g_emmcDisk = NULL;
#endif
#ifdef __cplusplus #ifdef __cplusplus
#if __cplusplus #if __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __cplusplus */ #endif /* __cplusplus */
#ifdef LOSCFG_STORAGE_EMMC
#define STORAGE_SIZE 0x3200000
STATIC los_disk *g_emmcDisk = NULL;
#endif
#ifndef LOSCFG_SECURITY_BOOT #ifndef LOSCFG_SECURITY_BOOT
STATIC INT32 g_alignSize = 0; STATIC INT32 g_alignSize = 0;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册