[PATCH v2 06/33] dtoc: Support scanning of uclasses

Simon Glass sjg at chromium.org
Sun Feb 7 01:17:24 CET 2021


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 <sjg at 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!


More information about the U-Boot mailing list