Skip to content
Commit 944cfe9b authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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 392885ee ("kbuild: let fixdep directly write to .*.cmd
files") missed to fix up this file.

Fixes: 392885ee ("kbuild: let fixdep directly write to .*.cmd")
Cc: <stable@vger.kernel.org> # v5.0+
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 5241ab4c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment