• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License version 2 as
5# published by the Free Software Foundation.
6
7import("//build/ohos.gni")
8
9config("f2fs-defaults") {
10  cflags = [
11    "-Wno-pointer-sign",
12    "-Wno-unused-variable",
13    "-Wno-string-plus-int",
14    "-Wno-error=format",
15    "-Wno-unused-function",
16    "-Wno-unused-parameter",
17    "-Wno-incompatible-pointer-types",
18  ]
19}
20
21###################################################
22##Build fsck
23ohos_executable("fsck.f2fs") {
24  configs = [ ":f2fs-defaults" ]
25  sources = [
26    "compress.c",
27    "defrag.c",
28    "dict.c",
29    "dir.c",
30    "dump.c",
31    "fsck.c",
32    "main.c",
33    "mkquota.c",
34    "mount.c",
35    "node.c",
36    "quotaio.c",
37    "quotaio_tree.c",
38    "quotaio_v2.c",
39    "resize.c",
40    "segment.c",
41    "sload.c",
42    "xattr.c",
43  ]
44
45  include_dirs = [
46    ".",
47    "//third_party/f2fs-tools",
48    "//third_party/f2fs-tools/include",
49    "//third_party/f2fs-tools/lib",
50    "//third_party/e2fsprogs/e2fsprogs/contrib/android",
51  ]
52
53  deps = [
54    "//third_party/e2fsprogs:libdacconfig",
55    "//third_party/f2fs-tools/lib:libf2fs",
56  ]
57
58  defines = [ "HAVE_CONFIG_H" ]
59
60  symlink_target_name = [
61    "resize.f2fs",
62    "sload.f2fs",
63  ]
64
65  install_enable = true
66  subsystem_name = "thirdparty"
67  part_name = "f2fs-tools"
68  install_images = [
69    "system",
70    "updater",
71  ]
72}
73