Uclasses can have per-device private / platform data so dtoc needs to
scan these drivers. This allows it to find out the size of this data so
it can be allocated a build time.

Add a parser for uclass information, similar to drivers. Keep a dict of
the uclasses that were found.

Signed-off-by: Simon Glass <s...@chromium.org>
---

(no changes since v1)

 tools/dtoc/src_scan.py      | 122 ++++++++++++++++++++++++++++++++++++
 tools/dtoc/test_src_scan.py |  55 ++++++++++++++++
 2 files changed, 177 insertions(+)

Applied to u-boot-dm, thanks!

Reply via email to