summaryrefslogtreecommitdiff
path: root/tools/genboardscfg.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-09-20 17:42:09 -0400
committerTom Rini <trini@konsulko.com>2019-10-08 08:37:29 -0400
commit65e05ddc1ae25210a9865622e9e618e5ba8488c8 (patch)
treea1b0a28d81db4bc4f54d9afe0ce1ac8c67421293 /tools/genboardscfg.py
parent5e7c8a39e634235e2ee696a39bf1f404fc707fda (diff)
kconfiglib: Update to the 12.14.0 release
A large number of changes have happened upstream since our last sync which was to 375506d. The reason to do the upgrade at this point is for improved Python 3 support. As part of this upgrade we need to update moveconfig.py and genboardscfg.py the current API. This is: - Change "kconfiglib.Config" calls to "kconfiglib.Kconfig" - Change get_symbol() calls to syms.get(). - Change get_value() to str_value. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/genboardscfg.py')
-rwxr-xr-xtools/genboardscfg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py
index 9fd2bd30ef..4ff0bffaef 100755
--- a/tools/genboardscfg.py
+++ b/tools/genboardscfg.py
@@ -118,12 +118,12 @@ class KconfigScanner:
}
def __init__(self):
- """Scan all the Kconfig files and create a Config object."""
+ """Scan all the Kconfig files and create a Kconfig object."""
# Define environment variables referenced from Kconfig
os.environ['srctree'] = os.getcwd()
os.environ['UBOOTVERSION'] = 'dummy'
os.environ['KCONFIG_OBJDIR'] = ''
- self._conf = kconfiglib.Config(print_warnings=False)
+ self._conf = kconfiglib.Kconfig(warn=False)
def __del__(self):
"""Delete a leftover temporary file before exit.
@@ -174,7 +174,7 @@ class KconfigScanner:
# Get the value of CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... etc.
# Set '-' if the value is empty.
for key, symbol in list(self._SYMBOL_TABLE.items()):
- value = self._conf.get_symbol(symbol).get_value()
+ value = self._conf.syms.get(symbol).str_value
if value:
params[key] = value
else: