• 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    "../tools/debug_tools/fsck_debug.c",
27    "compress.c",
28    "defrag.c",
29    "dict.c",
30    "dir.c",
31    "dump.c",
32    "fsck.c",
33    "main.c",
34    "mkquota.c",
35    "mount.c",
36    "node.c",
37    "quotaio.c",
38    "quotaio_tree.c",
39    "quotaio_v2.c",
40    "resize.c",
41    "segment.c",
42    "sload.c",
43    "xattr.c",
44  ]
45
46  include_dirs = [
47    ".",
48    "../tools/debug_tools",
49    "//third_party/f2fs-tools",
50    "//third_party/f2fs-tools/include",
51    "//third_party/f2fs-tools/lib",
52  ]
53
54  deps = [ "//third_party/f2fs-tools/lib:libf2fs" ]
55
56  public_external_deps = [
57    "e2fsprogs:e2fsdroid",
58    "e2fsprogs:libdacconfig",
59  ]
60
61  defines = [ "HAVE_CONFIG_H" ]
62
63  symlink_target_name = [
64    "resize.f2fs",
65    "sload.f2fs",
66  ]
67
68  install_enable = true
69  subsystem_name = "thirdparty"
70  part_name = "f2fs-tools"
71  install_images = [
72    "system",
73    "updater",
74  ]
75}
76