Merge branch 'split-dedup' into 'main'

Remove configure, fix and check permissions, split out de-duplication

See merge request kernel-firmware/linux-firmware!331
This commit is contained in:
Mario Limonciello 2024-10-16 15:54:54 +00:00
commit ab2a7d892e
113 changed files with 40 additions and 10 deletions

View File

@ -26,22 +26,23 @@ deb:
rpm:
./build_packages.py --rpm
install: install-nodedup
dedup:
./dedup-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
install-nodedup:
install:
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
@echo "Now run \"make dedup\" to de-duplicate any firmware files"
install-xz:
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh --xz $(DESTDIR)$(FIRMWAREDIR)
./dedup-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
@echo "Now run \"make dedup\" to de-duplicate any firmware files"
install-zst:
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
./dedup-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
@echo "Now run \"make dedup\" to de-duplicate any firmware files"
clean:
rm -rf release dist

0
amlogic/aml_w155s2_bt_uart.bin Executable file → Normal file
View File

0
amlogic/aml_w265s1_bt_uart.bin Executable file → Normal file
View File

0
amlogic/aml_w265s2_bt_uart.bin Executable file → Normal file
View File

0
amphion/vpu/vpu_fw_imx8_dec.bin Executable file → Normal file
View File

0
amphion/vpu/vpu_fw_imx8_enc.bin Executable file → Normal file
View File

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3
import os, re, sys
import os, re, stat, sys
from io import open
@ -84,7 +84,6 @@ def main():
"WHENCE",
"build_packages.py",
"check_whence.py",
"configure",
"contrib/process_linux_firmware.py",
"contrib/templates/debian.changelog",
"contrib/templates/debian.control",
@ -96,6 +95,17 @@ def main():
)
known_prefixes = set(name for name in whence_list if name.endswith("/"))
git_files = set(list_git())
executable_files = set(
[
"build_packages.py",
"carl9170fw/genapi.sh",
"carl9170fw/autogen.sh",
"check_whence.py",
"contrib/process_linux_firmware.py",
"copy-firmware.sh",
"dedup-firmware.sh",
]
)
for name in set(name for name in whence_files if name.endswith("/")):
sys.stderr.write("E: %s listed in WHENCE as File, but is directory\n" % name)
@ -162,6 +172,29 @@ def main():
else:
sys.stderr.write("E: %s not listed in WHENCE\n" % name)
ret = 1
for name in sorted(list(executable_files)):
mode = os.stat(name).st_mode
if not (mode & stat.S_IXUSR and mode & stat.S_IXGRP and mode & stat.S_IXOTH):
sys.stderr.write("E: %s is missing execute bit\n" % name)
ret = 1
for name in sorted(list(git_files - executable_files)):
mode = os.stat(name).st_mode
if stat.S_ISDIR(mode):
if not (
mode & stat.S_IXUSR and mode & stat.S_IXGRP and mode & stat.S_IXOTH
):
sys.stderr.write("E: %s is missing execute bit\n" % name)
ret = 1
elif stat.S_ISREG(mode):
if mode & stat.S_IXUSR or mode & stat.S_IXGRP or mode & stat.S_IXOTH:
sys.stderr.write("E: %s incorrectly has execute bit\n" % name)
ret = 1
else:
sys.stderr.write("E: %s is neither a directory nor regular file\n" % name)
ret = 1
return ret

0
cirrus/cs35l41-dsp1-spk-prot-104316d3-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316d3-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316d3-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316d3-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316f3-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316f3-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316f3-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104316f3-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431863-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431863-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431863-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431863-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104318d3-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104318d3-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104318d3-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-104318d3-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431da2-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431da2-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431da2-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431da2-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431ee2-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431ee2-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431f1f-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431f1f-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431f62-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431f62-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431f62-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-10431f62-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3865-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3865-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3866-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3866-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa386e-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa386e-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa386e-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa386e-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa386f-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa386f-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3877-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3877-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3878-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa3878-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38a9-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38a9-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38ab-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38ab-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c7-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c7-spkid0-l1.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c7-spkid0-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c7-spkid0-r1.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c8-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c8-spkid1-l1.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c8-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38c8-spkid1-r1.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38f9-spkid1-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38f9-spkid1-r0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38fa-spkid0-l0.bin Executable file → Normal file
View File

0
cirrus/cs35l41-dsp1-spk-prot-17aa38fa-spkid0-r0.bin Executable file → Normal file
View File

View File

View File

View File

View File

View File

4
configure vendored
View File

@ -1,4 +0,0 @@
#!/bin/bash
# -*- mode: sh -*-
# Our Makefile doesn't do srcdir != builddir
#buildapi-variable-no-builddir

0
cs42l43.bin Executable file → Normal file
View File

0
i915/mtl_gsc_1.bin Executable file → Normal file
View File

0
i915/mtl_huc_gsc.bin Executable file → Normal file
View File

0
intel/ish/ish_lnlm.bin Executable file → Normal file
View File

0
mediatek/mt7622pr2h.bin Executable file → Normal file
View File

0
mediatek/mt7668pr2h.bin Executable file → Normal file
View File

0
mrvl/prestera/mvsw_prestera_fw-v2.0.img Executable file → Normal file
View File

0
mrvl/prestera/mvsw_prestera_fw-v3.0.img Executable file → Normal file
View File

0
mrvl/sdsd8977_combo_v2.bin Executable file → Normal file
View File

0
qat_402xx.bin Executable file → Normal file
View File

0
qat_402xx_mmp.bin Executable file → Normal file
View File

0
qca/hpbtfw21.tlv Executable file → Normal file
View File

0
qca/hpnv21.301 Executable file → Normal file
View File

0
qca/hpnv21.302 Executable file → Normal file
View File

0
qca/hpnv21.309 Executable file → Normal file
View File

0
qca/hpnv21.bin Executable file → Normal file
View File

0
qca/hpnv21g.301 Executable file → Normal file
View File

0
qca/hpnv21g.302 Executable file → Normal file
View File

0
qca/hpnv21g.309 Executable file → Normal file
View File

0
qca/hpnv21g.bin Executable file → Normal file
View File

0
qca/msnv11.b09 Executable file → Normal file
View File

0
qca/msnv11.b0a Executable file → Normal file
View File

0
qed/qed_init_values-8.10.9.0.bin Executable file → Normal file
View File

0
qed/qed_init_values-8.14.6.0.bin Executable file → Normal file
View File

0
qed/qed_init_values-8.18.9.0.bin Executable file → Normal file
View File

0
qed/qed_init_values-8.20.0.0.bin Executable file → Normal file
View File

0
qed/qed_init_values-8.30.12.0.bin Executable file → Normal file
View File

0
qed/qed_init_values-8.33.12.0.bin Executable file → Normal file
View File

0
qed/qed_init_values-8.37.7.0.bin Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More