kbuild: fix DT binding schema rule to detect command line changes
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Feb 2020 19:04:31 +0000 (04:04 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:46 +0000 (16:43 +0100)
commitf5cfa47505ac4424e3d89843dddc522beb2bafe0
tree6b9a4542b6c226874b15c7ebd6b2e8ddab8920a8
parentf2688e75376498abebc5b2afb20ee3349a1af6e8
kbuild: fix DT binding schema rule to detect command line changes

commit 7a04960560640ac5b0b89461f7757322b57d0c7a upstream.

This if_change_rule is not working properly; it cannot detect any
command line change.

The reason is because cmd-check in scripts/Kbuild.include compares
$(cmd_$@) and $(cmd_$1), but cmd_dtc_dt_yaml does not exist here.

For if_change_rule to work properly, the stem part of cmd_* and rule_*
must match. Because this cmd_and_fixdep invokes cmd_dtc, this rule must
be named rule_dtc.

Fixes: 4f0e3a57d6eb ("kbuild: Add support for DT binding schema checks")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/Makefile.lib