Skip to content
Commit b8a49399 authored by Andrei Ziureaev's avatar Andrei Ziureaev Committed by Rob Herring
Browse files

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: default avatarAndrei Ziureaev <andrei.ziureaev@arm.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 3e6ae243
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment