fix: 通过menuconfig关闭VFS选项后,代码编译无法通过

【背景】关闭VFS时,编译无法通过

【修改方案】
1,添加对fs依赖的模块中对fs开启情况的判断

【影响】
对现有的产品编译不会有影响。

re #I4X5DX
Signed-off-by: wangchen <wangchen64@huawei.com>
This commit is contained in:
wangchen
2022-03-17 08:48:43 +00:00
parent a42ba7aed6
commit 3ad47afec4
7 changed files with 145 additions and 12 deletions
+4 -1
View File
@@ -30,7 +30,6 @@
*/
#include "stdarg.h"
#include "vfs_operations.h"
#include "los_arch.h"
#include "los_config.h"
#include "los_debug.h"
@@ -88,6 +87,10 @@
#include "los_box.h"
#endif
#if (LOSCFG_FS_VFS == 1)
#include "vfs_operations.h"
#endif
/*****************************************************************************
Function : LOS_Reboot
Description : system exception, die in here, wait for watchdog.