Skip to content

Commit 2fd6c45

Browse files
committed
kbuild: deb-pkg: make debian source package working again
Since commit c5bf2ef ("kbuild: deb-pkg: fix binary-arch and clean in debian/rules"), the source package generated by 'make deb-pkg' fails to build. I terribly missed the fact that the intdeb-pkg target may regenerate include/config/kernel.release due to the following in the top Makefile: %pkg: include/config/kernel.release FORCE Restore KERNELRELEASE= option to avoid the kernel.release disagreement between build-arch and binary-arch. Fixes: c5bf2ef ("kbuild: deb-pkg: fix binary-arch and clean in debian/rules") Signed-off-by: Masahiro Yamada <[email protected]>
1 parent c753ccb commit 2fd6c45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/package/mkdebian

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ cat <<EOF > debian/rules
239239
#!$(command -v $MAKE) -f
240240
241241
srctree ?= .
242+
KERNELRELEASE = ${KERNELRELEASE}
242243
243244
build-indep:
244245
build-arch:
@@ -250,7 +251,9 @@ build: build-arch
250251
251252
binary-indep:
252253
binary-arch: build-arch
253-
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} intdeb-pkg
254+
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \
255+
KERNELRELEASE=\$(KERNELRELEASE) intdeb-pkg
256+
254257
clean:
255258
rm -rf debian/files debian/linux-*
256259
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} clean

0 commit comments

Comments
 (0)