File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,20 @@ def run(self):
6262 )
6363 )
6464 os .environ ["ZEPHYR_BASE" ] = str (self .config .options_from_kconfig_zephyr_dir )
65+
66+ import zephyr_module
67+ modules = zephyr_module .parse_modules (os .environ ["ZEPHYR_BASE" ])
68+
69+ kconfig_module_dirs = ""
70+ for module in modules :
71+ kconfig_module_dirs += zephyr_module .process_kconfig_module_dir (module .project ,
72+ module .meta )
73+
74+ import tempfile
75+ f = tempfile .NamedTemporaryFile ('w' , encoding = "utf-8" )
76+ os .environ ["KCONFIG_ENV_FILE" ] = f .name
77+ f .write (kconfig_module_dirs )
78+
6579 import kconfiglib
6680 self ._monkey_patch_kconfiglib (kconfiglib )
6781
@@ -110,6 +124,7 @@ def run(self):
110124
111125 lines = statemachine .string2lines ('\n ' .join (lines ))
112126 self .state_machine .insert_input (lines , path )
127+ f .close ()
113128 return []
114129
115130
You can’t perform that action at this time.
0 commit comments