[PATCH v2 17/33] dtoc: Process driver aliases along with drivers

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


Instead of using a separate step for this processing, handle it while
scanning its associated driver. This allows us to drop the code coverage
exception in this case.

Note that only files containing drivers are scanned by dtoc, so aliases
declared in a file that doesn't hold a driver will not be noticed. It
would be confusing to put them anywhere other than in the driver that they
relate to, but update the documentation to say this explicitly, just in
case.

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

(no changes since v1)

 doc/driver-model/of-plat.rst               |  3 ++-
 tools/dtoc/src_scan.py                     | 16 +++++-----------
 tools/dtoc/test/dtoc_test_scan_drivers.cxx |  4 ++++
 3 files changed, 11 insertions(+), 12 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list