summaryrefslogtreecommitdiff
path: root/tools/moveconfig.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-08-11 20:23:34 +0300
committerTom Rini <trini@konsulko.com>2020-08-23 20:43:10 +0300
commita38cc1726b65e63e77724c8bf4aa449cfe5cf21f (patch)
treed9109540cd63cbbfcdbadbef1cab551e6ab51f7a /tools/moveconfig.py
parenta7fc1e12ad970c2c02b2728b23ae26008f55c9db (diff)
downloadu-boot-a38cc1726b65e63e77724c8bf4aa449cfe5cf21f.tar.xz
moveconfig: Skip binary and ELF files
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>
Diffstat (limited to 'tools/moveconfig.py')
-rwxr-xr-xtools/moveconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 36361f9ed1..9514d9a00c 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -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':