X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fgenboardscfg.py;h=0648472af0469514ad085fa9d9883b92f557894a;hb=8b71e46ceab8b66208107de688cbb4dd25fe38cd;hp=2e871feaf4fa76948aaf80ba7f55bc40a2e10da6;hpb=5c84ad097d829bb1e6460438f33e1536b23b3c9b;p=u-boot diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py index 2e871feaf4..0648472af0 100755 --- a/tools/genboardscfg.py +++ b/tools/genboardscfg.py @@ -1,9 +1,8 @@ #!/usr/bin/env python2 +# SPDX-License-Identifier: GPL-2.0+ # # Author: Masahiro Yamada # -# SPDX-License-Identifier: GPL-2.0+ -# """ Converter from Kconfig and MAINTAINERS to a board database. @@ -124,7 +123,7 @@ class KconfigScanner: os.environ['srctree'] = os.getcwd() os.environ['UBOOTVERSION'] = 'dummy' os.environ['KCONFIG_OBJDIR'] = '' - self._conf = kconfiglib.Config() + self._conf = kconfiglib.Config(print_warnings=False) def __del__(self): """Delete a leftover temporary file before exit. @@ -166,7 +165,10 @@ class KconfigScanner: else: f.write(line[colon + 1:]) - self._conf.load_config(self._tmpfile) + warnings = self._conf.load_config(self._tmpfile) + if warnings: + for warning in warnings: + print '%s: %s' % (defconfig, warning) try_remove(self._tmpfile) self._tmpfile = None