]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: modpost: include .*.cmd files only when targets exist
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 30 Jul 2019 15:58:59 +0000 (00:58 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 31 Jul 2019 15:09:49 +0000 (00:09 +0900)
commit00623c84885f84133af454928377bbfde04d3d38
treeb2dd7065dc2e0487eeda55a0bd0a795b07dc6e4d
parentad9b7616e8ef876d3452c09d8584e964404b7817
kbuild: modpost: include .*.cmd files only when targets exist

If a build rule fails, the .DELETE_ON_ERROR special target removes the
target, but does nothing for the .*.cmd file, which might be corrupted.
So, .*.cmd files should be included only when the corresponding targets
exist.

Commit 81df09f9bf80 ("kbuild: let fixdep directly write to .*.cmd
files") missed to fix up this file.

Fixes: 81df09f9bf80 ("kbuild: let fixdep directly write to .*.cmd")
Cc: <stable@vger.kernel.org> # v5.0+
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.modpost