mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 09:12:32 +00:00
ea0a692879
This commit changes the firmware handling from requesting each firmware file as a ROM module that is checked against a list of known images (including their size) to requesting each file via the local VFS of the 'wifi_drv'. This allows for using the original probing mechanism that tries to select a matching firmware version. The 'repos/dde_linux/src/drivers/wifi/README' file contains more detailed information on how to configure the driver. Issue #4861.
25 lines
660 B
Makefile
25 lines
660 B
Makefile
PORT_DIR := $(call port_dir,$(GENODE_DIR)/repos/dde_linux/ports/linux-firmware)
|
|
|
|
content: ucode_files LICENSE.wifi_drv pc_wifi_firmware.tar
|
|
|
|
|
|
.PHONY: ucode_files
|
|
ucode_files:
|
|
cp -R $(PORT_DIR)/firmware/rtlwifi .
|
|
cp $(PORT_DIR)/firmware/*.ucode .
|
|
cp $(PORT_DIR)/firmware/*.pnvm .
|
|
cp $(PORT_DIR)/firmware/regulatory.db .
|
|
cp $(PORT_DIR)/firmware/regulatory.db.p7s .
|
|
|
|
LICENSE.wifi_drv:
|
|
for i in $(PORT_DIR)/firmware/LICEN*E.*; do \
|
|
echo "$${i##*/}:" >> $@; \
|
|
cat $$i >> $@; \
|
|
echo >> $@; \
|
|
done
|
|
|
|
pc_wifi_firmware.tar: ucode_files LICENSE.wifi_drv
|
|
tar --mtime='2023-05-03 00:00Z' --remove-files \
|
|
-cf $@ -C . *.* rtlwifi/*.* && \
|
|
rmdir rtlwifi
|