From be7706762edce04aaaf0a12d70f1721a61ddd83c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 9 Dec 2012 01:35:15 +0100 Subject: Motivate KERNELVERSION assignment in test suite. --- kconfigtest.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kconfigtest.py b/kconfigtest.py index d05cd71..fe69a94 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -47,10 +47,11 @@ speedy_mode = False obsessive_mode = False log_mode = False -# Assume that the value of KERNELVERSION does not affect the configuration -# (true as of Linux 2.6.38-rc3). Here we could fetch the correct version -# instead. -os.environ["KERNELVERSION"] = "2" +# Assign this to avoid warnings from Kconfiglib. Nothing in the kernel's +# Kconfig files seems to actually look at the value as of 3.7.0-rc8. This is +# only relevant for the test suite, as this will get set by the kernel Makefile +# when using (i)scriptconfig. +os.environ["KERNELVERSION"] = "3.7.0" # Prevent accidental loading of configuration files by removing # KCONFIG_ALLCONFIG from the environment -- cgit v1.2.3