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