OSDN Git Service

kbuild: deb-pkg: specify targets in debian/rules as .PHONY
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 25 Apr 2023 11:08:59 +0000 (20:08 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Apr 2023 12:10:51 +0000 (21:10 +0900)
commit9892bd72efdc9daa7c07ca9f427ac7e5928c7704
treee79d4b7e803632c23745355b3ae22ad1dc69b337
parentdbb5f7c3fae38de3e69d48b984e6f539993a02d3
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>
scripts/package/mkdebian