Skip to content

Commit c5bf2ef

Browse files
committed
kbuild: deb-pkg: fix binary-arch and clean in debian/rules
The clean target needs ARCH=${ARCH} to clean up the tree for the correct architecture. 'make (bin)deb-pkg' skips cleaning, but the preclean hook may be executed if dpkg-buildpackage is directly used. The binary-arch target does not need KERNELRELEASE because it is not updated during the installation. KBUILD_BUILD_VERSION is not needed either because binary-arch does not build vmlinux. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 1fc9095 commit c5bf2ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/package/mkdebian

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,10 @@ build: build-arch
251251
252252
binary-indep:
253253
binary-arch: build-arch
254-
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
255-
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
256-
254+
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} intdeb-pkg
257255
clean:
258256
rm -rf debian/files debian/linux-*
259-
\$(MAKE) clean
257+
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} clean
260258
261259
binary: binary-arch
262260
EOF

0 commit comments

Comments
 (0)