From 9f07dd89b7cd2de6ce341afd1aed3e6bd0122a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 14 Jan 2015 12:49:48 +0100 Subject: Python scripts added conf.py are files for configuration, all configuration is in global conf.py and others are just sourcing that kconfig_parser.py is executing kconfig_parser sat_solution.py is partly implemented, in state of this commit is not working properly. --- scripts/kconfig_parse.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/kconfig_parse.py (limited to 'scripts/kconfig_parse.py') diff --git a/scripts/kconfig_parse.py b/scripts/kconfig_parse.py new file mode 100755 index 0000000..36d690b --- /dev/null +++ b/scripts/kconfig_parse.py @@ -0,0 +1,22 @@ +#!/bin/python3 +import os +import sys +import subprocess +from conf import conf + +def kconfig_parser(): + "Execute kconfig_parser in linux_sources directory and parsed output is placed to build_folder." + env = dict(os.environ) + env['SRCARCH'] = conf.SRCARCH + env['ARCH'] = conf.ARCH + env['KERNELVERSION'] = 'KERNELVERSION' + wd = os.getcwd() + os.chdir(conf.linux_sources) + subprocess.call([conf.kconfig_parser, conf.linux_kconfig_head, conf.build_folder], + env=env) + +def main(): + kconfig_parser() + +if __name__ == "__main__": + main() -- cgit v1.2.3