]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: Use json for processed-schema*
authorAndrei Ziureaev <andrei.ziureaev@arm.com>
Thu, 13 Aug 2020 13:26:11 +0000 (14:26 +0100)
committerRob Herring <robh@kernel.org>
Wed, 19 Aug 2020 20:31:57 +0000 (14:31 -0600)
commita86e8b66a140ce7b8d1718f4337278340dbee749
tree34ee2dfa8e0b4fb9ff75f23db6f17dfd19a50c92
parent901a41dd0b9a801016336bfa5647bd7cfe3e49a7
dt-bindings: Use json for processed-schema*

Change the format of processed-schema* from yaml to json to speed up
validation. With json output, using xargs and appending the output won't
work since json has explicit list begin and end characters. Instead,
we pass the schema files as a list in a temp file.

The parsing time for the processed schema goes down from ~2sec to 70ms.
Also, 'make dtbs_check' becomes 33% faster.

Some error messages are affected by this change. For example, "True was
expected" becomes "... is not of type 'boolean'". The order of messages
is also changed.

Signed-off-by: Andrei Ziureaev <andrei.ziureaev@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/.gitignore
Documentation/devicetree/bindings/Makefile
scripts/Makefile.lib