[PATCH 0/2] kbuild: rpm-pkg: improve debuggability

Uday Shankar
2025-02-11T01:12:00Z

This patch set aims to improve debuggability of kernels packaged using
the rpm-pkg target by producing debuginfo and debugsource RPMs that
contain a full set of debugging information for the kernel. The
preexisting kernel-%{KERNELRELEASE} RPM is also shrunk by moving all
debuginfo out of it into the new debuginfo RPM.

The first patch is just a bit of cleanup to keep rpmbuild happy, and the
second patch contains the main work.

This is technically a v2 for the following patch, but since it's been a
while I didn't mark it as such

https://lore.kernel.org/linux-kbuild/20240910014327.1726214-1-ushankar@purestorage.com/

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
---
Uday Shankar (2):
scripts: make python shebangs specific about desired version
kbuild: rpm-pkg: build debuginfo and debugsource RPMs

scripts/package/kernel.spec | 31 +++++++++++++++++++++++++++++--
scripts/package/mkspec | 3 +++
scripts/show_delta | 2 +-
scripts/tracing/draw_functrace.py | 2 +-
4 files changed, 34 insertions(+), 4 deletions(-)
---
base-commit: a64dcfb451e254085a7daee5fe51bf22959d52d3
change-id: 20250209-debuginfo-cd3d9417af21

Best regards,
--
Uday Shankar <ushankar@purestorage.com>