Skip to content

Commit 8f4cd6f

Browse files
masahir0ygregkh
authored andcommitted
kbuild: fix DT binding schema rule again to avoid needless rebuilds
commit 3d4b223 upstream. Since commit 7a04960 ("kbuild: fix DT binding schema rule to detect command line changes"), this rule is every time re-run even if you change nothing. cmd_dtc takes one additional parameter to pass to the -O option of dtc. We need to pass 'yaml' to if_changed_rule. Otherwise, cmd-check invoked from if_changed_rule is false positive. Fixes: 7a04960 ("kbuild: fix DT binding schema rule to detect command line changes") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7067a62 commit 8f4cd6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.lib‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ define rule_dtc
297297
endef
298298

299299
$(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
300-
$(call if_changed_rule,dtc)
300+
$(call if_changed_rule,dtc,yaml)
301301

302302
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
303303

0 commit comments

Comments
 (0)