[PATCH 20/49] dtoc: Split source-code scanning to a separate file

Simon Glass sjg at chromium.org
Wed Jan 6 16:12:46 CET 2021


Before expanding the scanning features any more, move this into a separate
file. This will make it easier to maintain in the future. In particular,
it reduces the size of dtb_platdata.py and allows us to add tests
specifically for scanning, without going through that file.

The pieces moved are the Driver class, the scanning code and the various
naming functions, since they mostly depend on the scanning results.

So far there is are no separate tests for src_scan. These will be added
as new functionality appears.

This introduces no functional change.

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

 tools/dtoc/dtb_platdata.py | 174 +++-------------------------------
 tools/dtoc/src_scan.py     | 185 +++++++++++++++++++++++++++++++++++++
 tools/dtoc/test_dtoc.py    |  14 +--
 3 files changed, 204 insertions(+), 169 deletions(-)
 create mode 100644 tools/dtoc/src_scan.py

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list