summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-08-25 12:39:44 +0900
committerTom Rini <trini@ti.com>2014-08-28 17:18:48 -0400
commit13246f48610757d1e5d7f4d92f35378e749235ec (patch)
tree5a0c80dec6f01ae1ad87146499d926aea8c20b05 /tools
parentb8828e8ff3c2b3e6e79490b286e78fb75ca7d82e (diff)
downloadtalos-obmc-uboot-13246f48610757d1e5d7f4d92f35378e749235ec.tar.gz
talos-obmc-uboot-13246f48610757d1e5d7f4d92f35378e749235ec.zip
tools/genboardscfg.py: be tolerant of insane Kconfig
The tools/genboardscfg.py expects all the Kconfig and defconfig are written correctly. Imagine someone accidentally has broken a board. Error-out just for one broken board is annoying for the other developers. Let the tool skip insane boards and continue processing. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genboardscfg.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py
index 18720a279b..1406acd46f 100755
--- a/tools/genboardscfg.py
+++ b/tools/genboardscfg.py
@@ -215,7 +215,10 @@ class DotConfigParser:
# sanity check of '.config' file
for field in self.must_fields:
if not field in fields:
- sys.exit('Error: %s is not defined in %s' % (field, defconfig))
+ print >> sys.stderr, (
+ "WARNING: '%s' is not defined in '%s'. Skip." %
+ (field, defconfig))
+ return
# fix-up for aarch64
if fields['arch'] == 'arm' and 'cpu' in fields:
@@ -307,7 +310,11 @@ class Slot:
return True
if self.ps.poll() == None:
return False
- self.parser.parse(self.defconfig)
+ if self.ps.poll() == 0:
+ self.parser.parse(self.defconfig)
+ else:
+ print >> sys.stderr, ("WARNING: failed to process '%s'. skip." %
+ self.defconfig)
self.occupied = False
return True
OpenPOWER on IntegriCloud