blob: 582a140ef120f265b4fedba8c936216d201abde1 [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/bind/bind.gni")
import("//build/drivers.gni")
driver_bind_rules("nvme_bind") {
rules = "nvme.bind"
header_output = "nvme_bind.h"
tests = "bind_tests.json"
deps = [
"//src/devices/bind/fuchsia.driver.framework",
"//src/devices/bind/fuchsia.pci",
"//src/devices/bind/fuchsia.pci.massstorage",
]
}
group("tests") {
testonly = true
deps = [ ":nvme_bind_test" ]
}
fuchsia_driver("nvme-driver") {
output_name = "nvme"
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
sources = [ "nvme.c" ]
deps = [
":nvme_bind",
"//sdk/banjo/fuchsia.hardware.block:fuchsia.hardware.block_banjo_cpp",
"//src/devices/lib/driver",
"//src/devices/lib/mmio",
"//src/devices/pci/lib/device-protocol-pci",
"//src/devices/pci/lib/fuchsia.hardware.pci:fuchsia.hardware.pci_banjo_cpp",
"//src/devices/pci/lib/pci",
"//src/lib/ddk",
"//zircon/system/ulib/sync",
]
# TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_driver_component("nvme") {
component_name = "nvme"
deps = [ ":nvme-driver" ]
info = "nvme-info.json"
colocate = true
}