2021-12-15 02:45:47 +00:00
|
|
|
# Copyright (c) 2021 Huawei Device Co., Ltd.
|
2022-01-12 09:11:18 +00:00
|
|
|
#
|
2021-12-20 13:44:20 +00:00
|
|
|
# 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.
|
2021-12-15 02:45:47 +00:00
|
|
|
|
|
|
|
import("//build/ohos.gni")
|
2023-06-01 12:39:25 +00:00
|
|
|
|
2022-01-12 09:11:18 +00:00
|
|
|
config("f2fs-defaults") {
|
|
|
|
cflags = [
|
|
|
|
"-Wno-pointer-sign",
|
|
|
|
"-Wno-unused-variable",
|
|
|
|
"-Wno-string-plus-int",
|
|
|
|
"-Wno-error=format",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
##Build mkfs.f2fs
|
|
|
|
ohos_executable("mkfs.f2fs") {
|
2022-01-12 09:11:18 +00:00
|
|
|
configs = [ ":f2fs-defaults" ]
|
2021-12-15 02:45:47 +00:00
|
|
|
sources = [
|
2022-01-12 09:11:18 +00:00
|
|
|
"f2fs_format.c",
|
|
|
|
"f2fs_format_main.c",
|
|
|
|
"f2fs_format_utils.c",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
include_dirs = [
|
|
|
|
".",
|
2023-05-20 08:59:34 +00:00
|
|
|
"//third_party/e2fsprogs/e2fsprogs/lib/uuid",
|
2022-01-12 09:11:18 +00:00
|
|
|
"//third_party/f2fs-tools",
|
|
|
|
"//third_party/f2fs-tools/include",
|
|
|
|
"//third_party/f2fs-tools/lib",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
2023-06-03 09:03:53 +00:00
|
|
|
"//third_party/e2fsprogs:libext2_uuid",
|
2022-01-12 09:11:18 +00:00
|
|
|
"//third_party/f2fs-tools/lib:libf2fs",
|
2021-12-15 02:45:47 +00:00
|
|
|
]
|
|
|
|
|
2022-01-12 09:11:18 +00:00
|
|
|
defines = [ "HAVE_CONFIG_H" ]
|
|
|
|
|
2021-12-15 02:45:47 +00:00
|
|
|
install_enable = true
|
2022-08-18 07:57:49 +00:00
|
|
|
subsystem_name = "thirdparty"
|
2023-06-14 09:52:44 +00:00
|
|
|
part_name = "f2fs-tools"
|
2022-08-15 12:51:36 +00:00
|
|
|
install_images = [
|
|
|
|
"system",
|
|
|
|
"updater",
|
|
|
|
]
|
2021-12-15 02:45:47 +00:00
|
|
|
}
|