Skip to content

Range of copy-firmware/check_whence fixes

Emil Velikov b4-sent linux-firmware 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20240922-misc-fixes-8a13acc71a93

Versions newest first

  1. v2 Latest16 patches 1 replyIn review
  2. v116 patches 1 replySuperseded

Changes in v2 from the cover letter

- Commit message tweaks
- Correct a few flipped test checks
- Rename deduplicate-firmware.sh to dedup-firmware.sh
- Change line width (editorconfig) to 90
- Properly handle destdir
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16check_whence.py: use consistent namingcheck_whence.py+4 -40 replies
2/16check_whence.py: ban link-to-a-linkWHENCE check_whence.py+17 -90 replies
3/16check_whence.py: LC_ALL=C sort -u the filelistcheck_whence.py+7 -70 replies
4/16check_whence.py: annotate replacement strings as rawcheck_whence.py+3 -30 replies
5/16editorconfig: add initial config file.editorconfig check_whence.py+22 -00 replies
6/16Style update yaml files.gitlab-ci.yml .pre-commit-config.yaml+20 -200 replies
7/16copy-firmware.sh: flesh out and fix dedup-firmware.shMakefile check_whence.py copy-firmware.sh +1 more+58 -270 replies
8/16Revert "copy-firmware: Support additional compressor options"copy-firmware.sh+0 -80 replies
9/16copy-firmware.sh: reset and consistently handle destdircopy-firmware.sh+3 -20 replies
10/16copy-firmware.sh: fix indentationcopy-firmware.sh+5 -50 replies
11/16copy-firmware.sh: add err() helpercopy-firmware.sh+10 -110 replies
12/16copy-firmware.sh: warn if the destination folder is not emptycopy-firmware.sh+8 -00 replies
13/16copy-firmware.sh: call ./check_whence.py before parsing the filecopy-firmware.sh+3 -00 replies
14/16copy-firmware.sh: remove no longer reachable test -fcopy-firmware.sh+0 -10 replies
15/16copy-firmware.sh: remove no longer reachable test -Lcopy-firmware.sh+8 -380 replies
16/16copy-firmware.sh: rename variables in symlink hanldingcopy-firmware.sh+7 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/16] Range of copy-firmware/check_whence fixes

Hello all,

With the latest python 3.12 check_whence.py started throwing some warnings. The more I looked around, the more loose ends and bugs reared their (ugly) heads.

In this series:
- check_whence.py: sort the filenames, use consistent variable names
- check_whence.py: fix links-to-links and band them
- editorconfig: add the config and fix the yaml+sh indentation
- copy-firmware.sh: factor out dedup fix broken ad-hoc symlink handling
- copy-firmware.sh: remove the hacky argument injection
- copy-firmware.sh: warn if the destination folder is NOT empty
- copy-firmware.sh: call ./check_whence.py and remove the dead code

The series is a mix of cosmetics (style, names), existing bug fixes and trying loose ends. I'm happy to split it in sub-series, as per your suggestions.

As always, input is highly appreciated. Thanks o/

To: [email protected]

Changes in v2:
- Commit message tweaks
- Correct a few flipped test checks
- Rename deduplicate-firmware.sh to dedup-firmware.sh
- Change line width (editorconfig) to 90
- Properly handle destdir
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Emil Velikov (16):
check_whence.py: use consistent naming check_whence.py: ban link-to-a-link
check_whence.py: LC_ALL=C sort -u the filelist check_whence.py: annotate replacement strings as raw
editorconfig: add initial config file
Style update yaml files
copy-firmware.sh: flesh out and fix dedup-firmware.sh Revert "copy-firmware: Support additional compressor options" copy-firmware.sh: reset and consistently handle destdir copy-firmware.sh: fix indentation
copy-firmware.sh: add err() helper
copy-firmware.sh: warn if the destination folder is not empty copy-firmware.sh: call ./check_whence.py before parsing the file copy-firmware.sh: remove no longer reachable test -f copy-firmware.sh: remove no longer reachable test -L copy-firmware.sh: rename variables in symlink hanlding

 .editorconfig           |  21 +++++++++
 .gitlab-ci.yml          |   2 +-
 .pre-commit-config.yaml |  38 ++++++++--------
 Makefile                |   9 ++--
 WHENCE                  |  14 +++---
 check_whence.py         |  42 +++++++++++-------
 copy-firmware.sh        | 113 +++++++++++++-----------------------------------
 dedup-firmware.sh       |  52 ++++++++++++++++++++++
 8 files changed, 162 insertions(+), 129 deletions(-)

---
base-commit: 6c88d9b8253b8ec6df701a551a56438ea2e5bacf
change-id: 20240922-misc-fixes-8a13acc71a93

Best regards,

Signature · 1 line
Emil Velikov <[email protected]>