| # 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("dwmac_bind") { |
| rules = "dwmac.bind" |
| output = "dwmac-bind.h" |
| tests = "bind-tests.json" |
| deps = [ "//src/devices/bind/fuchsia.designware.platform" ] |
| } |
| |
| driver_module("dwmac") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ |
| "dwmac-debug.cc", |
| "dwmac.cc", |
| "pinned-buffer.cc", |
| ] |
| deps = [ |
| ":dwmac_bind", |
| "//sdk/banjo/fuchsia.hardware.clock:fuchsia.hardware.clock_banjo_cpp", |
| "//sdk/banjo/fuchsia.hardware.ethernet", |
| "//sdk/banjo/fuchsia.hardware.ethernet.board", |
| "//sdk/banjo/fuchsia.hardware.ethernet.mac", |
| "//sdk/banjo/fuchsia.hardware.gpio", |
| "//sdk/banjo/fuchsia.hardware.i2c", |
| "//sdk/banjo/fuchsia.hardware.platform.device", |
| "//sdk/banjo/fuchsia.hardware.test", |
| "//src/devices/bus/lib/device-protocol-pdev", |
| "//src/devices/lib/dev-operation", |
| "//src/devices/lib/driver", |
| "//src/devices/lib/mmio", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zircon-internal", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/fzl", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":dwmac_bind_test" ] |
| } |