| # Copyright (c) 2019 The Fuchsia Authors. |
| # |
| # Permission to use, copy, modify, and/or distribute this software for any purpose with or without |
| # fee is hereby granted, provided that the above copyright notice and this permission notice appear |
| # in all copies. |
| # |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS |
| # SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| # AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
| # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
| # OF THIS SOFTWARE. |
| |
| # SIM bus definition. |
| |
| config("config_sim") { |
| defines = [ "CONFIG_BRCMFMAC_SIM=1" ] |
| } |
| |
| config("config_sim_mfg") { |
| defines = [ |
| "CONFIG_BRCMFMAC_SIM=1", |
| "USE_MFG_FW", |
| ] |
| } |
| |
| source_set("sim_common") { |
| testonly = true |
| sources = [ |
| "sim.cc", |
| "sim_device.cc", |
| "sim_errinj.cc", |
| "sim_hw.cc", |
| ] |
| public = [ |
| "sim.h", |
| "sim_device.h", |
| "sim_errinj.h", |
| "sim_fw.h", |
| "sim_hw.h", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.wlan.ieee80211", |
| "//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac:bus", |
| "//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac:debug", |
| "//src/devices/lib/broadcom", |
| "//src/lib/ddk", |
| "//third_party/bcmdhd/crossdriver:bcmdhd_crossdriver", |
| "//zircon/system/public", |
| ] |
| public_deps = [ |
| "//src/connectivity/wlan/drivers/testing/lib/sim-device", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-env", |
| "//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac:bcdc", |
| "//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac:core", |
| ] |
| } |
| |
| source_set("sim") { |
| testonly = true |
| sources = [ "sim_fw.cc" ] |
| public_deps = [ ":sim_common" ] |
| public_configs = [ ":config_sim" ] |
| friend = [ "test/*" ] |
| } |
| |
| source_set("sim_mfg") { |
| testonly = true |
| sources = [ "sim_fw.cc" ] |
| public_deps = [ ":sim_common" ] |
| public_configs = [ ":config_sim_mfg" ] |
| friend = [ "test/*" ] |
| } |