Commit 3d4b2238 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kbuild: fix DT binding schema rule again to avoid needless rebuilds



Since commit 7a049605 ("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: 7a049605 ("kbuild: fix DT binding schema rule to detect command line changes")
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent e461bc9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ define rule_dtc
endef

$(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
	$(call if_changed_rule,dtc)
	$(call if_changed_rule,dtc,yaml)

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