]> git.dujemihanovic.xyz Git - u-boot.git/commit
dtoc: Detect drivers only at the start of start of line
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:01:08 +0000 (06:01 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
commit1712f8b2b748ec96442e36d733d421a7ebaa1168
tree75dce1974c5676f5e5724fb2ef1d52d22df983e1
parent059535291c6785bb64594dd0e47c767e8c9e02bf
dtoc: Detect drivers only at the start of start of line

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@chromium.org>
tools/dtoc/src_scan.py