[GIT PULL] Kbuild fixes for 7.0 #1

From: Nathan Chancellor

Date: Wed Feb 18 2026 - 16:04:57 EST


Hi Linus,

Please pull this first round of Kbuild fixes for 7.0. The majority of
these changes are fixes for commit 62089b804895 ("kbuild: rpm-pkg:
Generate debuginfo package manually"), which came in at 6.19-rc8 (not
6.19-rc1 like the merge commit in this pull request says but I realized
too late and did not want to rebase). I thought that change was
sufficiently tested but I guess I only used the most recent version of
rpm.

Due to the backmerge of the 7.0 changes in v6.19 to pick up that
aforementioned rpm-pkg change, the 'git request-pull' diff stat was
quite large, so I manually generated the one below with

$ git diff --stat df989b01b5f9..kbuild-fixes-7.0-1

which should be accurate with what is actually merged into your tree.
Please let me know if that is a problem.

Cheers,
Nathan

The following changes since commit 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b:

Linux 6.19 (2026-02-08 13:03:27 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git tags/kbuild-fixes-7.0-1

for you to fetch changes up to f94711255a73d8938cf3bb405a0af3a4d2700ed1:

kbuild: rpm-pkg: Disable automatic requires for manual debuginfo package (2026-02-16 16:32:46 -0700)

----------------------------------------------------------------
First round of Kbuild fixes for 7.0

- Ensure tools/objtool is cleaned by 'make clean' and 'make mrproper'

- Fix test program for CONFIG_CC_CAN_LINK to avoid a warning, which is
made fatal by -Werror

- Drop explicit LZMA parallel compression in scripts/make_fit.py

- Several fixes for commit 62089b804895 ("kbuild: rpm-pkg: Generate
debuginfo package manually")

----------------------------------------------------------------
Chen-Yu Tsai (1):
scripts/make_fit.py: Drop explicit LZMA parallel compression

Josh Poimboeuf (1):
kbuild: Add objtool to top-level clean target

Mickaël Salaün (1):
kbuild: Fix CC_CAN_LINK detection

Nathan Chancellor (5):
Merge 7.0 Kbuild changes into kbuild-fixes
kbuild: rpm-pkg: Restrict manual debug package creation
kernel: rpm-pkg: Restore find-debuginfo.sh approach to -debuginfo package
kbuild: rpm-pkg: Fix manual debuginfo generation when using .src.rpm
kbuild: rpm-pkg: Disable automatic requires for manual debuginfo package

Makefile | 11 +++++++-
scripts/cc-can-link.sh | 2 +-
scripts/make_fit.py | 2 +-
scripts/package/kernel.spec | 64 ++++++++++++++++++++++++++++++++++++++-------
scripts/package/mkspec | 38 ++++++++++++++++++++++++---
tools/objtool/Makefile | 2 ++
6 files changed, 104 insertions(+), 15 deletions(-)