Skip to content

Commit 76c3766

Browse files
guillemjmasahir0y
authored andcommitted
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>
1 parent 3e85418 commit 76c3766

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/package/mkdebian

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,15 @@ cat <<EOF > debian/rules
218218
219219
srctree ?= .
220220
221-
build:
221+
build-indep:
222+
build-arch:
222223
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
223224
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
224225
225-
binary-arch:
226+
build: build-arch
227+
228+
binary-indep:
229+
binary-arch: build-arch
226230
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
227231
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
228232

0 commit comments

Comments
 (0)