Skip to content

Commit 9892bd7

Browse files
committed
kbuild: deb-pkg: specify targets in debian/rules as .PHONY
If a file with the same name exists, the target is not run. For example, the following command fails. $ make O=build-arch bindeb-pkg [ snip ] sed: can't read modules.order: No such file or directory make[6]: *** [../Makefile:1577: __modinst_pre] Error 2 make[5]: *** [../scripts/Makefile.package:150: intdeb-pkg] Error 2 make[4]: *** [../Makefile:1657: intdeb-pkg] Error 2 make[3]: *** [debian/rules:14: binary-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[2]: *** [../scripts/Makefile.package:139: bindeb-pkg] Error 2 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org>
1 parent dbb5f7c commit 9892bd7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/package/mkdebian

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ cat <<EOF > debian/rules
269269
srctree ?= .
270270
KERNELRELEASE = ${KERNELRELEASE}
271271
272+
.PHONY: clean build build-arch build-indep binary binary-arch binary-indep
273+
272274
build-indep:
273275
build-arch:
274276
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \

0 commit comments

Comments
 (0)