[U-Boot] [PATCH v3 1/7] tools/genboardscfg.py: ignore defconfigs starting with a dot

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Aug 25 05:39:42 CEST 2014


Kconfig in U-Boot creates a temporary file configs/.tmp_defconfig
during processing "make <board>_defconfig".  The temporary file
might be left over for some reasons.

Just in case, tools/genboardscfg.py should make sure to
not read such garbage files.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Acked-by: Simon Glass <sjg at chromium.org>
---

Changes in v3: None
Changes in v2: None

 tools/genboardscfg.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py
index e92e4f8..e13c8e4 100755
--- a/tools/genboardscfg.py
+++ b/tools/genboardscfg.py
@@ -411,6 +411,8 @@ def __gen_boards_cfg(jobs):
     for (dirpath, dirnames, filenames) in os.walk(CONFIG_DIR):
         dirpath = dirpath[len(CONFIG_DIR) + 1:]
         for filename in fnmatch.filter(filenames, '*_defconfig'):
+            if fnmatch.fnmatch(filename, '.*'):
+                continue
             defconfigs.append(os.path.join(dirpath, filename))
 
     # Parse all the MAINTAINERS files
-- 
1.9.1



More information about the U-Boot mailing list