summaryrefslogtreecommitdiffstats
path: root/scripts/package/debian/rules
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-01-13 11:43:39 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2024-02-19 10:20:39 +0100
commitf96beb84eff698aefde7cea2bbf1de4f688c4750 (patch)
treef556c61853a85d1d16776be555fcbadda2093995 /scripts/package/debian/rules
parentkbuild: deb-pkg: build binary-arch in parallel (diff)
downloadlinux-f96beb84eff698aefde7cea2bbf1de4f688c4750.tar.xz
linux-f96beb84eff698aefde7cea2bbf1de4f688c4750.zip
kbuild: deb-pkg: call more misc debhelper commands
Use dh_prep instead of removing old build directories manually. Use dh_clean instead of removing build directories and debian/files manually. Call dh_testdir and dh_testroot for preliminary checks. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <n.schier@avm.de>
Diffstat (limited to '')
-rwxr-xr-xscripts/package/debian/rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules
index 57f1cf7c6b32..ca07243bd5cd 100755
--- a/scripts/package/debian/rules
+++ b/scripts/package/debian/rules
@@ -42,6 +42,9 @@ package = $($(@:binary-%=%-package))
DH_OPTIONS = -p$(package)
define binary
+ $(Q)dh_testdir $(DH_OPTIONS)
+ $(Q)dh_testroot $(DH_OPTIONS)
+ $(Q)dh_prep $(DH_OPTIONS)
$(Q)+$(MAKE) $(make-opts) run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb $(package)'
$(Q)dh_installdocs $(DH_OPTIONS)
$(Q)dh_installchangelogs $(DH_OPTIONS)
@@ -72,7 +75,8 @@ build-arch:
.PHONY: clean
clean:
- $(Q)rm -rf debian/files debian/linux-* debian/deb-env.vars* debian/*.files
+ $(Q)dh_clean
+ $(Q)rm -rf debian/deb-env.vars* debian/*.files
$(Q)$(MAKE) ARCH=$(ARCH) clean
# If DEB_HOST_ARCH is empty, it is likely that debian/rules was executed