diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-03-14 04:48:32 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-04-14 15:22:48 +0900 |
commit | b75b0a819af9f78fc395b189cddd40f590194d20 (patch) | |
tree | d02451f57f32ad27f68c01a8c56a3ec83ec6ed4d /scripts/kconfig/tests | |
parent | 406616213bb776a6e6ec69192df39ab1042690f1 (diff) | |
download | lwn-b75b0a819af9f78fc395b189cddd40f590194d20.tar.gz lwn-b75b0a819af9f78fc395b189cddd40f590194d20.zip |
kconfig: change defconfig_list option to environment variable
"defconfig_list" is a weird option that defines a static symbol that
declares the list of base config files in case the .config does not
exist yet.
This is quite different from other normal symbols; we just abused the
"string" type and the "default" properties to list out the input files.
They must be fixed values since these are searched for and loaded in
the parse stage.
It is an ugly hack, and should not exist in the first place. Providing
this feature as an environment variable is a saner approach.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/tests')
-rw-r--r-- | scripts/kconfig/tests/conftest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/tests/conftest.py b/scripts/kconfig/tests/conftest.py index 0345ef6e3273..af8774a5697c 100644 --- a/scripts/kconfig/tests/conftest.py +++ b/scripts/kconfig/tests/conftest.py @@ -53,6 +53,10 @@ class Conf: # Override 'srctree' environment to make the test as the top directory extra_env['srctree'] = self._test_dir + # Clear KCONFIG_DEFCONFIG_LIST to keep unit tests from being affected + # by the user's environment. + extra_env['KCONFIG_DEFCONFIG_LIST'] = '' + # Run Kconfig in a temporary directory. # This directory is automatically removed when done. with tempfile.TemporaryDirectory() as temp_dir: |