All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] kbuild: fix DT binding schema rule to detect command line changes
@ 2020-02-22 19:04 Masahiro Yamada
  2020-02-22 19:04 ` [PATCH 2/5] kbuild: remove unneeded semicolon at the end of cmd_dtb_check Masahiro Yamada
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Masahiro Yamada @ 2020-02-22 19:04 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Rob Herring, devicetree, Masahiro Yamada, Michal Marek,
	Rob Herring, linux-kernel

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

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>
---

 scripts/Makefile.lib | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index bae62549e3d2..64b938c10039 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -302,13 +302,13 @@ DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml
 quiet_cmd_dtb_check =	CHECK   $@
       cmd_dtb_check =	$(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ;
 
-define rule_dtc_dt_yaml
+define rule_dtc
 	$(call cmd_and_fixdep,dtc,yaml)
 	$(call cmd,dtb_check)
 endef
 
 $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
-	$(call if_changed_rule,dtc_dt_yaml)
+	$(call if_changed_rule,dtc)
 
 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-02-26 17:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-22 19:04 [PATCH 1/5] kbuild: fix DT binding schema rule to detect command line changes Masahiro Yamada
2020-02-22 19:04 ` [PATCH 2/5] kbuild: remove unneeded semicolon at the end of cmd_dtb_check Masahiro Yamada
2020-02-26 17:47   ` Masahiro Yamada
2020-02-22 19:04 ` [PATCH 3/5] kbuild: add dtbs_check to PHONY Masahiro Yamada
2020-02-26 17:47   ` Masahiro Yamada
2020-02-22 19:04 ` [PATCH 4/5] kbuild: add dt_binding_check to PHONY in a correct place Masahiro Yamada
2020-02-26 17:48   ` Masahiro Yamada
2020-02-22 19:04 ` [PATCH 5/5] kbuild: allow to run dt_binding_check and dtbs_check in a single command Masahiro Yamada
2020-02-26  6:46   ` Masahiro Yamada
2020-02-24 22:52 ` [PATCH 1/5] kbuild: fix DT binding schema rule to detect command line changes Rob Herring
2020-02-25  4:32   ` Masahiro Yamada
2020-02-26 17:47     ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.