| # 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("realtek_rtl8111_bind") { |
| rules = "realtek_rtl8111.bind" |
| output = "realtek_rtl8111-bind.h" |
| tests = "bind-tests.json" |
| deps = [ "//src/devices/bind/fuchsia.pci" ] |
| } |
| |
| if (current_cpu == "x64") { |
| driver_module("realtek-8111") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "rtl8111.c" ] |
| deps = [ |
| ":realtek_rtl8111_bind", |
| "//sdk/banjo/ddk.protocol.ethernet", |
| "//sdk/banjo/ddk.protocol.pci", |
| "//src/devices/lib/driver", |
| "//src/devices/pci/lib/device-protocol-pci", |
| "//src/lib/ddk", |
| "//zircon/public/lib/zircon-internal", |
| ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":realtek_rtl8111_bind_test" ] |
| } |