1. 15 Sep, 2020 4 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 2 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