]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Support scanning of uclasses
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:00:54 +0000 (06:00 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
commitcfe7138b4b27d67d295446242112b465842f5b50
tree6f524aa7df0bfcdb8d389cc4e3f923a8df36843b
parentfac16c7ba3ce1ebbfb30b06d7053f66d08b04221
dtoc: Support scanning of uclasses

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@chromium.org>
tools/dtoc/src_scan.py
tools/dtoc/test_src_scan.py