diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 08:38:20 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 09:27:57 +0100 |
| commit | 65639b40bd90d79afc1ffdcada926c99e6954102 (patch) | |
| tree | 42053e24def777a87bd292896e041076b7e97c87 /kconfiglib.py | |
| parent | b87ff45ce8c595319ee5748a62824b645a7361b6 (diff) | |
Make it possible to pass an argument via scriptconfig.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index ffae96f..08cec75 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -30,18 +30,19 @@ Kconfig-based configuration systems. Features include the following: For the Linux kernel, scripts are run using - $ make scriptconfig SCRIPT=<path to script> + $ make scriptconfig SCRIPT=<path to script> [SCRIPT_ARG=<arg>] Running scripts via the 'scriptconfig' target ensures that required environment variables (SRCARCH, ARCH, srctree, KERNELVERSION, etc.) are set up correctly. Alternative architectures can be specified like for other 'make *config' targets: - $ make scriptconfig ARCH=mips SCRIPT=<path to script> + $ make scriptconfig ARCH=mips SCRIPT=<path to script> [SCRIPT_ARG=<arg>] The script will receive the name of the Kconfig file to load in sys.argv[1]. (As of Linux 3.7.0-rc8 this is always "Kconfig" from the kernel top-level -directory.) +directory.) If an argument is provided with SCRIPT_ARG, it will appear in +sys.argv[2]. To get an interactive Python prompt with Kconfiglib preloaded and a Config object 'c' created, use |
