]> git.dujemihanovic.xyz Git - u-boot.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)
commit1a8b4b9d94b295f3dae06c72931a99d74fd19179
tree6f524aa7df0bfcdb8d389cc4e3f923a8df36843b
parentc8b19b0694014ac4423558f4e65937791fd6d574
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