1
0
Fork 0
alistair23-linux/Documentation/devicetree
Rob Herring c3f76584ca dt-bindings: Improve validation build error handling
[ Upstream commit 93512dad33 ]

Schema errors can cause make to exit before useful information is
printed. This leaves developers wondering what's wrong. It can be
overcome passing '-k' to make, but that's not an obvious solution.
There's 2 scenarios where this happens.

When using DT_SCHEMA_FILES to validate with a single schema, any error
in the schema results in processed-schema.yaml being empty causing a
make error. The result is the specific errors in the schema are never
shown because processed-schema.yaml is the first target built. Simply
making processed-schema.yaml last in extra-y ensures the full schema
validation with detailed error messages happen first.

The 2nd problem is while schema errors are ignored for
processed-schema.yaml, full validation of the schema still runs in
parallel and any schema validation errors will still stop the build when
running validation of dts files. The fix is to not add the schema
examples to extra-y in this case. This means 'dtbs_check' is no longer a
superset of 'dt_binding_check'. Update the documentation to make this
clear.

Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-04 19:18:11 +01:00
..
bindings dt-bindings: Improve validation build error handling 2020-01-04 19:18:11 +01:00
booting-without-of.txt docs: arm: convert docs to ReST and rename to *.rst 2019-07-15 09:20:24 -03:00
changesets.txt
dynamic-resolution-notes.txt Documentation: remove dynamic-resolution-notes reference to non-existent file 2018-08-13 08:20:10 -06:00
of_unittest.txt
overlay-notes.txt
usage-model.txt
writing-schema.rst dt-bindings: Improve validation build error handling 2020-01-04 19:18:11 +01:00