summaryrefslogtreecommitdiff
path: root/tools/moveconfig.py
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-07-25 19:15:22 +0900
committerTom Rini <trini@konsulko.com>2016-08-05 07:27:15 -0400
commitdc6de50bd6873deccea3c27f407bad8f987383e7 (patch)
tree149e3cb1886f59d43d8ffc1b285e9e628dd0b43f /tools/moveconfig.py
parent6f94ab6656ceffb3f2a972c8de4c554502b6f2b7 (diff)
downloadu-boot-dc6de50bd6873deccea3c27f407bad8f987383e7.tar.gz
u-boot-dc6de50bd6873deccea3c27f407bad8f987383e7.tar.bz2
u-boot-dc6de50bd6873deccea3c27f407bad8f987383e7.zip
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>
Diffstat (limited to 'tools/moveconfig.py')
-rwxr-xr-xtools/moveconfig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index d362923b22..fff44b229a 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),