[PATCH v2 20/33] dtoc: Detect drivers only at the start of start of line

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


If a driver declaration is included in a comment, dtoc currently gets
confused. Update the parser to only consider declarations that begin at
the start of a line. Since multi-line comments begin with an asterisk,
this avoids the problem.

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

Changes in v2:
- New patch

 tools/dtoc/src_scan.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list