| # 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("sysdev-bind") { |
| disable_autobind = true |
| } |
| |
| fuchsia_driver("sysdev-driver") { |
| output_name = "sysdev" |
| sources = [ "sysdev.cc" ] |
| deps = [ |
| ":sysdev-bind", |
| "//sdk/lib/fdio", |
| "//src/devices/lib/driver", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/zx", |
| ] |
| } |
| |
| fuchsia_driver_component("sysdev") { |
| visibility = [ ":*" ] |
| component_name = "sysdev" |
| deps = [ ":sysdev-driver" ] |
| info = "sysdev-info.json" |
| manifest = "meta/sysdev.cml" |
| } |