summaryrefslogtreecommitdiff
path: root/check_whence.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'dg2_dmc_v2.8' of git://anongit.freedesktop.org/drm/drm-firmwareJosh Boyer2022-11-301-1/+1
| | | | Signed-off-by: Josh Boyer <jwboyer@kernel.org>
* check_whence: python3/utf-8 supportBrian Norris2020-03-021-1/+2
| | | | | | | | WHENCE contains non-ASCII characters, so we should specify an encoding. To get the encoding= arg in python2, we pull open from 'io' directly. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
* Makefile: improve `make check` usefulnessBrian Norris2020-03-021-1/+5
| | | | | | | | | | Silence the make echo'ing, so the output is cleaner. Add an exit code to check_whence.py, so we can get a real failure for bad WHENCE files. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
* Remove duplicate symlinksThierry Reding2019-10-041-2/+2
| | | | | | | | | | | | | | | | | Now that the copy-firmware.sh script can create symlinks from the Link: entries in the WHENCE file on the fly, remove the duplicate symlinks from the filesystem. One odd entry was intel/dsp_fw_cnl.bin which was listed both as symlink and as a regular file. Both entries can be removed since the it's really a symlink, so it will be recreated at installation time. While at it, update the check_whence.py script to not look for the existence of symlinks in the filesystem because they are created on the fly at installation time by the copy_firmware.sh script. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
* check_whence: Add copy-firmware.sh to the list of ignored filesJosh Boyer2019-08-211-1/+1
| | | | | | | This was added recently as the script to install the firmware files. Add it to the ignored list so check_whence doesn't complain about it. Signed-off-by: Josh Boyer <jwboyer@kernel.org>
* check_whence.py: Add support for filenames with spaces in themHans de Goede2018-12-181-0/+4
| | | | | | | | | | | | | | | | | | Some vendors save a couple of cents by not including an eeprom for wifi parameters on their boards. Instead the driver loads these board specific parameters through the request_firmware mechanism. Since these are board specific the filenames also must be board specific, on x86 DMI strings are used for this and the wifi chipname is postfixed with $sys_vendor-$product_name from the DMI tables. These DMi variables may contain spaces. This commit adds support to check_whence.py for filenames with spaces in them, after this commit these can be specified by putting double-quotes around them, e.g "name with spaces.bin". Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
* Add a metadata consistency check scriptBen Hutchings2016-09-261-0/+56
The script compares the files listed in WHENCE (or otherwise expected) and the files known to git, and reports all differences as errors. Add a 'check' rule to the Makefile that runs this. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>