add third_party FatFs and fix BUILD.gn

Change-Id: I456530ca5282d6c4b0904d04ae0a0a5ff155391a
This commit is contained in:
Caoruihong
2021-04-22 17:06:41 +08:00
parent 23360db35c
commit ad1e09ff77
17 changed files with 28 additions and 33 deletions

View File

@@ -34,7 +34,6 @@ static_library("backtrace") {
"../../kernel/include",
"../../kernel/arch/include",
"../../utils",
"./",
"//third_party/bounds_checking_function/include",
"../../third_party/bounds_checking_function/include",
]
}

View File

@@ -30,8 +30,5 @@
static_library("cppsupport") {
sources = [ "los_cppsupport.c" ]
include_dirs = [
"../../utils",
"./",
]
include_dirs = [ "../../utils" ]
}

View File

@@ -34,7 +34,6 @@ static_library("cpup") {
"../../kernel/include",
"../../kernel/arch/include",
"../../utils",
"./",
"//third_party/bounds_checking_function/include",
"../../third_party/bounds_checking_function/include",
]
}

View File

@@ -36,7 +36,6 @@ static_library("exchook") {
"../../kernel/arch/include",
"../../kernel/include",
"../../utils",
"./",
"//third_party/bounds_checking_function/include",
"../../third_party/bounds_checking_function/include",
]
}

View File

@@ -29,6 +29,10 @@
static_library("fatfs") {
sources = [
"../../../third_party/FatFs/source/diskio.c",
"../../../third_party/FatFs/source/ff.c",
"../../../third_party/FatFs/source/ffsystem.c",
"../../../third_party/FatFs/source/ffunicode.c",
"fatfs.c",
"fs.c",
]
@@ -38,10 +42,8 @@ static_library("fatfs") {
"../../../kernel/include",
"../../../utils",
"../../../kal/cmsis",
"../../../kal",
"../../../kal/posix/include",
"./",
"//third_party/bounds_checking_function/include",
"//third_party/FatFs/source/",
"../../../third_party/bounds_checking_function/include",
"../../../third_party/FatFs/source/",
]
}

View File

@@ -41,7 +41,7 @@
#include "securec.h"
#include "los_compiler.h"
#include "los_debug.h"
#include "cmsis_os.h"
#include "cmsis_os2.h"
#define FS_SUCCESS 0
#define FS_FAILURE (-1)