[PATCH v2 22/33] dtoc: Set up the uclasses that are used

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


We only care about uclasses that are actually used. This is determined by
the drivers that use them. Check all the used drivers and build a list of
'valid' uclasses.

Also add references to the uclasses so we can generate C code that uses
them. Attach a uclass to each valid driver.

For the tests, now that we have uclasses we must create an explicit test
for the case where a node does not have one. This should only happen if
the source code does not build, or the source-code scanning fails to find
it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/dtoc/dtb_platdata.py  | 46 ++++++++++++++++++++++++-------------
 tools/dtoc/src_scan.py      | 45 ++++++++++++++++++++++++++++++++++++
 tools/dtoc/test_dtoc.py     | 29 +++++++++++++++++++++--
 tools/dtoc/test_src_scan.py | 17 ++++++++++++++
 4 files changed, 119 insertions(+), 18 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list