[U-Boot] [PATCH 1/2] tools: moveconfig: do not cleanup headers in include/generated
Masahiro Yamada
yamada.masahiro at socionext.com
Fri Jul 22 10:58:03 CEST 2016
The files in include/generated are generated during build, so
do not touch files in this directory.
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---
tools/moveconfig.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index bf60dbc..b1190e2 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -371,6 +371,8 @@ def cleanup_headers(configs, dry_run):
for dir in 'include', 'arch', 'board':
for (dirpath, dirnames, filenames) in os.walk(dir):
+ if dirpath == os.path.join('include', 'generated'):
+ continue
for filename in filenames:
if not fnmatch.fnmatch(filename, '*~'):
cleanup_one_header(os.path.join(dirpath, filename),
--
1.9.1
More information about the U-Boot
mailing list