| |
| package(default_visibility = ["//visibility:public"]) |
| |
| #driver_bind_rules( |
| # name = "iwlwifi_driver_bind", |
| # rules = "iwlwifi.bind", |
| # output_header = "iwlwifi_bind.h", |
| |
| # deps = ["@fuchsia_sdk//bind/fuchsia_usb"], |
| #) |
| |
| cc_library( |
| name = "driver_inspector", |
| srcs = [ |
| "driver-inspector.cc", |
| ], |
| hdrs = [ |
| "driver-inspector.h", |
| ], |
| deps = [ |
| "@fuchsia_sdk//pkg/inspect", |
| ], |
| ) |
| |
| cc_library( |
| name = "platform", |
| srcs = [ |
| "debug.cc", |
| "device.cc", |
| "ieee80211.cc", |
| "irq.cc", |
| "memory.cc", |
| "module.cc", |
| "task-internal.cc", |
| "task.cc", |
| "time.cc", |
| |
| # Must come from library |
| "channel.cc", |
| ], |
| hdrs = [ |
| "compiler.h", |
| "debug.h", |
| "device.h", |
| "ieee80211.h", |
| "irq.h", |
| "kernel.h", |
| "memory.h", |
| "module.h", |
| "pci.h", |
| "task-internal.h", |
| "task.h", |
| "time.h", |
| "align.h", |
| |
| # Must come from library |
| "channel.h", |
| "ieee80211_include.h", |
| ], |
| deps = [ |
| ":driver_inspector", |
| "@fuchsia_sdk//pkg/ddk", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_pci:fuchsia_hardware_pci_banjo_cc", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_wlanphyinfo:fuchsia_hardware_wlanphyinfo_banjo_cc", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_wlan_mac:fuchsia_hardware_wlan_mac_banjo_cc", |
| |
| # Needed only for library purposes (channel and ieee includes) |
| "@fuchsia_sdk//fidl/fuchsia_wlan_common:fuchsia_wlan_common_cc", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_wlan_info:fuchsia_hardware_wlan_info_banjo_cc", |
| ], |
| ) |
| |
| cc_library( |
| name = "fuchsia_device", |
| srcs = [ |
| # "bind.cc", |
| "mvm-mlme.cc", |
| "pcie-device.cc", |
| "wlanmac-device.cc", |
| "wlanphy-impl-device.cc", |
| ], |
| hdrs = [ |
| "mvm-mlme.h", |
| "pcie-device.h", |
| "wlanmac-device.h", |
| "wlanphy-impl-device.h", |
| "ieee80211.h", |
| ], |
| deps = [ |
| ":driver_inspector", |
| # ":fuchsia_bind", |
| ":platform", |
| "@fuchsia_sdk//pkg/ddktl_experimental_driver_only", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_wlanphyinfo:fuchsia_hardware_wlanphyinfo_banjo_cc", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_wlan_mac:fuchsia_hardware_wlan_mac_banjo_cc", |
| "@fuchsia_sdk//fidl/fuchsia_hardware_wlanphyimpl:fuchsia_hardware_wlanphyimpl_banjo_cc", |
| "@fuchsia_sdk//fidl/fuchsia_wlan_common:fuchsia_wlan_common_banjo_cc", |
| "@fuchsia_sdk//fidl/fuchsia_wlan_ieee80211:fuchsia_wlan_ieee80211_cc", |
| "@fuchsia_sdk//fidl/fuchsia_wlan_internal:fuchsia_wlan_internal_banjo_cc", |
| "//third_party/iwlwifi:core", |
| # "//third_party/iwlwifi/cfg", |
| "//third_party/iwlwifi/mvm:mvm", |
| "//third_party/iwlwifi/pcie", |
| # "//third_party/devices/lib/driver", |
| "@fuchsia_sdk//pkg/ddk", |
| "@fuchsia_sdk//pkg/async_loop_cpp", |
| "@fuchsia_sdk//pkg/async_loop_default", |
| # "//third_party/lib/ddktl", |
| |
| # Zircon deps dont have to be mentioned I think. |
| # "//zircon/system/public", |
| # "//zircon/system/ulib/async-loop:async-loop-cpp", |
| # "//zircon/system/ulib/async-loop:async-loop-default", |
| # "//zircon/system/ulib/fbl", |
| ], |
| copts = ["-Ithird_party/iwlwifi"], |
| ) |
| |
| #source_set("fuchsia_device") { |
| # friend = |
| # [ "//third_party/iwlwifi/test:*" ] |
| # TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings |
| # configs += [ "//build/config:Wno-conversion" ] |
| #} |