]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Feb 2020 17:23:12 +0000 (02:23 +0900)
commit11fc57f98feda1e247f97baf68c78941c36a79ed
tree05d5b17d913fc1bd55afeb61f843df257b43b022
parent65ddf2f4611782706059f170ffe9b48613e48bcb
kbuild: fix DT binding schema rule to detect command line changes

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: 2f4b5be5d172 ("kbuild: Add support for DT binding schema checks")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
scripts/Makefile.lib