genode/repos/pc/lib/mk/wifi_firmware.mk
Josef Söntgen 578a8c9918 wifi/pc: add rtlwifi driver
Due to lacking hardware access the driver was test with one RTL8188EE
based device, namely [10ec:8179] (rev 01), only. As the access to the
PCI config space is restricted the driver loads the non power-saving
FW and the driver port is therefor only tested with that. The
accesses are documented should we choose to support them one way or
another later on.

The 'wifi.run' run script as well as Sculpt served as testing ground
where the driver worked fine so far.

Fixes #4714.
2023-02-27 08:20:45 +01:00

33 lines
893 B
Makefile

#
# Pseudo library to copy wireless LAN firmware to build directory
#
FW_CONTRIB_DIR := $(call select_from_ports,linux-firmware)
IMAGES := $(notdir $(wildcard $(FW_CONTRIB_DIR)/firmware/*.ucode))
IMAGES += $(notdir $(wildcard $(FW_CONTRIB_DIR)/firmware/*.pnvm))
IMAGES += $(notdir $(wildcard $(FW_CONTRIB_DIR)/firmware/*.bin))
IMAGES += $(notdir $(wildcard $(FW_CONTRIB_DIR)/firmware/*.db))
IMAGES += $(notdir $(wildcard $(FW_CONTRIB_DIR)/firmware/*.p7s))
BIN_DIR := $(BUILD_BASE_DIR)/bin
FW_DIR := $(FW_CONTRIB_DIR)/firmware
CUSTOM_TARGET_DEPS += $(addprefix $(BIN_DIR)/,$(IMAGES))
$(BIN_DIR)/%.bin: $(FW_DIR)/%.bin
$(VERBOSE)cp $^ $@
$(BIN_DIR)/%.ucode: $(FW_DIR)/%.ucode
$(VERBOSE)cp $^ $@
$(BIN_DIR)/%.pnvm: $(FW_DIR)/%.pnvm
$(VERBOSE)cp $^ $@
$(BIN_DIR)/%.db: $(FW_DIR)/%.db
$(VERBOSE)cp $^ $@
$(BIN_DIR)/%.p7s: $(FW_DIR)/%.p7s
$(VERBOSE)cp $^ $@
CC_CXX_WARN_STRICT =