blob: 48db1b588a800a5780061e8d3f518007e54bf460 [file]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/sdk/sdk_host_tool.gni")
executable("fvm") {
sources = [ "main.cc" ]
deps = [
"//sdk/lib/fit",
"//src/storage/blobfs",
"//src/storage/fvm",
"//src/storage/minfs",
"//src/storage/volume_image/adapter:commands",
"//src/storage/volume_image/ftl:ftl-image",
"//src/storage/volume_image/ftl:ftl-raw-nand-image-writer",
"//src/storage/volume_image/ftl:raw-nand-image-utils",
"//src/storage/volume_image/fvm:fvm-sparse-image",
"//src/storage/volume_image/fvm:fvm-unpack",
"//src/storage/volume_image/utils:fd-io",
"//zircon/public/lib/fbl",
"//zircon/public/lib/safemath",
]
if (!is_fuchsia) {
deps += [ "//zircon/system/ulib/zx-panic-libc" ]
}
# TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
sdk_host_tool("fvm_sdk") {
category = "partner"
output_name = "fvm"
deps = [ ":fvm" ]
}