| # Copyright 2025 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/drivers.gni") |
| |
| driver_bind_rules("bind") { |
| rules = "meta/toy_driver.bind" |
| bind_output = "toy_driver.bindbc" |
| deps = [ "//src/devices/bind/fuchsia.block.gpt" ] |
| } |
| |
| fuchsia_cc_driver("driver") { |
| testonly = true |
| output_name = "toy_driver" |
| sources = [ "driver.cc" ] |
| deps = [ |
| ":bind", |
| "//sdk/fidl/fuchsia.hardware.block.volume:fuchsia.hardware.block.volume_cpp", |
| "//sdk/fidl/fuchsia.storage.block:fuchsia.storage.block_cpp", |
| "//sdk/lib/driver/component/cpp", |
| "//src/devices/lib/driver:driver_runtime", |
| "//src/storage/block-relay/testing/fidl:fuchsia.testing.simple_cpp", |
| ] |
| } |
| |
| fuchsia_driver_component("toy-driver") { |
| testonly = true |
| manifest = "meta/toy_driver.cml" |
| component_name = "toy_driver" |
| deps = [ ":driver" ] |
| info = "meta/info.json" |
| } |