2023-03-21 15:14:45

by David Wang

[permalink] [raw]
Subject: [PATCH] scripts/package: add back 'version' for builddeb

Fixes: 36862e14e316 ("kbuild: deb-pkg: use dh_listpackages to know enabled packages")
The 'version' variable is still needed for building
debian 'linux-headers' packages, add it back.

Signed-off-by: David Wang <[email protected]>
---
scripts/package/builddeb | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index c5ae57167d7c..5102d0903f9c 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -215,6 +215,7 @@ install_libc_headers () {

rm -f debian/files

+version=$KERNELRELEASE
packages_enabled=$(dh_listpackages)

for package in ${packages_enabled}
--
2.20.1