diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-02-15 04:20:32 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-02-26 09:23:30 +0300 |
commit | c5bf2efb058d841bf8993b9a9b4522abda804d39 (patch) | |
tree | 42b23a4ec0cb7ecd7007ce57081ce790ad3b2012 /scripts | |
parent | 1fc9095846cc0b7a4d027da2d0bd7569914bf129 (diff) | |
download | linux-c5bf2efb058d841bf8993b9a9b4522abda804d39.tar.xz |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/package/mkdebian | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 22fc73a5e4f2..eef20d5dc288 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -251,12 +251,10 @@ build: build-arch binary-indep: binary-arch: build-arch - \$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \ - KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg - + \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} intdeb-pkg clean: rm -rf debian/files debian/linux-* - \$(MAKE) clean + \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} clean binary: binary-arch EOF |