mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-27 04:00:57 +00:00
f8224a8bdc
Signed-off-by: 张文迪 <zhangwendi3@huawei.com>
71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
# Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
|
|
import("//build/ohos.gni")
|
|
config("f2fs-defaults") {
|
|
cflags = [
|
|
"-Wno-pointer-sign",
|
|
"-Wno-unused-variable",
|
|
"-Wno-string-plus-int",
|
|
"-Wno-error=format",
|
|
"-Wno-unused-function",
|
|
"-Wno-unused-parameter",
|
|
"-Wno-incompatible-pointer-types",
|
|
]
|
|
}
|
|
|
|
###################################################
|
|
##Build fsck
|
|
ohos_executable("fsck.f2fs") {
|
|
configs = [ ":f2fs-defaults" ]
|
|
sources = [
|
|
"defrag.c",
|
|
"dict.c",
|
|
"dir.c",
|
|
"dump.c",
|
|
"fsck.c",
|
|
"main.c",
|
|
"mkquota.c",
|
|
"mount.c",
|
|
"node.c",
|
|
"quotaio.c",
|
|
"quotaio_tree.c",
|
|
"quotaio_v2.c",
|
|
"resize.c",
|
|
"segment.c",
|
|
"sload.c",
|
|
"xattr.c",
|
|
]
|
|
|
|
include_dirs = [
|
|
".",
|
|
"//third_party/f2fs-tools",
|
|
"//third_party/f2fs-tools/include",
|
|
"//third_party/f2fs-tools/lib",
|
|
"//third_party/e2fsprogs/contrib/android",
|
|
]
|
|
|
|
deps = [
|
|
"//third_party/e2fsprogs/contrib/android:libdacconfig",
|
|
"//third_party/f2fs-tools/lib:libf2fs",
|
|
]
|
|
|
|
defines = [ "HAVE_CONFIG_H" ]
|
|
|
|
symlink_target_name = [
|
|
"resize.f2fs",
|
|
"sload.f2fs",
|
|
]
|
|
|
|
install_enable = true
|
|
subsystem_name = "thirdparty"
|
|
part_name = "f2fs_tools"
|
|
install_images = [
|
|
"system",
|
|
"updater",
|
|
]
|
|
}
|