dtoc: Allow multiple warnings for a driver
authorSimon Glass <sjg@chromium.org>
Sun, 4 Jul 2021 18:19:45 +0000 (12:19 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
commit1b5fe11d957491a2f53a409b32b1a281c708e2fd
tree20b12e2044be8ed9f4b59e59d4577581f8485283
parent973fa52416d7853d1c146c8a7bc374a9a890c49c
dtoc: Allow multiple warnings for a driver

At present we show when a driver is missing but this is not always that
useful. There are various reasons why a driver may appear to be missing,
such as a parse error in the source code or a missing field in the driver
declaration.

Update the implementation to record all warnings for each driver, showing
only those which relate to drivers that are actually used. This avoids
spamming the user with warnings related to a driver for a different board.

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