]> git.baikalelectronics.ru Git - uboot.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)
commitcb491961976e6d3772d9d45503586745593e6f91
tree75dce1974c5676f5e5724fb2ef1d52d22df983e1
parent12d2e27c3d60bc9c603e11ef22fd195b262f6bbd
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