diff options
| author | Yafang Shao <laoar.shao@gmail.com> | 2026-05-26 14:27:32 +0800 |
|---|---|---|
| committer | Nathan Chancellor <nathan@kernel.org> | 2026-05-28 09:52:45 -0700 |
| commit | 159921d63da16ff1d4764e73ddf9e1556b54dfc8 (patch) | |
| tree | 3cbb429321dd2dac1ca08bda05fb98088104dad8 /scripts | |
| parent | c10ba5c9c62e2158cfa8a8be1f4c6fab67c799ec (diff) | |
kbuild: rpm-pkg: append %{?dist} macro to Release tag
Add support for the %{?dist} macro in the kernel.spec file. This enables
building and releasing kernel RPMs with a custom distribution suffix
(e.g., via rpmbuild's --define option) to better match production
environment tracking.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://patch.msgid.link/20260526062732.84006-1-laoar.shao@gmail.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/package/kernel.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index b3c956205af0..c732415662ef 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -6,7 +6,7 @@ Name: kernel Summary: The Linux Kernel Version: %(echo %{KERNELRELEASE} | sed -e 's/-/_/g') -Release: %{pkg_release} +Release: %{pkg_release}%{?dist} License: GPL Group: System Environment/Kernel Vendor: The Linux Community |
