From ac56921681a723ccfe3f733fe0ea2d8349d99410 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 24 May 2015 11:54:22 +0200 Subject: Add warning related to get_defconfig_filename(). Might not match 'make defconfig' if the --defconfig override is used. Should probably be improved. --- kconfiglib.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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= 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 -- cgit v1.2.3