diff options
author | Karel Kočí <cynerd@email.cz> | 2015-01-14 12:49:48 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-01-14 12:49:48 +0100 |
commit | 9f07dd89b7cd2de6ce341afd1aed3e6bd0122a27 (patch) | |
tree | fb6db8fcf129340dfacc2dc1e496e2724112adaa /scripts/kconfig_parse.py | |
parent | 77cb1caa463602d63712d786cf367dc14c462453 (diff) | |
download | linux-conf-perf-9f07dd89b7cd2de6ce341afd1aed3e6bd0122a27.tar.gz linux-conf-perf-9f07dd89b7cd2de6ce341afd1aed3e6bd0122a27.tar.bz2 linux-conf-perf-9f07dd89b7cd2de6ce341afd1aed3e6bd0122a27.zip |
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.
Diffstat (limited to 'scripts/kconfig_parse.py')
-rwxr-xr-x | scripts/kconfig_parse.py | 22 |
1 files changed, 22 insertions, 0 deletions
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() |