Skip to content

Commit 3d4b223

Browse files
committed
kbuild: fix DT binding schema rule again to avoid needless rebuilds
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 <[email protected]>
1 parent e461bc9 commit 3d4b223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ define rule_dtc
309309
endef
310310

311311
$(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
312-
$(call if_changed_rule,dtc)
312+
$(call if_changed_rule,dtc,yaml)
313313

314314
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
315315

0 commit comments

Comments
 (0)