freenode
Kernel & Low-Level

Kernel scripts/ set to shed its last Perl utilities

An RFC finishes converting all seventeen tools there to Python 3, stdlib only.

Breno Rodrigues Alves has posted an RFC to convert the final seven Perl utilities in the Linux kernel's scripts/ directory to Python 3, completing a sweep that would leave no Perl in that tree.

Twelve tools were already ported in an earlier series. This follow-up covers the rest as faithful one-to-one reimplementations: same command-line interfaces, same output, same behavior, and no dependencies beyond the Python standard library. Five were verified byte-for-byte against their Perl counterparts on synthetic or real inputs; the other two, which need build artifacts such as vmlinux or a .config, track the original logic directly.

The utilities span routine developer and packaging work: measuring function stack depth from objdump, extracting module signatures and embedded system certificates, walking header include graphs for cycles, flagging unknown Kconfig symbol references, sorting MAINTAINERS sections, and shrinking a kernel config to the modules loaded on the running system.

If accepted, the change drops Perl from a central set of in-tree scripts that kernel builders and maintainers still touch, aligning that tooling with Python already common in modern Linux development environments.