1. 15 Sep, 2020 3 commits
  2. 14 Sep, 2020 27 commits
  3. 09 Sep, 2020 1 commit
  4. 08 Sep, 2020 3 commits
  5. 03 Sep, 2020 3 commits
  6. 19 Aug, 2020 3 commits
    • Rob Herring's avatar
      dt-bindings: Validate DT binding schema in a single call · 7ba58fff
      Rob Herring authored
      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: default avatarRob Herring <robh@kernel.org>
      7ba58fff
    • Andrei Ziureaev's avatar
      dt-bindings: Use json for processed-schema* · b8a49399
      Andrei Ziureaev authored
      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>
      b8a49399
    • Rob Herring's avatar
      dt-bindings: Bump minimum version of dtschema to 2020.8.1 · 3e6ae243
      Rob Herring authored
      dtschema release 2020.8.1 gained several additions to help performance.
      dt-doc-validate can now take a list of files and directories, and
      dt-mk-schema can store the processed schema in JSON which is much faster
      to parse than YAML. Utilizing both of these changes results in a 3-4x
      speed improvement in running dt_binding_check.
      
      There's also additional meta-schema checks which binding schemas should
      be checked against.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      3e6ae243