summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-05-24 11:54:22 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-05-24 11:54:22 +0200
commitac56921681a723ccfe3f733fe0ea2d8349d99410 (patch)
treeee6169603b17606f8fb4734a3c43f2bb6e724748
parenta257307405ad076869fc35ffe23bb2ef7df96802 (diff)
Add warning related to get_defconfig_filename().
Might not match 'make defconfig' if the --defconfig override is used. Should probably be improved.
-rw-r--r--kconfiglib.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index afff92e..ddca671 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -423,7 +423,15 @@ class Config():
If the environment variable 'srctree' was set when the Config was
created, get_defconfig_filename() will first look relative to that
directory before looking in the current directory; see
- Config.__init__()."""
+ Config.__init__().
+
+ WARNING: A wart here is that scripts/kconfig/Makefile sometimes uses the
+ --defconfig=<defconfig> option when calling the C implementation of e.g.
+ 'make defconfig'. This option overrides the 'option defconfig_list'
+ symbol, meaning the result from get_defconfig_filename() might not
+ match what 'make defconfig' would use. That probably ought to be worked
+ around somehow, so that this function always gives the "expected"
+ result."""
if self.defconfig_sym is None:
return None