]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - Documentation/devicetree/bindings/Makefile
dt-bindings: Validate DT binding schema in a single call
authorRob Herring <robh@kernel.org>
Thu, 6 Aug 2020 22:50:09 +0000 (16:50 -0600)
committerRob Herring <robh@kernel.org>
Wed, 19 Aug 2020 20:31:58 +0000 (14:31 -0600)
commit7ba58fff001da7e7296dbed8ddc13212300d1c57
tree7013ac0f4e98632bec6ef00fbc93be68b495dd3c
parentb8a49399fb7abd4ec402bea1fec5a974053591b6
dt-bindings: Validate DT binding schema in a single call

As the number of binding schemas has grown, the time to run
dt_binding_check has gotten pretty slow. A large part of this is due to
the slow startup time of Python (a well documented problem). There's not
currently any benefit to running dt-doc-validate one file at a time, so
let's switch it to run a single rule. Doing this means we loose the make
parallelism, but we can use xargs instead. This speeds up the validation
time from several minutes to <10 sec.

Since the validation is a single step with no output, we move running it
as part of the processed-schema-examples.json target. We also need to
reorder the extra-y entries so the validation is run first rather than
after all the examples are extracted.

Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/Makefile