2021-12-15 02:45:47 +00:00
|
|
|
# Copyright (c) 2021 Huawei Device Co., Ltd.
|
2022-01-12 09:11:18 +00:00
|
|
|
#
|
2021-12-20 13:44:20 +00:00
|
|
|
# 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.
|
2021-12-15 02:45:47 +00:00
|
|
|
|
|
|
|
import("//build/ohos.gni")
|
2023-06-01 12:39:25 +00:00
|
|
|
|
2022-01-12 09:11:18 +00:00
|
|
|
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",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
##Build fsck
|
|
|
|
ohos_executable("fsck.f2fs") {
|
2022-01-12 09:11:18 +00:00
|
|
|
configs = [ ":f2fs-defaults" ]
|
2021-12-15 02:45:47 +00:00
|
|
|
sources = [
|
2024-03-18 03:14:08 +00:00
|
|
|
"../tools/debug_tools/fsck_debug.c",
|
2023-04-14 07:52:57 +00:00
|
|
|
"compress.c",
|
2022-01-12 09:11:18 +00:00
|
|
|
"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",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
include_dirs = [
|
|
|
|
".",
|
2024-03-18 03:14:08 +00:00
|
|
|
"../tools/debug_tools",
|
2022-01-12 09:11:18 +00:00
|
|
|
"//third_party/f2fs-tools",
|
|
|
|
"//third_party/f2fs-tools/include",
|
|
|
|
"//third_party/f2fs-tools/lib",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
|
2024-05-27 06:24:20 +00:00
|
|
|
deps = [ "//third_party/f2fs-tools/lib:libf2fs" ]
|
2021-12-15 02:45:47 +00:00
|
|
|
|
2024-05-28 12:34:11 +00:00
|
|
|
public_external_deps = [
|
|
|
|
"e2fsprogs:e2fsdroid",
|
|
|
|
"e2fsprogs:libdacconfig",
|
2024-05-28 08:30:24 +00:00
|
|
|
]
|
2024-05-27 05:51:10 +00:00
|
|
|
|
2022-01-12 09:11:18 +00:00
|
|
|
defines = [ "HAVE_CONFIG_H" ]
|
|
|
|
|
|
|
|
symlink_target_name = [
|
|
|
|
"resize.f2fs",
|
|
|
|
"sload.f2fs",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
install_enable = true
|
2022-08-18 07:57:49 +00:00
|
|
|
subsystem_name = "thirdparty"
|
2023-06-14 09:52:44 +00:00
|
|
|
part_name = "f2fs-tools"
|
2022-08-15 12:51:36 +00:00
|
|
|
install_images = [
|
|
|
|
"system",
|
|
|
|
"updater",
|
|
|
|
]
|
2021-12-15 02:45:47 +00:00
|
|
|
}
|