]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Detect drivers which do not parse correctly
authorSimon Glass <sjg@chromium.org>
Sun, 4 Jul 2021 18:19:49 +0000 (12:19 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
commit8b9c4f39f062bcf0b4584472ce214a1810dd5057
tree8e67bec3f0f6bbcca698c2931f31f4314da6db72
parent1ac7d545f2d19f6a051730f378cc3c9e499ddcd4
dtoc: Detect drivers which do not parse correctly

At present if a driver is missing a uclass or compatible stirng, this
is silently ignored. This makes sense in most cases, particularly for
the compatible string, since it is not required except when the driver
is used with of-platdata.

But it is also not very helpful. When there is some sort of problem
with a driver, the missing compatible string (for example) may be the
cause.

Add a warning in this case, showing it only for drivers which are used
by the build.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Walter Lozano <walter.lozano@collabora.com>
tools/dtoc/src_scan.py
tools/dtoc/test_src_scan.py