We should ignore anything in the .git directory or any of the build-sandbox, etc. directories created by 'make check'. These can confuse dtoc. Update the code to ignore these.
Signed-off-by: Simon Glass <s...@chromium.org> --- (no changes since v1) tools/dtoc/src_scan.py | 5 +++++ tools/dtoc/test_src_scan.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) Applied to u-boot-dm, thanks!