From: "Guido Günther" <agx@sigxcpu.org>
To: Nathan Chancellor <nathan@kernel.org>, Nicolas Schier <nsc@kernel.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
"Guido Günther" <agx@sigxcpu.org>
Subject: [PATCH v2 1/2] kbuild: builddeb: Use ${KERNELRELEASE} consistently
Date: Sun, 25 Oct 2026 17:46:35 +0100 [thread overview]
Message-ID: <20261025-deb-pkg-v2-1-8c33a4ac18ad@sigxcpu.org> (raw)
In-Reply-To: <20261025-deb-pkg-v2-0-8c33a4ac18ad@sigxcpu.org>
Only use $version when it affects the package name, other places
should use ${KERNELRELEASE}.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
scripts/package/builddeb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index ba1defc616524..5fdc9ea0dcca4 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -147,8 +147,8 @@ install_kernel_headers () {
"${srctree}/scripts/package/install-extmod-build" "${pdir}/usr/src/linux-headers-${version}"
fi
- mkdir -p $pdir/lib/modules/$version/
- ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build
+ mkdir -p $pdir/lib/modules/${KERNELRELEASE}/
+ ln -s /usr/src/linux-headers-$version $pdir/lib/modules/${KERNELRELEASE}/build
}
install_libc_headers () {
--
2.53.0
next prev parent reply other threads:[~2026-10-25 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-25 16:46 [PATCH v2 0/2] kbuild: deb-pkg: allow to set package name version Guido Günther
2026-10-25 16:46 ` Guido Günther [this message]
2026-10-25 16:46 ` [PATCH v2 2/2] " Guido Günther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261025-deb-pkg-v2-1-8c33a4ac18ad@sigxcpu.org \
--to=agx@sigxcpu.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=nsc@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®