blob: 26e2843decb290444492e9a032e6b20d58e9d65b [file] [log] [blame]
# 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.
group("disk-pave") {
deps = [
":install-disk-image",
]
}
executable("install-disk-image") {
sources = [
"disk-pave.cpp",
"pave-lib.cpp",
]
deps = [
":pave-utils",
"$zx/system/fidl/fuchsia-device:c",
"$zx/system/fidl/fuchsia-hardware-block:c",
"$zx/system/fidl/fuchsia-hardware-skipblock:c",
"$zx/system/ulib/block-client",
"$zx/system/ulib/crypto",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fs-management",
"$zx/system/ulib/fvm",
"$zx/system/ulib/fzl",
"$zx/system/ulib/gpt",
"$zx/system/ulib/ramdevice-client:static",
"$zx/system/ulib/zxcrypt",
"$zx/third_party/ulib/cksum",
"$zx/third_party/ulib/lz4",
]
}
source_set("pave-utils") {
sources = [
"device-partitioner.cpp",
"pave-utils.cpp",
]
deps = [
"$zx/system/fidl/fuchsia-device:c",
"$zx/system/fidl/fuchsia-hardware-block:c",
"$zx/system/fidl/fuchsia-hardware-nand:c",
"$zx/system/fidl/fuchsia-hardware-skipblock:c",
"$zx/system/ulib/block-client",
"$zx/system/ulib/chromeos-disk-setup",
"$zx/system/ulib/ddk",
"$zx/system/ulib/digest",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fdio",
"$zx/system/ulib/fs",
"$zx/system/ulib/fs-management",
"$zx/system/ulib/fzl",
"$zx/system/ulib/gpt",
"$zx/system/ulib/sync",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
"$zx/system/ulib/zxcpp",
"$zx/system/ulib/zxcrypt",
"$zx/third_party/ulib/uboringssl",
]
}
test("install-disk-image-test") {
output_name = "install-disk-image-test"
sources = [
"test/device-partitioner-test.cpp",
]
include_dirs = [ "." ]
deps = [
":pave-utils",
"$zx/system/fidl/fuchsia-device:c",
"$zx/system/fidl/fuchsia-hardware-nand:c",
"$zx/system/ulib/devmgr-integration-test",
"$zx/system/ulib/devmgr-launcher",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fs-management",
"$zx/system/ulib/fzl",
"$zx/system/ulib/gpt",
"$zx/system/ulib/ramdevice-client",
"$zx/system/ulib/unittest",
]
}