From dda0d6ed0c21c2586d69e1cc845c21b94904bad0 Mon Sep 17 00:00:00 2001 From: samuel_yuan Date: Tue, 22 Feb 2022 14:39:55 +0800 Subject: [PATCH] update FatFs build files for riscv Signed-off-by: samuel_yuan --- BUILD.gn | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 BUILD.gn diff --git a/BUILD.gn b/BUILD.gn new file mode 100755 index 0000000..e7f3669 --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,24 @@ +if (defined(ohos_lite)) { + import("//build/lite/config/component/lite_component.gni") +} else { + import("//build/ohos.gni") +} +config("FatFs_config") { + include_dirs = [ "source" ] +} + +if (defined(ohos_lite)) { + lite_library("FatFs") { + target_type = "shared_library" + sources = [ + "source/diskio.c", + "source/ff.c", + "source/ffsystem.c", + "source/ffunicode.c", + ] + public_configs = [ ":FatFs_config" ] + } +} else { + ohos_static_library("FatFs_static") { + } +} -- Gitee