[iwlwifi] Add bind support
Change-Id: I888a83479ebfbb2ddbe745a7c720b24fd7286110
Reviewed-on: https://fuchsia-review.googlesource.com/c/drivers/wlan/intel/iwlwifi/+/642364
Fuchsia-Auto-Submit: Sakthi Vignesh Radhakrishnan <rsakthi@google.com>
Reviewed-by: Sean Cuff <seancuff@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/README.md b/README.md
index 89f116d..f727063 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@
Let the emulator know where are the system packages for on-demand loading:
```
-tools/ffx repository add-from-pm sdk/amber-files
+tools/ffx repository add-from-pm sdk/amber-files
tools/ffx target repository register --alias fuchsia.com --repository devhost
```
@@ -71,7 +71,7 @@
1. Build the driver:
```
- tools/bazel build --config=fuchsia_x64 third_party/iwlwifi:core
+ tools/bazel build --config=fuchsia_x64 third_party/iwlwifi/platform:fuchsia_device
```
This command will build the driver and make it available as a package on a local Fuchsia repository.
diff --git a/third_party/iwlwifi/platform/BUILD.bazel b/third_party/iwlwifi/platform/BUILD.bazel
index d0bd06a..c4e9a94 100644
--- a/third_party/iwlwifi/platform/BUILD.bazel
+++ b/third_party/iwlwifi/platform/BUILD.bazel
@@ -8,17 +8,17 @@
load("@fuchsia_sdk//build_defs:driver_bind_rules.bzl", "driver_header_bind_rules", "driver_bytecode_bind_rules")
driver_header_bind_rules(
- name = "iwlwifi_driver_bind_header",
+ name = "fuchsia_bind_header",
rules = "iwlwifi.bind",
- output = "iwlwifi_bind.h",
+ output = "iwlwifi-bind.h",
- deps = ["@fuchsia_sdk//bind/fuchsia_usb"],
+ deps = ["@fuchsia_sdk//bind/fuchsia_pci"],
)
driver_bytecode_bind_rules(
- name = "iwlwifi_driver_bind_bytecode",
+ name = "fuchsia_bind_bytecode",
rules = "iwlwifi.bind",
- output = "iwlwifi_bind.bc",
+ output = "iwlwifi-bind.bc",
deps = ["@fuchsia_sdk//bind/fuchsia_usb"],
)
@@ -103,7 +103,7 @@
cc_library(
name = "fuchsia_device",
srcs = [
- # "bind.cc",
+ "bind.cc",
"mvm-mlme.cc",
"mvm-sta.cc",
"pcie-device.cc",
@@ -121,7 +121,7 @@
],
deps = [
":driver_inspector",
- # ":fuchsia_bind",
+ ":fuchsia_bind_header",
":platform",
":rcu_manager",
"@fuchsia_sdk//pkg/ddktl_experimental_driver_only",