blob: 50761a8a56482937cd47958ba94ed1de8b31b4f1 [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.
import("//build/zircon/zx_library.gni")
# MTD Redundant Storage (mtd-rs)
#
# This library requires an environment with mtd/mtd-user.h and MTD support.
zx_library("nand-redundant-storage") {
sdk = "source"
sdk_headers = [
"lib/nand-redundant-storage/nand-redundant-storage-interface.h",
"lib/nand-redundant-storage/nand-redundant-storage.h",
]
if (current_os == "linux") {
sources = [
"file-nand-rs.cc",
"nand-rs-header.cc",
"nand-rs.cc",
]
}
public_deps = [ "//zircon/system/ulib/mtd" ]
deps = [
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/mtd",
"//zircon/third_party/ulib/cksum",
]
}
group("tests") {
testonly = true
deps = [ "test:tests" ]
}