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") 8config("f2fs-defaults") { 9 cflags = [ 10 "-Wno-pointer-sign", 11 "-Wno-unused-variable", 12 "-Wno-string-plus-int", 13 "-Wno-error=format", 14 "-Wno-unused-function", 15 "-Wno-unused-parameter", 16 "-Wno-incompatible-pointer-types", 17 ] 18} 19 20################################################### 21##Build fsck 22ohos_executable("fsck.f2fs") { 23 configs = [ ":f2fs-defaults" ] 24 sources = [ 25 "defrag.c", 26 "dict.c", 27 "dir.c", 28 "dump.c", 29 "fsck.c", 30 "main.c", 31 "mkquota.c", 32 "mount.c", 33 "node.c", 34 "quotaio.c", 35 "quotaio_tree.c", 36 "quotaio_v2.c", 37 "resize.c", 38 "segment.c", 39 "sload.c", 40 "xattr.c", 41 ] 42 43 include_dirs = [ 44 ".", 45 "//third_party/f2fs-tools", 46 "//third_party/f2fs-tools/include", 47 "//third_party/f2fs-tools/lib", 48 "//third_party/e2fsprogs/contrib/android", 49 ] 50 51 deps = [ 52 "//third_party/e2fsprogs/contrib/android:libdacconfig", 53 "//third_party/f2fs-tools/lib:libf2fs", 54 ] 55 56 defines = [ "HAVE_CONFIG_H" ] 57 58 symlink_target_name = [ 59 "resize.f2fs", 60 "sload.f2fs", 61 ] 62 63 install_enable = true 64 subsystem_name = "thirdparty" 65 part_name = "f2fs_tools" 66 install_images = [ 67 "system", 68 "updater", 69 ] 70} 71