summaryrefslogtreecommitdiff
path: root/scripts/package/mkdebian
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2020-09-21 00:25:53 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-10-10 00:41:35 +0900
commit76c37668768464a6c2d5c49abd36ba0b48a0b131 (patch)
tree20e27c63d6a124492c7ce74913c40d9c7f0242bc /scripts/package/mkdebian
parent3e8541803624678925a477a03e19e3c155b5fc12 (diff)
builddeb: Add support for all required debian/rules targets
These have been required by the Debian policy for a while, even though the tooling can detect and workaround their omission, but are a hard requirement when using rootless builds. [masahiro: The following Debian policy is particularly important for rootless builds: "Both binary-* targets should depend on the build target, or on the appropriate build-arch or build-indep target, so that the package is built if it has not been already." ] Signed-off-by: Guillem Jover <guillem@hadrons.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package/mkdebian')
-rwxr-xr-xscripts/package/mkdebian8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index dbe42500084c..3a13b834f281 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -218,11 +218,15 @@ cat <<EOF > debian/rules
srctree ?= .
-build:
+build-indep:
+build-arch:
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
-binary-arch:
+build: build-arch
+
+binary-indep:
+binary-arch: build-arch
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg