| # 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/config/fuchsia/rules.gni") |
| |
| bind_rules("ethernet_ax88772b_bind") { |
| rules = "ethernet_ax88772b.bind" |
| output = "ethernet_ax88772b-bind.h" |
| tests = "bind-tests.json" |
| deps = [ "//src/devices/bind/fuchsia.usb" ] |
| } |
| |
| driver_module("asix-88772b") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "asix-88772b.c" ] |
| deps = [ |
| ":ethernet_ax88772b_bind", |
| "//sdk/banjo/fuchsia.hardware.ethernet", |
| "//sdk/banjo/fuchsia.hardware.usb", |
| "//sdk/banjo/fuchsia.hardware.usb.composite", |
| "//sdk/banjo/fuchsia.hardware.usb.request", |
| "//src/devices/lib/driver", |
| "//src/devices/usb/lib/usb", |
| "//src/lib/ddk", |
| "//zircon/public/lib/sync", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":ethernet_ax88772b_bind_test" ] |
| } |