add third_party FatFs and fix BUILD.gn
Change-Id: I456530ca5282d6c4b0904d04ae0a0a5ff155391a
This commit is contained in:
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -30,8 +30,5 @@
|
||||
static_library("cppsupport") {
|
||||
sources = [ "los_cppsupport.c" ]
|
||||
|
||||
include_dirs = [
|
||||
"../../utils",
|
||||
"./",
|
||||
]
|
||||
include_dirs = [ "../../utils" ]
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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/",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user