genode/repos/pc/recipes/raw/pc_wifi_firmware/content.mk
Christian Helmuth accfc4145a Stable TAR archive metadata content in recipes
Differences in TAR archive member metadata results in unstable depot
hashes. The following properties have to be fixed: modification time
(incl. time zone), numeric owner and group, permission modes.

Releated to #2842
2023-10-25 08:58:52 +02:00

26 lines
716 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 \
--owner=0 --group=0 --numeric-owner --mode='go=' \
-cf $@ -C . *.* rtlwifi/*.* && \
rmdir rtlwifi