From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 6 Feb 2021 16:17:24 -0800 Subject: [PATCH v2 06/33] dtoc: Support scanning of uclasses In-Reply-To: <20210203130121.2478810-7-sjg@chromium.org> References: <20210203130121.2478810-7-sjg@chromium.org> <20210203130121.2478810-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- (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!