1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

tools: moveconfig: do not cleanup headers in include/generated

The files in include/generated are generated during build and removed
by "make mrproper", so it has no point to touch them by this tool.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Masahiro Yamada
2016-07-25 19:15:22 +09:00
committed by Tom Rini
parent 6f94ab6656
commit dc6de50bd6

View File

@@ -371,6 +371,8 @@ def cleanup_headers(configs, dry_run):
for dir in 'include', 'arch', 'board': for dir in 'include', 'arch', 'board':
for (dirpath, dirnames, filenames) in os.walk(dir): for (dirpath, dirnames, filenames) in os.walk(dir):
if dirpath == os.path.join('include', 'generated'):
continue
for filename in filenames: for filename in filenames:
if not fnmatch.fnmatch(filename, '*~'): if not fnmatch.fnmatch(filename, '*~'):
cleanup_one_header(os.path.join(dirpath, filename), cleanup_one_header(os.path.join(dirpath, filename),