[RFC PATCH v2 0/7] scripts: convert remaining Perl utilities in scripts/
From: Breno Rodrigues Alves
Date: Sun Oct 18 2026 - 10:00:48 EST
v2 changes since v1:
- Fix the location of two converted scripts: kconfig-sym-check.py
and streamline_config.py belong in scripts/kconfig/, not in
scripts/ root, to match the path of their original .pl files.
Both are now added at the correct path from the start.
This series converts the last seven Perl utilities in scripts/ to
Python 3. After this series, scripts/ contains no remaining Perl
utilities pending conversion (the original .pl files are kept for
coexistence, matching the pattern of the earlier conversions).
Each conversion is a faithful 1:1 port: same CLI, same output,
same behavior. All use only the Python standard library.
The seven scripts are:
- checkstack.pl -> checkstack.py
- extract-module-sig.pl -> extract-module-sig.py
- extract-sys-certs.pl -> extract-sys-certs.py
- headerdep.pl -> headerdep.py
- kconfig-sym-check.pl -> scripts/kconfig/kconfig-sym-check.py
- parse-maintainers.pl -> parse-maintainers.py
- streamline_config.pl -> scripts/kconfig/streamline_config.py
Five of the seven were verified byte-for-byte identical to their
Perl counterparts. The remaining two (extract-sys-certs,
streamline_config) depend on build artifacts (vmlinux, .config)
and are 1:1 ports of the Perl logic.
Breno Rodrigues Alves (7):
scripts: convert checkstack.pl to Python
scripts: convert extract-module-sig.pl to Python
scripts: convert extract-sys-certs.pl to Python
scripts: convert headerdep.pl to Python
scripts: convert kconfig-sym-check.pl to Python
scripts: convert parse-maintainers.pl to Python
scripts: convert streamline_config.pl to Python
Breno Rodrigues Alves (7):
scripts: convert checkstack.pl to Python
scripts: convert extract-module-sig.pl to Python
scripts: convert extract-sys-certs.pl to Python
scripts: convert headerdep.pl to Python
scripts: convert kconfig-sym-check.pl to Python
scripts: convert parse-maintainers.pl to Python
scripts: convert streamline_config.pl to Python
scripts/checkstack.py | 143 ++++++++
scripts/extract-module-sig.py | 103 ++++++
scripts/extract-sys-certs.py | 132 ++++++++
scripts/headerdep.py | 137 ++++++++
scripts/kconfig/kconfig-sym-check.py | 177 ++++++++++
scripts/kconfig/streamline_config.py | 475 +++++++++++++++++++++++++++
scripts/parse-maintainers.py | 136 ++++++++
7 files changed, 1303 insertions(+)
create mode 100755 scripts/checkstack.py
create mode 100755 scripts/extract-module-sig.py
create mode 100755 scripts/extract-sys-certs.py
create mode 100755 scripts/headerdep.py
create mode 100755 scripts/kconfig/kconfig-sym-check.py
create mode 100755 scripts/kconfig/streamline_config.py
create mode 100755 scripts/parse-maintainers.py
--
2.43.0