blob: 8cad457bebf8eb3b576184b59ba71c46172df68b [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/drivers.gni")
driver_bind_rules("rtl8211f_bind") {
rules = "meta/rtl8211f.bind"
tests = "meta/bind-tests.json"
deps = [ "//src/devices/bind/fuchsia.ethernet" ]
}
fuchsia_cc_driver("realtek-8211f-driver") {
legacy = true
output_name = "realtek-8211f"
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
sources = [ "rtl8211f.cc" ]
deps = [
":rtl8211f_bind",
"//sdk/banjo/fuchsia.hardware.ethernet.mac:fuchsia.hardware.ethernet.mac_banjo_cpp",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/sync",
"//zircon/system/ulib/zx",
]
}
fuchsia_driver_component("realtek-8211f") {
component_name = "realtek-8211f"
deps = [ ":realtek-8211f-driver" ]
info = "meta/realtek-8211f-info.json"
manifest = "meta/realtek-8211f.cml"
}
fuchsia_driver_package("package") {
package_name = "realtek-8211f"
driver_components = [ ":realtek-8211f" ]
}
group("tests") {
testonly = true
deps = [ ":rtl8211f_bind_test" ]
}