• 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  ]
16}
17
18###################################################
19##Build mkfs.f2fs
20ohos_executable("mkfs.f2fs") {
21  configs = [ ":f2fs-defaults" ]
22  sources = [
23    "f2fs_format.c",
24    "f2fs_format_main.c",
25    "f2fs_format_utils.c",
26  ]
27
28  include_dirs = [
29    ".",
30    "//third_party/f2fs-tools",
31    "//third_party/f2fs-tools/include",
32    "//third_party/f2fs-tools/lib",
33  ]
34
35  deps = [ "//third_party/f2fs-tools/lib:libf2fs" ]
36
37  public_external_deps = [ "e2fsprogs:libext2_uuid" ]
38
39  defines = [ "HAVE_CONFIG_H" ]
40
41  install_enable = true
42  subsystem_name = "thirdparty"
43  part_name = "f2fs-tools"
44  install_images = [
45    "system",
46    "updater",
47  ]
48}
49