[U-Boot] [PATCH 0/2] tools: moveconfig: minor updates related to header cleanup

Masahiro Yamada (2): tools: moveconfig: do not cleanup headers in include/generated tools: moveconfig: do not check clean tree and compilers for -H option
tools/moveconfig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)

The files in include/generated are generated during build, so do not touch files in this directory.
Signed-off-by: Masahiro Yamada yamada.masahiro@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),

The clean tree (make mrproper) and compilers are required when moving config options, but not needed when we only cleanup headers.
Signed-off-by: Masahiro Yamada yamada.masahiro@socionext.com ---
tools/moveconfig.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/moveconfig.py b/tools/moveconfig.py index b1190e2..05a581f 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -1042,11 +1042,9 @@ def main():
check_top_directory()
- check_clean_directory() - - update_cross_compile(options.color) - if not options.cleanup_headers_only: + check_clean_directory() + update_cross_compile(options.color) move_config(configs, options)
if configs:
participants (1)
-
Masahiro Yamada