summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-08 23:59:46 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-09 00:00:02 +0100
commitf52d48f9d7750bd4dfb2a800940f978851661072 (patch)
tree4259cffd25946714bc752878bc752e1b2a41e2f1 /kconfiglib.py
parent5ee9891dd671a82c88ff1fc3faf7c37aed727133 (diff)
Make introduction less verbose.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py29
1 files changed, 10 insertions, 19 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 6a155d9..2482728 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -24,33 +24,24 @@ Kconfig-based configuration systems. Features include the following:
- Expressions can be evaluated in the context of a Kconfig configuration.
- Relations between symbols can be quickly determined, such as finding all
symbols that reference a particular symbol.
- - Symbol values are automatically cached and reevaluated only when needed.
- - Highly compatible with the C Kconfig implementation:
- * Generates a .config file that is character-for-character identical (modulo
- header) to the one generated by the C implementation (mconf) when fed each
- architecture/defconfig pair in the kernel and asked to generate a
- configuration. This includes nonsensical pairings such as powerpc with
- arch/x86/configs/x86_64_defconfig, for a total of 9096 combinations as of
- Linux 2.6.38-rc3.
- * Also generates a .config that is character-for-character identical to the
- one generated by mconf for all architectures when no .config is supplied.
- * The 'make allyesconfig' and 'make allnoconfig' implementations in the
- generate output character-for-character identical to the C implementation
- for all architectures.
+ - Highly compatible with the scripts/kconfig/*conf utilities. The test suite
+ automatically compares outputs betweens Kconfiglib and the C implementation
+ for a large number of cases.
For the Linux kernel, scripts are run using
$ make scriptconfig SCRIPT=<path to script>
-This ensures that needed environment variables (SRCARCH, ARCH, srctree,
-KERNELVERSION, etc.) are set up correctly. Alternative architectures can be
-specified like for other 'make *config' targets:
+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>
-The script will receive the name of the Kconfig file to load in sys.argv[1]. As
-of Linux 2.6.38-rc3 this is always "Kconfig" from the kernel top-level
-directory.
+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.)
To get an interactive Python prompt with Kconfiglib preloaded and a Config
object 'c' created, use