blob: 5f11e4d62402253e189a25cde22260e324f3b2ce [file] [log] [blame]
# 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("aml_eth_bind") {
rules = "aml_eth.bind"
output = "aml_eth-bind.h"
tests = "bind-tests.json"
deps = [ "//src/devices/bind/amlogic.platform" ]
}
driver_module("aml-ethernet-s912") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "aml-ethernet.cc" ]
deps = [
":aml_eth_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.gpio:fuchsia.hardware.gpio_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.i2c",
"//sdk/banjo/fuchsia.hardware.platform.device:fuchsia.hardware.platform.device_banjo_cpp",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/i2c/lib/device-protocol-i2c",
"//src/devices/i2c/lib/device-protocol-i2c-channel",
"//src/devices/lib/amlogic",
"//src/devices/lib/driver",
"//src/devices/lib/mmio",
"//src/devices/usb/lib/usb",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/pretty",
"//zircon/public/lib/sync",
"//zircon/public/lib/zircon-internal",
"//zircon/public/lib/zx",
]
}
group("tests") {
testonly = true
deps = [ ":aml_eth_bind_test" ]
}