]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
moveconfig: Skip binary and ELF files
authorSimon Glass <sjg@chromium.org>
Tue, 11 Aug 2020 17:23:34 +0000 (11:23 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 23 Aug 2020 17:43:10 +0000 (13:43 -0400)
Add a few more file extensions to the list of files that should not be
processed. This avoids unicode errors, for example.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/moveconfig.py

index 36361f9ed1b6c70b05bed13443c750e1d2806e12..9514d9a00cb67b035947cf20245a50ed33e59615 100755 (executable)
@@ -666,7 +666,8 @@ def cleanup_headers(configs, options):
             if dirpath == os.path.join('include', 'generated'):
                 continue
             for filename in filenames:
-                if not filename.endswith(('~', '.dts', '.dtsi')):
+                if not filename.endswith(('~', '.dts', '.dtsi', '.bin',
+                                          '.elf')):
                     header_path = os.path.join(dirpath, filename)
                     # This file contains UTF-16 data and no CONFIG symbols
                     if header_path == 'include/video_font_data.h':