• 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/e2fsprogs/e2fsprogs/lib/uuid",
31    "//third_party/f2fs-tools",
32    "//third_party/f2fs-tools/include",
33    "//third_party/f2fs-tools/lib",
34  ]
35
36  deps = [
37    "//third_party/e2fsprogs:libext2_uuid",
38    "//third_party/f2fs-tools/lib:libf2fs",
39  ]
40
41  defines = [ "HAVE_CONFIG_H" ]
42
43  install_enable = true
44  subsystem_name = "thirdparty"
45  part_name = "f2fs-tools"
46  install_images = [
47    "system",
48    "updater",
49  ]
50}
51