| # 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("rtl8211f_bind") { |
| rules = "rtl8211f.bind" |
| output = "rtl8211f-bind.h" |
| tests = "bind-tests.json" |
| deps = [ "//src/devices/bind/fuchsia.realtek.platform" ] |
| } |
| |
| driver_module("realtek-8211f") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "rtl8211f.cc" ] |
| deps = [ |
| ":rtl8211f_bind", |
| "//sdk/banjo/fuchsia.hardware.ethernet.mac", |
| "//src/devices/lib/driver", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zx", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":rtl8211f_bind_test" ] |
| } |