kbuild: deb-pkg: fix binary-arch and clean in debian/rules
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Feb 2023 01:20:32 +0000 (10:20 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 26 Feb 2023 06:23:30 +0000 (15:23 +0900)
commitc5bf2efb058d841bf8993b9a9b4522abda804d39
tree42b23a4ec0cb7ecd7007ce57081ce790ad3b2012
parent1fc9095846cc0b7a4d027da2d0bd7569914bf129
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 <masahiroy@kernel.org>
scripts/package/mkdebian