mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
af1c3576a8
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
49 lines
1.0 KiB
Plaintext
49 lines
1.0 KiB
Plaintext
# Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
|
|
import("//build/ohos.gni")
|
|
|
|
config("f2fs-defaults") {
|
|
cflags = [
|
|
"-Wno-pointer-sign",
|
|
"-Wno-unused-variable",
|
|
"-Wno-string-plus-int",
|
|
"-Wno-error=format",
|
|
]
|
|
}
|
|
|
|
###################################################
|
|
##Build mkfs.f2fs
|
|
ohos_executable("mkfs.f2fs") {
|
|
configs = [ ":f2fs-defaults" ]
|
|
sources = [
|
|
"f2fs_format.c",
|
|
"f2fs_format_main.c",
|
|
"f2fs_format_utils.c",
|
|
]
|
|
|
|
include_dirs = [
|
|
".",
|
|
"//third_party/f2fs-tools",
|
|
"//third_party/f2fs-tools/include",
|
|
"//third_party/f2fs-tools/lib",
|
|
]
|
|
|
|
deps = [ "//third_party/f2fs-tools/lib:libf2fs" ]
|
|
|
|
public_external_deps = [ "e2fsprogs:libext2_uuid" ]
|
|
|
|
defines = [ "HAVE_CONFIG_H" ]
|
|
|
|
install_enable = true
|
|
subsystem_name = "thirdparty"
|
|
part_name = "f2fs-tools"
|
|
install_images = [
|
|
"system",
|
|
"updater",
|
|
]
|
|
}
|