blob: de95db9e564056f99dd2c7702541bb85e9a42c68 [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("rtl8211f_bind") {
rules = "rtl8211f.bind"
output = "rtl8211f-bind.h"
tests = "bind-tests.json"
deps = [ "//src/devices/bind/fuchsia.platform" ]
}
driver_module("realtek-8211f") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ]
configs += [
"//build/config/fuchsia:static_cpp_standard_library",
"//build/unification/config:zircon-migrated",
]
sources = [ "rtl8211f.cc" ]
deps = [
":rtl8211f_bind",
"//sdk/banjo/ddk.protocol.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" ]
}