mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
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>
This commit is contained in:
parent
3e85418036
commit
76c3766876
@ -218,11 +218,15 @@ cat <<EOF > debian/rules
|
|||||||
|
|
||||||
srctree ?= .
|
srctree ?= .
|
||||||
|
|
||||||
build:
|
build-indep:
|
||||||
|
build-arch:
|
||||||
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
|
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
|
||||||
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
|
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
|
||||||
|
|
||||||
binary-arch:
|
build: build-arch
|
||||||
|
|
||||||
|
binary-indep:
|
||||||
|
binary-arch: build-arch
|
||||||
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
|
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
|
||||||
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
|
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user