dt-bindings: do not build processed-schema.yaml for 'make dt_binding_check'
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 25 Jun 2020 17:04:32 +0000 (02:04 +0900)
committerRob Herring <robh@kernel.org>
Tue, 30 Jun 2020 14:42:26 +0000 (08:42 -0600)
Currently, processed-schema.yaml is always built, but it is actually
used only for 'make dtbs_check'.

'make dt_binding_check' uses processed-schema-example.yaml instead.

Build processed-schema.yaml only for 'make dtbs_check'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20200625170434.635114-3-masahiroy@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/Makefile

index 89976970160e4ae48c4db5dbd7a9909af20cf59d..8190ecf69203a00d9e1ab7b66b5708390cf71345 100644 (file)
@@ -53,7 +53,7 @@ $(obj)/processed-schema.yaml: DT_MK_SCHEMA_FLAGS := $(DT_MK_SCHEMA_USERONLY_FLAG
 $(obj)/processed-schema.yaml: $(DT_SCHEMA_FILES) check_dtschema_version FORCE
        $(call if_changed,mk_schema)
 
-extra-y += processed-schema.yaml
+extra-$(CHECK_DTBS) += processed-schema.yaml
 
 # Hack: avoid 'Argument list too long' error for 'make clean'. Remove most of
 # build artifacts here before they are processed by scripts/Makefile.clean