]> git.sur5r.net Git - u-boot/blobdiff - tools/moveconfig.py
tools: moveconfig: do not cleanup headers in include/generated
[u-boot] / tools / moveconfig.py
index d362923b221b7ef5ed3c2b5f7a74f61f5551b705..fff44b229a1e19ae16108c3164973476fc4fd4fc 100755 (executable)
@@ -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),