[GIT PULL] Kbuild fixes for 7.2 #1

Nathan Chancellor <[email protected]> Fri, 31 Jul 2026 19:45:58 -0700
Newsgroups gmane.linux.kbuild.devel,gmane.linux.kernel
Message-ID <20260801024558.GA3862889@ax162>
Hi Linus,

Please consider pulling these two Kbuild fixes for 7.2. It has been
rather quiet on the Kbuild front for fixes this cycle, hence the first
fixes pull at -rc6, but the first one was a bad regression from 7.1 and
the second is localized to the .rpm package building infrastructure, so
I think they are worth taking now.

If there are any issues or concerns, please let me know.

Cheers,
Nathan

The following changes since commit 1590cf0329716306e948a8fc29f1d3ee87d3989f:

  Linux 7.2-rc4 (2026-07-19 13:54:41 -0700)

are available in the Git repository at:

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

for you to fetch changes up to e5a259d98823a93459643b239b71fed7589ab669:

  kbuild: rpm-pkg: Preserve BTF sections in kernel modules during debuginfo stripping (2026-07-29 16:21:42 -0700)

----------------------------------------------------------------
First round of Kbuild fixes for 7.2

- Fix regression with MO= when building out of tree kernel modules due
  to incorrectly overwriting build tree's Makefile

- Avoid stripping .BTF sections from modules when building debug .rpm
  packages

Signed-off-by: Nathan Chancellor <[email protected]>

----------------------------------------------------------------
Nicolas Schier (1):
      kbuild: Stop modifying $(objtree)/Makefile when building oot-kmods oos

Yafang Shao (1):
      kbuild: rpm-pkg: Preserve BTF sections in kernel modules during debuginfo stripping

 Makefile                    |  8 +++-----
 scripts/package/kernel.spec | 11 +++++++++++
 2 files changed, 14 insertions(+), 5 deletions(-)